CPGConfiguration

data class CPGConfiguration(val source: List<Path>, val useUnityBuild: Boolean, val debugParser: Boolean, val disableCleanup: Boolean, val codeInNodes: Boolean, val matchCommentsToNodes: Boolean, val processAnnotations: Boolean, val failOnError: Boolean, val useParallelFrontends: Boolean, val defaultPasses: Boolean, val additionalLanguages: Set<String>, val symbols: Map<String, String>, val passes: List<KClass<out Pass<*>>>, val loadIncludes: Boolean, val includePaths: List<Path>, val includeAllowlist: List<Path>, val includeBlocklist: List<Path>) : BackendConfiguration(source)

Holds the CPG configuration to run the CPG backend with

To add a new configuration option do the following:

  1. add a property to CPGConfiguration

  2. add a new CLI option to the CPGOptionGroup

  3. update the BackendCommand.getBackend methods for all implementations of that interface e.g., BaseCpgBackend

Constructors

Link copied to clipboard
constructor(source: List<Path>, useUnityBuild: Boolean, debugParser: Boolean, disableCleanup: Boolean, codeInNodes: Boolean, matchCommentsToNodes: Boolean, processAnnotations: Boolean, failOnError: Boolean, useParallelFrontends: Boolean, defaultPasses: Boolean, additionalLanguages: Set<String>, symbols: Map<String, String>, passes: List<KClass<out Pass<*>>>, loadIncludes: Boolean, includePaths: List<Path>, includeAllowlist: List<Path>, includeBlocklist: List<Path>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val passes: List<KClass<out Pass<*>>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard