diff options
-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> |