clang  10.0.0svn
Public Member Functions | List of all members
clang::CallDescription Class Reference

This class represents a description of a function call using the number of arguments and the name of the function. More...

#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"

Public Member Functions

 CallDescription (int Flags, ArrayRef< const char *> QualifiedName, Optional< unsigned > RequiredArgs=None)
 Constructs a CallDescription object. More...
 
 CallDescription (ArrayRef< const char *> QualifiedName, Optional< unsigned > RequiredArgs=None)
 Construct a CallDescription with default flags. More...
 
StringRef getFunctionName () const
 Get the name of the function that this object matches. More...
 

Detailed Description

This class represents a description of a function call using the number of arguments and the name of the function.

Definition at line 1058 of file CallEvent.h.

Constructor & Destructor Documentation

◆ CallDescription() [1/2]

clang::CallDescription::CallDescription ( int  Flags,
ArrayRef< const char *>  QualifiedName,
Optional< unsigned >  RequiredArgs = None 
)
inline

Constructs a CallDescription object.

Parameters
QualifiedNameThe list of the name qualifiers of the function that will be matched. The user is allowed to skip any of the qualifiers. For example, {"std", "basic_string", "c_str"} would match both std::basic_string<...>::c_str() and std::__1::basic_string<...>::c_str().
RequiredArgsThe number of arguments that is expected to match a call. Omit this parameter to match every occurrence of call with a given name regardless the number of arguments.

Definition at line 1080 of file CallEvent.h.

◆ CallDescription() [2/2]

clang::CallDescription::CallDescription ( ArrayRef< const char *>  QualifiedName,
Optional< unsigned >  RequiredArgs = None 
)
inline

Construct a CallDescription with default flags.

Definition at line 1086 of file CallEvent.h.

Member Function Documentation

◆ getFunctionName()

StringRef clang::CallDescription::getFunctionName ( ) const
inline

Get the name of the function that this object matches.

Definition at line 1091 of file CallEvent.h.

Referenced by clang::ento::CallEvent::isCalled().


The documentation for this class was generated from the following file: