Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 497 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 497 Bytes

CPG Console

From the project root folder

./gradlew :cpg-console:installDist
cpg-console/build/install/cpg-console/bin/cpg-console

From this folder

../gradlew installDist
build/install/cpg-console/bin/cpg-console

The following example snippet can be used:

:tr src/test/resources/array.cpp
var main = tu.byName<FunctionDeclaration>("main")
:code main?
var decl = main?.body<DeclarationStatement>(0)
var v = decl?.singleDeclaration as? VariableDeclaration