summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2016-04-14 11:56:28 +0000
committerGabor Horvath <xazax.hun@gmail.com>2016-04-14 11:56:28 +0000
commit217a98c0d115af277b6749c70a8db8e82b4d336b (patch)
tree2501a4953b7a51ffe76a1db53f92df4d2fb550ac /clang
parent4e7c6fdeeb89d223258f5f68ece38764f332b295 (diff)
downloadbcm5719-llvm-217a98c0d115af277b6749c70a8db8e82b4d336b.tar.gz
bcm5719-llvm-217a98c0d115af277b6749c70a8db8e82b4d336b.zip
[analyzer] Make it possible to query the function name from a CallDescription.
llvm-svn: 266293
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
index 7e6a3b9faaf..0bd53e60597 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
+++ b/clang/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<typename T = CallEvent>
OpenPOWER on IntegriCloud