X2CPG

Frontend Args #

The frontend arguments for x2cpg is shared across all frontends for Joern. See the individual Frontend pages for frontend-specific args.

ArgDescriptionTypeExample
input-dirDirectory containing all source files to be used with JoernString"/some/path/to/folder"
outputName of the file where output is written toString--output "output.txt"
excludeList of input file names to be excluded during CPG generation (paths must be relative to input-dir or absolute paths)List<String>--exclude "test1.java, test2.java, ..."
exclude-regexA regex specifying files to be excluded during CPG generation (paths must be relative to input-dir or absolute paths)String--exclude-regex ".*-test.java"
enable-early-schema-checkingEnables early schema validation during AST creation (disabled by default)---enable-early-schema-checking
enable-file-contentAdd the raw source code to the content of the FILE nodes to allow for method source retrieval via offset fields (disabled by default)---enable-file-content