7 #ifndef Utilities_StaticAnalyzers_ConstCastChecker_h
8 #define Utilities_StaticAnalyzers_ConstCastChecker_h
10 #include <clang/StaticAnalyzer/Core/Checker.h>
11 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
12 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
17 class ConstCastChecker:
public clang::ento::Checker< clang::ento::check::PreStmt< clang::CXXConstCastExpr> > {
19 mutable std::unique_ptr<clang::ento::BugType>
BT;
20 void checkPreStmt(
const clang::CXXConstCastExpr *CE, clang::ento::CheckerContext &
C)
const;
void checkPreStmt(const clang::CXXConstCastExpr *CE, clang::ento::CheckerContext &C) const
std::unique_ptr< clang::ento::BugType > BT