CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
18 namespace clangcms {
19 
20 class CmsException {
21 public:
22  bool reportGlobalStaticForType( clang::QualType const& t,
23  clang::ento::PathDiagnosticLocation const& path,
24  clang::ento::BugReporter & BR ) const;
25 
26  bool reportGlobalStatic( clang::QualType const& t,
27  clang::ento::PathDiagnosticLocation const& path,
28  clang::ento::BugReporter & BR ) const;
29 
30  bool reportMutableMember( clang::QualType const& t,
31  clang::ento::PathDiagnosticLocation const& path,
32  clang::ento::BugReporter & BR ) const;
33  bool reportClass(
34  clang::ento::PathDiagnosticLocation const& path,
35  clang::ento::BugReporter & BR ) const;
36 
37 
38  bool reportConstCast ( const clang::ento::BugReport &R,
39  clang::ento::CheckerContext &C) const;
40 
41  bool reportConstCastAway ( const clang::ento::BugReport &R,
42  clang::ento::CheckerContext &C) const;
43 
44 
45  bool reportGeneral( clang::ento::PathDiagnosticLocation const& path,
46  clang::ento::BugReporter & BR ) const;
47 
48 };
49 
50 }
51 
52 #endif
bool reportGlobalStaticForType(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 reportGeneral(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 reportMutableMember(clang::QualType const &t, clang::ento::PathDiagnosticLocation const &path, clang::ento::BugReporter &BR) const