CodeQL library for C/C++
codeql/cpp-all 0.13.0 (changelog, source)
Search

Class IRDeclarationEntries::IRDeclarationEntry

An entity that represents a declaration entry in the database.

This class exists to work around the fact that DeclStmts in some cases do not have DeclarationEntrys in older databases.

So instead, the IR works with IRDeclarationEntrys that synthesize missing DeclarationEntrys when there is no result for DeclStmt::getDeclarationEntry.

Import path

import semmle.code.cpp.ir.implementation.raw.internal.TranslatedElement

Direct supertypes

Known direct subtypes

    Predicates

    getAst

    Gets the AST represented by this IRDeclarationEntry.

    getDeclaration

    Gets the Declaration declared by this IRDeclarationEntry.

    getStmt

    Gets the DeclStmt that this IRDeclarationEntry belongs to.

    hasIndex

    Holds if this IRDeclarationEntry is the index’th entry declared by the enclosing DeclStmt.

    toString

    Gets a string representation of this IRDeclarationEntry.