clang 20.0.0git
|
An immutable map from CallDescriptions to arbitrary data. More...
#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
Public Member Functions | |
CallDescriptionMap (std::initializer_list< std::pair< CallDescription, T > > &&List) | |
template<typename InputIt > | |
CallDescriptionMap (InputIt First, InputIt Last) | |
~CallDescriptionMap ()=default | |
CallDescriptionMap (const CallDescriptionMap &)=delete | |
CallDescriptionMap & | operator= (const CallDescription &)=delete |
CallDescriptionMap (CallDescriptionMap &&)=default | |
CallDescriptionMap & | operator= (CallDescriptionMap &&)=default |
const T * | lookup (const CallEvent &Call) const |
const T * | lookupAsWritten (const CallExpr &Call) 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. | |
Friends | |
class | CallDescriptionSet |
An immutable map from CallDescriptions to arbitrary data.
Provides a unified way for checkers to react on function calls.
Definition at line 194 of file CallDescription.h.
|
inline |
Definition at line 205 of file CallDescription.h.
|
inline |
Definition at line 210 of file CallDescription.h.
|
default |
|
delete |
|
default |
|
inline |
Definition at line 222 of file CallDescription.h.
References clang::Call.
|
inline |
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 244 of file CallDescription.h.
References clang::Call.
|
default |
|
delete |
|
friend |
Definition at line 195 of file CallDescription.h.