CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StaticLocalChecker.h
Go to the documentation of this file.
1 //== StaticLocalChecker.h - Checks for non-const static locals --------------*- C++ -*--==//
2 //
3 // by Thomas Hauth [ Thomas.Hauth@cern.ch ]
4 //
5 //===----------------------------------------------------------------------===//
6 
7 #ifndef Utilities_StaticAnalyzers_StaticLocalChecker_h
8 #define Utilities_StaticAnalyzers_StaticLocalChecker_h
9 
10 #include <clang/StaticAnalyzer/Core/Checker.h>
11 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
12 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
13 
14 #include "CmsException.h"
15 
16 
17 namespace clangcms {
18 class StaticLocalChecker : public clang::ento::Checker< clang::ento::check::ASTDecl< clang::VarDecl> > {
19  mutable std::unique_ptr<clang::ento::BuiltinBug> BT;
20 
21 public:
22  void checkASTDecl(const clang::VarDecl *D,
23  clang::ento::AnalysisManager &Mgr,
24  clang::ento::BugReporter &BR) const;
25 private:
27 };
28 }
29 
30 #endif
std::unique_ptr< clang::ento::BuiltinBug > BT
void checkASTDecl(const clang::VarDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:150