CMS 3D CMS Logo

CmsException.h
Go to the documentation of this file.
1 //===--- CmsException.h - exceptions for bug reports ------------*- C++ -*-===//
2 //
3 // by Thomas Hauth [ Thomas.Hauth@cern.ch ] and Patrick Gartung
4 //
5 //===----------------------------------------------------------------------===//
6 
7 #ifndef LLVM_CLANG_STATICANALYZER_CMS_CMSEXCEPTION_H
8 #define LLVM_CLANG_STATICANALYZER_CMS_CMSEXCEPTION_H
9 
10 #include <llvm/Support/Regex.h>
11 #include <llvm/Support/raw_ostream.h>
12 #include "clang/AST/Type.h"
13 #include "clang/Basic/SourceManager.h"
14 #include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
15 #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
16 
17 namespace clangcms {
18 
19  class CmsException {
20  public:
21  bool reportGlobalStaticForType(clang::QualType const& t,
22  clang::ento::PathDiagnosticLocation const& path,
23  clang::ento::BugReporter& BR) const;
24 
25  bool reportGlobalStatic(clang::QualType const& t,
26  clang::ento::PathDiagnosticLocation const& path,
27  clang::ento::BugReporter& BR) const;
28 
29  bool reportMutableMember(clang::QualType const& t,
30  clang::ento::PathDiagnosticLocation const& path,
31  clang::ento::BugReporter& BR) const;
32  bool reportClass(clang::ento::PathDiagnosticLocation const& path, clang::ento::BugReporter& BR) const;
33 
34  bool reportConstCast(const clang::ento::BugReport& R, clang::ento::CheckerContext& C) const;
35 
36  bool reportConstCastAway(const clang::ento::BugReport& R, clang::ento::CheckerContext& C) const;
37 
38  bool reportGeneral(clang::ento::PathDiagnosticLocation const& path, clang::ento::BugReporter& BR) const;
39  };
40 
41 } // namespace clangcms
42 
43 #endif
bool reportGlobalStaticForType(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
bool reportGlobalStatic(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
bool reportConstCast(const clang::ento::BugReport &R, clang::ento::CheckerContext &C) const
bool reportClass(clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
bool reportConstCastAway(const clang::ento::BugReport &R, clang::ento::CheckerContext &C) const
bool reportMutableMember(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
bool reportGeneral(clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const