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

Class StringLiteralNode

A node representing a StringLiteral.

Import path

import semmle.code.cpp.PrintAST

Direct supertypes

Indirect supertypes

Inherited fields

Predicates

getValue

Gets the value of this expression, if it is a constant.

toString

Gets a textual representation of this node in the PrintAST output tree.

Inherited predicates

getAChild

Gets the children of this node.

from PrintAstNode
getAst

Gets the AST represented by this node.

from BaseAstNode
getChild

Gets the child node at index childIndex. Adds edges to fully converted expressions, that are not part of the regular parent/child relation traversal.

from PrintAstNode
getChildAccessorPredicate

Gets the QL predicate that can be used to access the child at childIndex. May not always return a QL predicate, see for example FunctionNode.

from PrintAstNode
getChildAccessorPredicateInternal

Gets the QL predicate that can be used to access the child at childIndex. INTERNAL DO NOT USE: Does not contain accessors for the synthesized nodes for conversions.

from ExprNode
getChildInternal

Gets the child node at index childIndex. Child indices must be unique, but need not be contiguous.

from ExprNode
getLocation

Gets the location of this node in the source code.

from BaseAstNode
getParent

Gets the parent of this node, if any.

from PrintAstNode
getProperty

Gets the value of the property of this node, where the name of the property is key.

from ExprNode
shouldPrint

Holds if this node should be printed in the output. By default, all nodes within functions and global and namespace variables are printed, but the query can override PrintASTConfiguration.shouldPrintDeclaration to filter the output.

from PrintAstNode

Charpred