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
clangcms::CmsException::reportClass
bool reportClass(clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
clangcms::CmsException::reportMutableMember
bool reportMutableMember(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
clangcms::CmsException::reportGlobalStatic
bool reportGlobalStatic(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
clangcms::CmsException::reportConstCast
bool reportConstCast(const clang::ento::BugReport &R, clang::ento::CheckerContext &C) const
clangcms::CmsException
Definition: CmsException.h:19
clangcms
Definition: ArgSizeChecker.h:10
OrderedSet.t
t
Definition: OrderedSet.py:90
clangcms::CmsException::reportGeneral
bool reportGeneral(clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
gen::C
C
Definition: PomwigHadronizer.cc:76
clangcms::CmsException::reportConstCastAway
bool reportConstCastAway(const clang::ento::BugReport &R, clang::ento::CheckerContext &C) const
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
clangcms::CmsException::reportGlobalStaticForType
bool reportGlobalStaticForType(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const
dttmaxenums::R
Definition: DTTMax.h:29