Utilities
StaticAnalyzers
src
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
#include "
FWCore/Utilities/interface/thread_safety_macros.h
"
13
#include "
CmsException.h
"
14
15
namespace
clangcms
{
16
class
GlobalStaticChecker
:
public
clang::ento::Checker<clang::ento::check::ASTDecl<clang::VarDecl> > {
17
CMS_SA_ALLOW
mutable
std::unique_ptr<clang::ento::BuiltinBug>
BT
;
18
19
public
:
20
void
checkASTDecl
(
const
clang::VarDecl *
D
, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR)
const
;
21
22
private
:
23
CmsException
m_exception
;
24
};
25
26
}
// namespace clangcms
27
28
#endif
clangcms::GlobalStaticChecker::m_exception
CmsException m_exception
Definition:
GlobalStaticChecker.h:23
clangcms::CmsException
Definition:
CmsException.h:19
clangcms
Definition:
ArgSizeChecker.h:10
CMS_SA_ALLOW
#define CMS_SA_ALLOW
Definition:
thread_safety_macros.h:5
clangcms::GlobalStaticChecker::BT
std::unique_ptr< clang::ento::BuiltinBug > BT
Definition:
GlobalStaticChecker.h:17
thread_safety_macros.h
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition:
Factorize.h:141
CmsException.h
clangcms::GlobalStaticChecker::checkASTDecl
void checkASTDecl(const clang::VarDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const
clangcms::GlobalStaticChecker
Definition:
GlobalStaticChecker.h:16
Generated for CMSSW Reference Manual by
1.8.16