CMS 3D CMS Logo

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