Builder

class Builder

Builds a TranslationConfiguration.

Example:

TranslationManager.builder()
.config(TranslationConfiguration.builder()
.sourceLocations(new File("example.cpp"))
.defaultPasses()
.debugParser(true)
.build())
.build();

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds all required includes.

Link copied to clipboard
Link copied to clipboard

Dump parser debug output to the logs (Caution: this will generate a lot of output).

Link copied to clipboard
Link copied to clipboard

Fail analysis on first error. Try to continue otherwise.

Link copied to clipboard

Adds the specified file to the include blocklist. Relative and absolute paths are supported.

Link copied to clipboard

Directory containing include headers.

Link copied to clipboard

Adds the specified file to the include whitelist. Relative and absolute paths are supported.

Link copied to clipboard

Load C/C++ include headers before the analysis.

Link copied to clipboard

Match comments found in source files to nodes according to a heuristic.

Link copied to clipboard

Safely register an additional Language from a class name. If the Language given by the class name could not be loaded or instantiated, no Language is registered and no error is thrown. Please have a look at registerLanguage if an error should be thrown in case the language could not be registered.

Link copied to clipboard

Specifies, whether annotations should be process or not. By default, they are not processed, since they might populate the graph too much.

Link copied to clipboard
Link copied to clipboard

Registers an additional Language.

Loads and registers an additional Language based on a fully qualified class name (FQN).

Link copied to clipboard

Register an additional Pass.

Link copied to clipboard
fun replacePass(passType: KClass<out Pass<*>>, forLanguage: KClass<out Language<*>>, with: KClass<out Pass<*>>): TranslationConfiguration.Builder
Link copied to clipboard

Files or directories containing the source code to analyze organized by different components

Link copied to clipboard

Files or directories containing the source code to analyze. Generates a dummy software component called "application".

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If true, the ASTs for the source files are parsed in parallel, but the passes afterwards will still run in a single thread. This speeds up initial parsing but makes sure that further graph enrichment algorithms remain correct.

Link copied to clipboard

Only relevant for C++. A unity build refers to a build that consolidates all translation units into a single one, which has the advantage that header files are only processed once, adding far less duplicate nodes to the graph