diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2016-04-14 11:56:28 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-04-14 11:56:28 +0000 |
| commit | 217a98c0d115af277b6749c70a8db8e82b4d336b (patch) | |
| tree | 2501a4953b7a51ffe76a1db53f92df4d2fb550ac /clang | |
| parent | 4e7c6fdeeb89d223258f5f68ece38764f332b295 (diff) | |
| download | bcm5719-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.h | 3 |
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> |

