From 123243cfd80f790a27edd1b829cd190a85f6c006 Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Thu, 28 Mar 2013 23:15:32 +0000 Subject: [PATCH] [analyzer] Document existence of ConstPointerEscape. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178311 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp b/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp index ed89788e90..a9dd19a395 100644 --- a/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp +++ b/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp @@ -52,6 +52,7 @@ class CheckerDocumentation : public Checker< check::PreStmt, check::LiveSymbols, check::RegionChanges, check::PointerEscape, + check::ConstPointerEscape, check::Event, check::ASTDecl > { public: @@ -274,6 +275,17 @@ public: return State; } + /// \brief Called when const pointers escape. + /// + /// Note: in most cases checkPointerEscape callback is sufficient. + /// \sa checkPointerEscape + ProgramStateRef checkConstPointerEscape(ProgramStateRef State, + const InvalidatedSymbols &Escaped, + const CallEvent *Call, + PointerEscapeKind Kind) const { + return State; + } + /// check::Event void checkEvent(ImplicitNullDerefEvent Event) const {} -- 2.40.0