CMS 3D CMS Logo

MutableMemberChecker.h
Go to the documentation of this file.
1 //== MutableMemberChecker.h - Checks for mutable members --------------*- C++ -*--==//
2 //
3 // by Thomas Hauth [ Thomas.Hauth@cern.ch ]
4 //
5 //===----------------------------------------------------------------------===//
6 
7 #ifndef Utilities_StaticAnalyzers_MutableMemberChecker_h
8 #define Utilities_StaticAnalyzers_MutableMemberChecker_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>
14 #include "CmsException.h"
15 #include "CmsSupport.h"
16 
17 namespace clangcms {
18  class MutableMemberChecker : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::FieldDecl> > {
19  CMS_SA_ALLOW mutable std::unique_ptr<clang::ento::BuiltinBug> BT;
20 
21  public:
22  void checkASTDecl(const clang::FieldDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const;
23 
24  private:
26  };
27 } // namespace clangcms
28 
29 #endif
clangcms::CmsException
Definition: CmsException.h:19
clangcms
Definition: ArgSizeChecker.h:10
CMS_SA_ALLOW
#define CMS_SA_ALLOW
Definition: thread_safety_macros.h:5
CmsSupport.h
clangcms::MutableMemberChecker
Definition: MutableMemberChecker.h:18
clangcms::MutableMemberChecker::checkASTDecl
void checkASTDecl(const clang::FieldDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const
clangcms::MutableMemberChecker::m_exception
CmsException m_exception
Definition: MutableMemberChecker.h:25
clangcms::MutableMemberChecker::BT
std::unique_ptr< clang::ento::BuiltinBug > BT
Definition: MutableMemberChecker.h:19
thread_safety_macros.h
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:141
CmsException.h