[analyzer] Make it possible to query the function name from a CallDescription.

llvm-svn: 266293
This commit is contained in:
Gabor Horvath 2016-04-14 11:56:28 +00:00
parent 4e7c6fdeeb
commit 217a98c0d1
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ public:
/// name regardless the number of arguments.
CallDescription(StringRef FuncName, unsigned RequiredArgs = NoArgRequirement)
: II(nullptr), FuncName(FuncName), RequiredArgs(RequiredArgs) {}
/// \brief Get the name of the function that this object matches.
StringRef getFunctionName() const { return FuncName; }
};
template<typename T = CallEvent>