r266293 - [analyzer] Make it possible to query the function name from a CallDescription.
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 14 04:56:29 PDT 2016
Author: xazax
Date: Thu Apr 14 06:56:28 2016
New Revision: 266293
URL: http://llvm.org/viewvc/llvm-project?rev=266293&view=rev
Log:
[analyzer] Make it possible to query the function name from a CallDescription.
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h?rev=266293&r1=266292&r2=266293&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h Thu Apr 14 06:56:28 2016
@@ -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>
More information about the cfe-commits
mailing list