CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
13 
14 #include "CmsException.h"
15 
16 namespace clangcms {
17 class MutableMemberChecker : public clang::ento::Checker< clang::ento::check::ASTDecl< clang::FieldDecl> > {
18  mutable clang::OwningPtr< clang::ento::BuiltinBug> BT;
19 
20 public:
21  void checkASTDecl(const clang::FieldDecl *D,
22  clang::ento::AnalysisManager &Mgr,
23  clang::ento::BugReporter &BR) const;
24 private:
26 };
27 }
28 
29 #endif
clang::OwningPtr< clang::ento::BuiltinBug > BT
void checkASTDecl(const clang::FieldDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:150