X2Cpg

object X2Cpg
class Object
trait Matchable
class Any
X2Cpg.type

Value members

Concrete methods

def newEmptyCpg(optionalOutputPath: Option[String]): Cpg

Create an empty CPG, backed by the file at optionalOutputPath or in-memory if optionalOutputPath is empty.

Create an empty CPG, backed by the file at optionalOutputPath or in-memory if optionalOutputPath is empty.

def parseCommandLine[R <: X2CpgConfig[LazyRef(...)]](args: Array[String], frontendSpecific: OParser[_, R], initialConf: R): Option[R]

Parse commands line arguments in args using an X2Cpg command line parser, extended with the frontend specific options in frontendSpecific with the initial configuration set to initialConf.

Parse commands line arguments in args using an X2Cpg command line parser, extended with the frontend specific options in frontendSpecific with the initial configuration set to initialConf.

On success, the configuration is returned wrapped into an Option. On failure, error messages are printed and None is returned.