Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 481 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 481 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 cpg-console/bin/test/array.cpp
var main = tu.functions["main"]
:code main?
var decl = main?.body<DeclarationStatement>(0)
var v = decl?.singleDeclaration as? VariableDeclaration