]> granicus.if.org Git - clang/commitdiff
[analyzer] Make it possible to query the function name from a CallDescription.
authorGabor Horvath <xazax.hun@gmail.com>
Thu, 14 Apr 2016 11:56:28 +0000 (11:56 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Thu, 14 Apr 2016 11:56:28 +0000 (11:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266293 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 7e6a3b9faafb77e02de7986a72831fe512e423a4..0bd53e60597aec2dd3149232f038833f96fb2367 100644 (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>