Class IRGeneratedVariable
A variable that is not user-declared. This includes temporary variables generated as part of IR construction, as well as string literals.
Import path
import semmle.code.cpp.ir.IR
Direct supertypes
Indirect supertypes
Known direct subtypes
Inherited fields
Predicates
getAst | Gets the AST node that declared this variable, or that introduced this variable as part of the AST-to-IR translation. |
getBaseString | INTERNAL: Do not use. |
getLanguageType | Gets the type of the variable. |
getLocationString | INTERNAL: Do not use. |
getUniqueId | Gets an identifier string for the variable. This identifier is unique within the function. |
toString | Gets a textual representation of this element. |
Inherited predicates
getEnclosingFunction | Gets the function that references this variable. | from AbstractIRVariable |
getEnclosingIRFunction | Gets the IR for the function that references this variable. | from AbstractIRVariable |
getIRType | Gets the language-neutral type of the variable. | from AbstractIRVariable |
getLocation | Gets the source location of this variable. | from AbstractIRVariable |
getType | Gets the type of the variable. | from AbstractIRVariable |
isReadOnly | Holds if this variable’s value cannot be changed within a function. Currently used for string literals, but could also apply to | from AbstractIRVariable |