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>
18 class ConstCastAwayChecker:
public clang::ento::Checker< clang::ento::check::PreStmt< clang::ExplicitCastExpr> > {
20 mutable std::unique_ptr<clang::ento::BugType>
BT;
21 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