From 4080b0ccebf7c7fbd39c125d74f15a3b7ec729be Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 2 Nov 2012 23:49:33 +0000 Subject: [PATCH] [analyzer] CheckerDocumentation: Change examples for PreStmt and PostStmt. llvm-svn: 167339 --- .../StaticAnalyzer/Checkers/CheckerDocumentation.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp b/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp index 0e9efaa..58ada9d 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp @@ -33,8 +33,8 @@ namespace ento { /// checking. /// /// \sa CheckerContext -class CheckerDocumentation : public Checker< check::PreStmt, - check::PostStmt, +class CheckerDocumentation : public Checker< check::PreStmt, + check::PostStmt, check::PreObjCMessage, check::PostObjCMessage, check::PreCall, @@ -64,8 +64,8 @@ public: /// See checkBranchCondition() callback for performing custom processing of /// the branching statements. /// - /// check::PreStmt - void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const {} + /// check::PreStmt + void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {} /// \brief Post-visit the Statement. /// @@ -74,8 +74,8 @@ public: /// which does not include the control flow statements such as IfStmt. The /// callback can be specialized to be called with any subclass of Stmt. /// - /// check::PostStmt - void checkPostStmt(const CallExpr *DS, CheckerContext &C) const; + /// check::PostStmt + void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const; /// \brief Pre-visit the Objective C message. /// @@ -98,8 +98,8 @@ public: /// behavior for functions and methods no matter how they are being invoked. /// /// Note that this includes ALL cross-body invocations, so if you want to - /// limit your checks to, say, function calls, you can either test for that - /// or fall back to the explicit callback (i.e. check::PreStmt). + /// limit your checks to, say, function calls, you should test for that at the + /// beginning of your callback function. /// /// check::PreCall void checkPreCall(const CallEvent &Call, CheckerContext &C) const {} @@ -256,7 +256,7 @@ public: }; -void CheckerDocumentation::checkPostStmt(const CallExpr *DS, +void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, CheckerContext &C) const { return; } -- 2.7.4