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