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