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

Class IRStringLiteral

A variable generated to represent the contents of a string literal. This variable acts much like a read-only global variable.

Import path

import semmle.code.cpp.ir.IR

Direct supertypes

Indirect supertypes

Fields

Inherited fields

Predicates

getBaseString

INTERNAL: Do not use.

getLiteral

Gets the AST of the string literal represented by this IRStringLiteral.

getUniqueId

Gets an identifier string for the variable. This identifier is unique within the function.

isReadOnly

Holds if this variable’s value cannot be changed within a function. Currently used for string literals, but could also apply to const global and static variables.

Inherited predicates

getAST

DEPRECATED: Alias for getAst

from AbstractIRGeneratedVariable
getAst

Gets the AST node that declared this variable, or that introduced this variable as part of the AST-to-IR translation.

from AbstractIRGeneratedVariable
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
getLanguageType

Gets the type of the variable.

from AbstractIRGeneratedVariable
getLocation

Gets the source location of this variable.

from AbstractIRVariable
getLocationString

INTERNAL: Do not use.

from AbstractIRGeneratedVariable
getType

Gets the type of the variable.

from AbstractIRVariable
toString

Gets a textual representation of this element.

from AbstractIRGeneratedVariable

Charpred