Package-level declarations

Types

Link copied to clipboard
abstract class CXXHandler<S : Node, T : IASTNode>(configConstructor: Supplier<S>, lang: CXXLanguageFrontend) : Handler<S, T, CXXLanguageFrontend>
Link copied to clipboard
open class CXXLanguageFrontend(language: Language<CXXLanguageFrontend>, ctx: TranslationContext) : LanguageFrontend<IASTNode, IASTTypeId>

The language frontend for translating C/C++ languages into the graph. It uses Eclipse CDT to parse the actual source code into an AST.

Link copied to clipboard

This class is a CXXHandler which takes care of translating C/C++ declarations into Declaration nodes. It heavily relies on its sibling handler, the DeclaratorHandler.

Link copied to clipboard

Takes care of translating a declarator into a Declaration.

Link copied to clipboard

Note: CDT expresses hierarchies in Interfaces to allow to have multi-inheritance in java. Because some Expressions have sub elements of type IASTInitializerClause and in the hierarchy IASTExpression extends IASTInitializerClause. The later is the appropriate Interface type for the handler.

Link copied to clipboard
Link copied to clipboard
class ParameterDeclarationHandler(lang: CXXLanguageFrontend) : CXXHandler<Declaration, IASTParameterDeclaration>
Link copied to clipboard

Properties

Link copied to clipboard
const val CONST: String
Link copied to clipboard

Returns whether this method is a Destructor.

Functions

Link copied to clipboard
fun IASTDeclarator.realName(): Pair<IASTDeclarator, Boolean>

This function returns the real name (declarator) of this IASTDeclarator. The name itself can be wrapped in many layers of nested declarators, e.g., if the name is wrapped in ().