clang 20.0.0git
|
An immutable set of CallDescriptions. More...
#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
Public Member Functions | |
CallDescriptionSet (std::initializer_list< CallDescription > &&List) | |
CallDescriptionSet (const CallDescriptionSet &)=delete | |
CallDescriptionSet & | operator= (const CallDescription &)=delete |
bool | contains (const CallEvent &Call) const |
bool | containsAsWritten (const CallExpr &CE) const |
When available, always prefer lookup with a CallEvent! This function exists only when that is not available, for example, when only syntactic check is done on a piece of code. | |
An immutable set of CallDescriptions.
Checkers can efficiently decide if a given CallEvent matches any CallDescription in the set.
Definition at line 262 of file CallDescription.h.
ento::CallDescriptionSet::CallDescriptionSet | ( | std::initializer_list< CallDescription > && | List | ) |
Definition at line 156 of file CallDescription.cpp.
|
delete |
Definition at line 163 of file CallDescription.cpp.
References clang::Call.
When available, always prefer lookup with a CallEvent! This function exists only when that is not available, for example, when only syntactic check is done on a piece of code.
Also, StdLibraryFunctionsChecker::Signature is likely a better candicade for syntactic only matching if you are writing a new checker. This is handy if a CallDescriptionMap is already there.
The function is imprecise because CallEvent may know path sensitive information, such as the precise argument count (see comments for CallEvent::getNumArgs), the called function if it was called through a function pointer, and other information not available syntactically.
Definition at line 167 of file CallDescription.cpp.
|
delete |