diff options
| author | Anna Zaks <ganna@apple.com> | 2013-03-28 23:15:32 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2013-03-28 23:15:32 +0000 |
| commit | 4b04e66c4fd8e3b0ef37de17d7af0beb959ff349 (patch) | |
| tree | 189aaf618c7664f5df68cca8ed1240129a090ca7 /clang/lib/StaticAnalyzer | |
| parent | 333481b90b78713bce2eeed2f76a5c7e7c956812 (diff) | |
| download | bcm5719-llvm-4b04e66c4fd8e3b0ef37de17d7af0beb959ff349.tar.gz bcm5719-llvm-4b04e66c4fd8e3b0ef37de17d7af0beb959ff349.zip | |
[analyzer] Document existence of ConstPointerEscape.
llvm-svn: 178311
Diffstat (limited to 'clang/lib/StaticAnalyzer')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp b/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp index ed89788e90e..a9dd19a395c 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp @@ -52,6 +52,7 @@ class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>, check::LiveSymbols, check::RegionChanges, check::PointerEscape, + check::ConstPointerEscape, check::Event<ImplicitNullDerefEvent>, check::ASTDecl<FunctionDecl> > { 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<ImplicitNullDerefEvent> void checkEvent(ImplicitNullDerefEvent Event) const {} |

