8 #ifndef Utilities_StaticAnalyzers_ConstCastAwayChecker_h
9 #define Utilities_StaticAnalyzers_ConstCastAwayChecker_h
11 #include <clang/StaticAnalyzer/Core/Checker.h>
12 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
13 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
19 class ConstCastAwayChecker :
public clang::ento::Checker<clang::ento::check::PreStmt<clang::ExplicitCastExpr> > {
22 void checkPreStmt(
const clang::ExplicitCastExpr *CE, clang::ento::CheckerContext &
C)
const;
std::unique_ptr< clang::ento::BugType > BT
void checkPreStmt(const clang::ExplicitCastExpr *CE, clang::ento::CheckerContext &C) const