13#ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CHECKERHELPERS_H
14#define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CHECKERHELPERS_H
41 for (
const Stmt *Child : S->children())
42 if (Child && containsStmt<T>(Child))
48std::pair<const clang::VarDecl *, const clang::Expr *>
89 assert(IsBinary &&
"cannot get binary operator - we have a unary operator");
101 "cannot get unary operator - we have a binary operator");
Defines an enumeration for C++ overloaded operators.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
A (possibly-)qualified type.
Stmt - This represents one statement.
The base class of the type hierarchy.
UnaryOperatorKind GetUnaryOpUnsafe() const
BinaryOperatorKind GetBinaryOpUnsafe() const
std::optional< UnaryOperatorKind > GetUnaryOp() const
OperatorKind(UnaryOperatorKind Un)
OperatorKind(BinaryOperatorKind Bin)
std::optional< BinaryOperatorKind > GetBinaryOp() const
bool containsEnum(const Stmt *S)
Nullability getNullabilityAnnotation(QualType Type)
Get nullability annotation for a given type.
IntrusiveRefCntPtr< const ProgramState > ProgramStateRef
bool containsStaticLocal(const Stmt *S)
std::pair< const clang::VarDecl *, const clang::Expr * > parseAssignment(const Stmt *S)
OperatorKind operationKindFromOverloadedOperator(OverloadedOperatorKind OOK, bool IsBinary)
bool containsBuiltinOffsetOf(const Stmt *S)
std::optional< SVal > getPointeeVal(SVal PtrSVal, ProgramStateRef State)
std::optional< int > tryExpandAsInteger(StringRef Macro, const Preprocessor &PP)
Try to parse the value of a defined preprocessor macro.
bool containsStmt(const Stmt *S)
bool containsMacro(const Stmt *S)
The JSON file list parser is used to communicate input to InstallAPI.
OverloadedOperatorKind
Enumeration specifying the different kinds of C++ overloaded operators.