From: Gabor Horvath Date: Thu, 14 Apr 2016 11:56:28 +0000 (+0000) Subject: [analyzer] Make it possible to query the function name from a CallDescription. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e153577dd333b8977f91dbb70b60a58c9197285d;p=clang [analyzer] Make it possible to query the function name from a CallDescription. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266293 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index 7e6a3b9faa..0bd53e6059 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -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