xref: /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp (revision 7330f729ccf0bd976a06f95fad452fe774fc7fd1)
1*7330f729Sjoerg //===- CheckerDocumentation.cpp - Documentation checker ---------*- C++ -*-===//
2*7330f729Sjoerg //
3*7330f729Sjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*7330f729Sjoerg // See https://llvm.org/LICENSE.txt for license information.
5*7330f729Sjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*7330f729Sjoerg //
7*7330f729Sjoerg //===----------------------------------------------------------------------===//
8*7330f729Sjoerg //
9*7330f729Sjoerg // This checker lists all the checker callbacks and provides documentation for
10*7330f729Sjoerg // checker writers.
11*7330f729Sjoerg //
12*7330f729Sjoerg //===----------------------------------------------------------------------===//
13*7330f729Sjoerg 
14*7330f729Sjoerg #include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
15*7330f729Sjoerg #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
16*7330f729Sjoerg #include "clang/StaticAnalyzer/Core/Checker.h"
17*7330f729Sjoerg #include "clang/StaticAnalyzer/Core/CheckerManager.h"
18*7330f729Sjoerg #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
19*7330f729Sjoerg #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h"
20*7330f729Sjoerg 
21*7330f729Sjoerg using namespace clang;
22*7330f729Sjoerg using namespace ento;
23*7330f729Sjoerg 
24*7330f729Sjoerg // All checkers should be placed into anonymous namespace.
25*7330f729Sjoerg // We place the CheckerDocumentation inside ento namespace to make the
26*7330f729Sjoerg // it visible in doxygen.
27*7330f729Sjoerg namespace clang {
28*7330f729Sjoerg namespace ento {
29*7330f729Sjoerg 
30*7330f729Sjoerg /// This checker documents the callback functions checkers can use to implement
31*7330f729Sjoerg /// the custom handling of the specific events during path exploration as well
32*7330f729Sjoerg /// as reporting bugs. Most of the callbacks are targeted at path-sensitive
33*7330f729Sjoerg /// checking.
34*7330f729Sjoerg ///
35*7330f729Sjoerg /// \sa CheckerContext
36*7330f729Sjoerg class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>,
37*7330f729Sjoerg                                        check::PostStmt<DeclStmt>,
38*7330f729Sjoerg                                        check::PreObjCMessage,
39*7330f729Sjoerg                                        check::PostObjCMessage,
40*7330f729Sjoerg                                        check::ObjCMessageNil,
41*7330f729Sjoerg                                        check::PreCall,
42*7330f729Sjoerg                                        check::PostCall,
43*7330f729Sjoerg                                        check::BranchCondition,
44*7330f729Sjoerg                                        check::NewAllocator,
45*7330f729Sjoerg                                        check::Location,
46*7330f729Sjoerg                                        check::Bind,
47*7330f729Sjoerg                                        check::DeadSymbols,
48*7330f729Sjoerg                                        check::BeginFunction,
49*7330f729Sjoerg                                        check::EndFunction,
50*7330f729Sjoerg                                        check::EndAnalysis,
51*7330f729Sjoerg                                        check::EndOfTranslationUnit,
52*7330f729Sjoerg                                        eval::Call,
53*7330f729Sjoerg                                        eval::Assume,
54*7330f729Sjoerg                                        check::LiveSymbols,
55*7330f729Sjoerg                                        check::RegionChanges,
56*7330f729Sjoerg                                        check::PointerEscape,
57*7330f729Sjoerg                                        check::ConstPointerEscape,
58*7330f729Sjoerg                                        check::Event<ImplicitNullDerefEvent>,
59*7330f729Sjoerg                                        check::ASTDecl<FunctionDecl> > {
60*7330f729Sjoerg public:
61*7330f729Sjoerg   /// Pre-visit the Statement.
62*7330f729Sjoerg   ///
63*7330f729Sjoerg   /// The method will be called before the analyzer core processes the
64*7330f729Sjoerg   /// statement. The notification is performed for every explored CFGElement,
65*7330f729Sjoerg   /// which does not include the control flow statements such as IfStmt. The
66*7330f729Sjoerg   /// callback can be specialized to be called with any subclass of Stmt.
67*7330f729Sjoerg   ///
68*7330f729Sjoerg   /// See checkBranchCondition() callback for performing custom processing of
69*7330f729Sjoerg   /// the branching statements.
70*7330f729Sjoerg   ///
71*7330f729Sjoerg   /// check::PreStmt<ReturnStmt>
checkPreStmt(const ReturnStmt * DS,CheckerContext & C) const72*7330f729Sjoerg   void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {}
73*7330f729Sjoerg 
74*7330f729Sjoerg   /// Post-visit the Statement.
75*7330f729Sjoerg   ///
76*7330f729Sjoerg   /// The method will be called after the analyzer core processes the
77*7330f729Sjoerg   /// statement. The notification is performed for every explored CFGElement,
78*7330f729Sjoerg   /// which does not include the control flow statements such as IfStmt. The
79*7330f729Sjoerg   /// callback can be specialized to be called with any subclass of Stmt.
80*7330f729Sjoerg   ///
81*7330f729Sjoerg   /// check::PostStmt<DeclStmt>
82*7330f729Sjoerg   void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
83*7330f729Sjoerg 
84*7330f729Sjoerg   /// Pre-visit the Objective C message.
85*7330f729Sjoerg   ///
86*7330f729Sjoerg   /// This will be called before the analyzer core processes the method call.
87*7330f729Sjoerg   /// This is called for any action which produces an Objective-C message send,
88*7330f729Sjoerg   /// including explicit message syntax and property access.
89*7330f729Sjoerg   ///
90*7330f729Sjoerg   /// check::PreObjCMessage
checkPreObjCMessage(const ObjCMethodCall & M,CheckerContext & C) const91*7330f729Sjoerg   void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const {}
92*7330f729Sjoerg 
93*7330f729Sjoerg   /// Post-visit the Objective C message.
94*7330f729Sjoerg   /// \sa checkPreObjCMessage()
95*7330f729Sjoerg   ///
96*7330f729Sjoerg   /// check::PostObjCMessage
checkPostObjCMessage(const ObjCMethodCall & M,CheckerContext & C) const97*7330f729Sjoerg   void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const {}
98*7330f729Sjoerg 
99*7330f729Sjoerg   /// Visit an Objective-C message whose receiver is nil.
100*7330f729Sjoerg   ///
101*7330f729Sjoerg   /// This will be called when the analyzer core processes a method call whose
102*7330f729Sjoerg   /// receiver is definitely nil. In this case, check{Pre/Post}ObjCMessage and
103*7330f729Sjoerg   /// check{Pre/Post}Call will not be called.
104*7330f729Sjoerg   ///
105*7330f729Sjoerg   /// check::ObjCMessageNil
checkObjCMessageNil(const ObjCMethodCall & M,CheckerContext & C) const106*7330f729Sjoerg   void checkObjCMessageNil(const ObjCMethodCall &M, CheckerContext &C) const {}
107*7330f729Sjoerg 
108*7330f729Sjoerg   /// Pre-visit an abstract "call" event.
109*7330f729Sjoerg   ///
110*7330f729Sjoerg   /// This is used for checkers that want to check arguments or attributed
111*7330f729Sjoerg   /// behavior for functions and methods no matter how they are being invoked.
112*7330f729Sjoerg   ///
113*7330f729Sjoerg   /// Note that this includes ALL cross-body invocations, so if you want to
114*7330f729Sjoerg   /// limit your checks to, say, function calls, you should test for that at the
115*7330f729Sjoerg   /// beginning of your callback function.
116*7330f729Sjoerg   ///
117*7330f729Sjoerg   /// check::PreCall
checkPreCall(const CallEvent & Call,CheckerContext & C) const118*7330f729Sjoerg   void checkPreCall(const CallEvent &Call, CheckerContext &C) const {}
119*7330f729Sjoerg 
120*7330f729Sjoerg   /// Post-visit an abstract "call" event.
121*7330f729Sjoerg   /// \sa checkPreObjCMessage()
122*7330f729Sjoerg   ///
123*7330f729Sjoerg   /// check::PostCall
checkPostCall(const CallEvent & Call,CheckerContext & C) const124*7330f729Sjoerg   void checkPostCall(const CallEvent &Call, CheckerContext &C) const {}
125*7330f729Sjoerg 
126*7330f729Sjoerg   /// Pre-visit of the condition statement of a branch (such as IfStmt).
checkBranchCondition(const Stmt * Condition,CheckerContext & Ctx) const127*7330f729Sjoerg   void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const {}
128*7330f729Sjoerg 
129*7330f729Sjoerg   /// Post-visit the C++ operator new's allocation call.
130*7330f729Sjoerg   ///
131*7330f729Sjoerg   /// Execution of C++ operator new consists of the following phases: (1) call
132*7330f729Sjoerg   /// default or overridden operator new() to allocate memory (2) cast the
133*7330f729Sjoerg   /// return value of operator new() from void pointer type to class pointer
134*7330f729Sjoerg   /// type, (3) assuming that the value is non-null, call the object's
135*7330f729Sjoerg   /// constructor over this pointer, (4) declare that the value of the
136*7330f729Sjoerg   /// new-expression is this pointer. This callback is called between steps
137*7330f729Sjoerg   /// (2) and (3). Post-call for the allocator is called after step (1).
138*7330f729Sjoerg   /// Pre-statement for the new-expression is called on step (4) when the value
139*7330f729Sjoerg   /// of the expression is evaluated.
140*7330f729Sjoerg   /// \param NE     The C++ new-expression that triggered the allocation.
141*7330f729Sjoerg   /// \param Target The allocated region, casted to the class type.
checkNewAllocator(const CXXNewExpr * NE,SVal Target,CheckerContext &) const142*7330f729Sjoerg   void checkNewAllocator(const CXXNewExpr *NE, SVal Target,
143*7330f729Sjoerg                          CheckerContext &) const {}
144*7330f729Sjoerg 
145*7330f729Sjoerg   /// Called on a load from and a store to a location.
146*7330f729Sjoerg   ///
147*7330f729Sjoerg   /// The method will be called each time a location (pointer) value is
148*7330f729Sjoerg   /// accessed.
149*7330f729Sjoerg   /// \param Loc    The value of the location (pointer).
150*7330f729Sjoerg   /// \param IsLoad The flag specifying if the location is a store or a load.
151*7330f729Sjoerg   /// \param S      The load is performed while processing the statement.
152*7330f729Sjoerg   ///
153*7330f729Sjoerg   /// check::Location
checkLocation(SVal Loc,bool IsLoad,const Stmt * S,CheckerContext &) const154*7330f729Sjoerg   void checkLocation(SVal Loc, bool IsLoad, const Stmt *S,
155*7330f729Sjoerg                      CheckerContext &) const {}
156*7330f729Sjoerg 
157*7330f729Sjoerg   /// Called on binding of a value to a location.
158*7330f729Sjoerg   ///
159*7330f729Sjoerg   /// \param Loc The value of the location (pointer).
160*7330f729Sjoerg   /// \param Val The value which will be stored at the location Loc.
161*7330f729Sjoerg   /// \param S   The bind is performed while processing the statement S.
162*7330f729Sjoerg   ///
163*7330f729Sjoerg   /// check::Bind
checkBind(SVal Loc,SVal Val,const Stmt * S,CheckerContext &) const164*7330f729Sjoerg   void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {}
165*7330f729Sjoerg 
166*7330f729Sjoerg   /// Called whenever a symbol becomes dead.
167*7330f729Sjoerg   ///
168*7330f729Sjoerg   /// This callback should be used by the checkers to aggressively clean
169*7330f729Sjoerg   /// up/reduce the checker state, which is important for reducing the overall
170*7330f729Sjoerg   /// memory usage. Specifically, if a checker keeps symbol specific information
171*7330f729Sjoerg   /// in the state, it can and should be dropped after the symbol becomes dead.
172*7330f729Sjoerg   /// In addition, reporting a bug as soon as the checker becomes dead leads to
173*7330f729Sjoerg   /// more precise diagnostics. (For example, one should report that a malloced
174*7330f729Sjoerg   /// variable is not freed right after it goes out of scope.)
175*7330f729Sjoerg   ///
176*7330f729Sjoerg   /// \param SR The SymbolReaper object can be queried to determine which
177*7330f729Sjoerg   ///           symbols are dead.
178*7330f729Sjoerg   ///
179*7330f729Sjoerg   /// check::DeadSymbols
checkDeadSymbols(SymbolReaper & SR,CheckerContext & C) const180*7330f729Sjoerg   void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const {}
181*7330f729Sjoerg 
182*7330f729Sjoerg 
183*7330f729Sjoerg   /// Called when the analyzer core starts analyzing a function,
184*7330f729Sjoerg   /// regardless of whether it is analyzed at the top level or is inlined.
185*7330f729Sjoerg   ///
186*7330f729Sjoerg   /// check::BeginFunction
checkBeginFunction(CheckerContext & Ctx) const187*7330f729Sjoerg   void checkBeginFunction(CheckerContext &Ctx) const {}
188*7330f729Sjoerg 
189*7330f729Sjoerg   /// Called when the analyzer core reaches the end of a
190*7330f729Sjoerg   /// function being analyzed regardless of whether it is analyzed at the top
191*7330f729Sjoerg   /// level or is inlined.
192*7330f729Sjoerg   ///
193*7330f729Sjoerg   /// check::EndFunction
checkEndFunction(const ReturnStmt * RS,CheckerContext & Ctx) const194*7330f729Sjoerg   void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const {}
195*7330f729Sjoerg 
196*7330f729Sjoerg   /// Called after all the paths in the ExplodedGraph reach end of path
197*7330f729Sjoerg   /// - the symbolic execution graph is fully explored.
198*7330f729Sjoerg   ///
199*7330f729Sjoerg   /// This callback should be used in cases when a checker needs to have a
200*7330f729Sjoerg   /// global view of the information generated on all paths. For example, to
201*7330f729Sjoerg   /// compare execution summary/result several paths.
202*7330f729Sjoerg   /// See IdempotentOperationChecker for a usage example.
203*7330f729Sjoerg   ///
204*7330f729Sjoerg   /// check::EndAnalysis
checkEndAnalysis(ExplodedGraph & G,BugReporter & BR,ExprEngine & Eng) const205*7330f729Sjoerg   void checkEndAnalysis(ExplodedGraph &G,
206*7330f729Sjoerg                         BugReporter &BR,
207*7330f729Sjoerg                         ExprEngine &Eng) const {}
208*7330f729Sjoerg 
209*7330f729Sjoerg   /// Called after analysis of a TranslationUnit is complete.
210*7330f729Sjoerg   ///
211*7330f729Sjoerg   /// check::EndOfTranslationUnit
checkEndOfTranslationUnit(const TranslationUnitDecl * TU,AnalysisManager & Mgr,BugReporter & BR) const212*7330f729Sjoerg   void checkEndOfTranslationUnit(const TranslationUnitDecl *TU,
213*7330f729Sjoerg                                  AnalysisManager &Mgr,
214*7330f729Sjoerg                                  BugReporter &BR) const {}
215*7330f729Sjoerg 
216*7330f729Sjoerg   /// Evaluates function call.
217*7330f729Sjoerg   ///
218*7330f729Sjoerg   /// The analysis core treats all function calls in the same way. However, some
219*7330f729Sjoerg   /// functions have special meaning, which should be reflected in the program
220*7330f729Sjoerg   /// state. This callback allows a checker to provide domain specific knowledge
221*7330f729Sjoerg   /// about the particular functions it knows about.
222*7330f729Sjoerg   ///
223*7330f729Sjoerg   /// \returns true if the call has been successfully evaluated
224*7330f729Sjoerg   /// and false otherwise. Note, that only one checker can evaluate a call. If
225*7330f729Sjoerg   /// more than one checker claims that they can evaluate the same call the
226*7330f729Sjoerg   /// first one wins.
227*7330f729Sjoerg   ///
228*7330f729Sjoerg   /// eval::Call
evalCall(const CallExpr * CE,CheckerContext & C) const229*7330f729Sjoerg   bool evalCall(const CallExpr *CE, CheckerContext &C) const { return true; }
230*7330f729Sjoerg 
231*7330f729Sjoerg   /// Handles assumptions on symbolic values.
232*7330f729Sjoerg   ///
233*7330f729Sjoerg   /// This method is called when a symbolic expression is assumed to be true or
234*7330f729Sjoerg   /// false. For example, the assumptions are performed when evaluating a
235*7330f729Sjoerg   /// condition at a branch. The callback allows checkers track the assumptions
236*7330f729Sjoerg   /// performed on the symbols of interest and change the state accordingly.
237*7330f729Sjoerg   ///
238*7330f729Sjoerg   /// eval::Assume
evalAssume(ProgramStateRef State,SVal Cond,bool Assumption) const239*7330f729Sjoerg   ProgramStateRef evalAssume(ProgramStateRef State,
240*7330f729Sjoerg                                  SVal Cond,
241*7330f729Sjoerg                                  bool Assumption) const { return State; }
242*7330f729Sjoerg 
243*7330f729Sjoerg   /// Allows modifying SymbolReaper object. For example, checkers can explicitly
244*7330f729Sjoerg   /// register symbols of interest as live. These symbols will not be marked
245*7330f729Sjoerg   /// dead and removed.
246*7330f729Sjoerg   ///
247*7330f729Sjoerg   /// check::LiveSymbols
checkLiveSymbols(ProgramStateRef State,SymbolReaper & SR) const248*7330f729Sjoerg   void checkLiveSymbols(ProgramStateRef State, SymbolReaper &SR) const {}
249*7330f729Sjoerg 
250*7330f729Sjoerg   /// Called when the contents of one or more regions change.
251*7330f729Sjoerg   ///
252*7330f729Sjoerg   /// This can occur in many different ways: an explicit bind, a blanket
253*7330f729Sjoerg   /// invalidation of the region contents, or by passing a region to a function
254*7330f729Sjoerg   /// call whose behavior the analyzer cannot model perfectly.
255*7330f729Sjoerg   ///
256*7330f729Sjoerg   /// \param State The current program state.
257*7330f729Sjoerg   /// \param Invalidated A set of all symbols potentially touched by the change.
258*7330f729Sjoerg   /// \param ExplicitRegions The regions explicitly requested for invalidation.
259*7330f729Sjoerg   ///        For a function call, this would be the arguments. For a bind, this
260*7330f729Sjoerg   ///        would be the region being bound to.
261*7330f729Sjoerg   /// \param Regions The transitive closure of regions accessible from,
262*7330f729Sjoerg   ///        \p ExplicitRegions, i.e. all regions that may have been touched
263*7330f729Sjoerg   ///        by this change. For a simple bind, this list will be the same as
264*7330f729Sjoerg   ///        \p ExplicitRegions, since a bind does not affect the contents of
265*7330f729Sjoerg   ///        anything accessible through the base region.
266*7330f729Sjoerg   /// \param LCtx LocationContext that is useful for getting various contextual
267*7330f729Sjoerg   ///        info, like callstack, CFG etc.
268*7330f729Sjoerg   /// \param Call The opaque call triggering this invalidation. Will be 0 if the
269*7330f729Sjoerg   ///        change was not triggered by a call.
270*7330f729Sjoerg   ///
271*7330f729Sjoerg   /// check::RegionChanges
272*7330f729Sjoerg   ProgramStateRef
checkRegionChanges(ProgramStateRef State,const InvalidatedSymbols * Invalidated,ArrayRef<const MemRegion * > ExplicitRegions,ArrayRef<const MemRegion * > Regions,const LocationContext * LCtx,const CallEvent * Call) const273*7330f729Sjoerg     checkRegionChanges(ProgramStateRef State,
274*7330f729Sjoerg                        const InvalidatedSymbols *Invalidated,
275*7330f729Sjoerg                        ArrayRef<const MemRegion *> ExplicitRegions,
276*7330f729Sjoerg                        ArrayRef<const MemRegion *> Regions,
277*7330f729Sjoerg                        const LocationContext *LCtx,
278*7330f729Sjoerg                        const CallEvent *Call) const {
279*7330f729Sjoerg     return State;
280*7330f729Sjoerg   }
281*7330f729Sjoerg 
282*7330f729Sjoerg   /// Called when pointers escape.
283*7330f729Sjoerg   ///
284*7330f729Sjoerg   /// This notifies the checkers about pointer escape, which occurs whenever
285*7330f729Sjoerg   /// the analyzer cannot track the symbol any more. For example, as a
286*7330f729Sjoerg   /// result of assigning a pointer into a global or when it's passed to a
287*7330f729Sjoerg   /// function call the analyzer cannot model.
288*7330f729Sjoerg   ///
289*7330f729Sjoerg   /// \param State The state at the point of escape.
290*7330f729Sjoerg   /// \param Escaped The list of escaped symbols.
291*7330f729Sjoerg   /// \param Call The corresponding CallEvent, if the symbols escape as
292*7330f729Sjoerg   /// parameters to the given call.
293*7330f729Sjoerg   /// \param Kind How the symbols have escaped.
294*7330f729Sjoerg   /// \returns Checkers can modify the state by returning a new state.
checkPointerEscape(ProgramStateRef State,const InvalidatedSymbols & Escaped,const CallEvent * Call,PointerEscapeKind Kind) const295*7330f729Sjoerg   ProgramStateRef checkPointerEscape(ProgramStateRef State,
296*7330f729Sjoerg                                      const InvalidatedSymbols &Escaped,
297*7330f729Sjoerg                                      const CallEvent *Call,
298*7330f729Sjoerg                                      PointerEscapeKind Kind) const {
299*7330f729Sjoerg     return State;
300*7330f729Sjoerg   }
301*7330f729Sjoerg 
302*7330f729Sjoerg   /// Called when const pointers escape.
303*7330f729Sjoerg   ///
304*7330f729Sjoerg   /// Note: in most cases checkPointerEscape callback is sufficient.
305*7330f729Sjoerg   /// \sa checkPointerEscape
checkConstPointerEscape(ProgramStateRef State,const InvalidatedSymbols & Escaped,const CallEvent * Call,PointerEscapeKind Kind) const306*7330f729Sjoerg   ProgramStateRef checkConstPointerEscape(ProgramStateRef State,
307*7330f729Sjoerg                                      const InvalidatedSymbols &Escaped,
308*7330f729Sjoerg                                      const CallEvent *Call,
309*7330f729Sjoerg                                      PointerEscapeKind Kind) const {
310*7330f729Sjoerg     return State;
311*7330f729Sjoerg   }
312*7330f729Sjoerg 
313*7330f729Sjoerg   /// check::Event<ImplicitNullDerefEvent>
checkEvent(ImplicitNullDerefEvent Event) const314*7330f729Sjoerg   void checkEvent(ImplicitNullDerefEvent Event) const {}
315*7330f729Sjoerg 
316*7330f729Sjoerg   /// Check every declaration in the AST.
317*7330f729Sjoerg   ///
318*7330f729Sjoerg   /// An AST traversal callback, which should only be used when the checker is
319*7330f729Sjoerg   /// not path sensitive. It will be called for every Declaration in the AST and
320*7330f729Sjoerg   /// can be specialized to only be called on subclasses of Decl, for example,
321*7330f729Sjoerg   /// FunctionDecl.
322*7330f729Sjoerg   ///
323*7330f729Sjoerg   /// check::ASTDecl<FunctionDecl>
checkASTDecl(const FunctionDecl * D,AnalysisManager & Mgr,BugReporter & BR) const324*7330f729Sjoerg   void checkASTDecl(const FunctionDecl *D,
325*7330f729Sjoerg                     AnalysisManager &Mgr,
326*7330f729Sjoerg                     BugReporter &BR) const {}
327*7330f729Sjoerg };
328*7330f729Sjoerg 
checkPostStmt(const DeclStmt * DS,CheckerContext & C) const329*7330f729Sjoerg void CheckerDocumentation::checkPostStmt(const DeclStmt *DS,
330*7330f729Sjoerg                                          CheckerContext &C) const {
331*7330f729Sjoerg }
332*7330f729Sjoerg 
333*7330f729Sjoerg } // end namespace ento
334*7330f729Sjoerg } // end namespace clang
335