clang  6.0.0svn
Public Member Functions | Static Public Attributes | List of all members
clang::ento::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"

Collaboration diagram for clang::ento::CallDescription:
Collaboration graph
[legend]

Public Member Functions

 CallDescription (StringRef FuncName, unsigned RequiredArgs=NoArgRequirement)
 Constructs a CallDescription object. More...
 
StringRef getFunctionName () const
 Get the name of the function that this object matches. More...
 

Static Public Attributes

static const unsigned NoArgRequirement = ~0
 

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 55 of file CallEvent.h.

Constructor & Destructor Documentation

◆ CallDescription()

clang::ento::CallDescription::CallDescription ( StringRef  FuncName,
unsigned  RequiredArgs = NoArgRequirement 
)
inline

Constructs a CallDescription object.

Parameters
FuncNameThe name of the function that will be matched.
RequiredArgsThe number of arguments that is expected to match a call. Omit this parameter to match every occurance of call with a given name regardless the number of arguments.

Definition at line 71 of file CallEvent.h.

Member Function Documentation

◆ getFunctionName()

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

Get the name of the function that this object matches.

Definition at line 76 of file CallEvent.h.

Member Data Documentation

◆ NoArgRequirement

const unsigned clang::ento::CallDescription::NoArgRequirement = ~0
static

Definition at line 63 of file CallEvent.h.

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


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