1 #ifndef Utilities_StaticAnalyzers_CastSizeChecker_h
2 #define Utilities_StaticAnalyzers_CastSizeChecker_h
4 #include <clang/StaticAnalyzer/Core/Checker.h>
5 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
6 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
11 class TrunCastChecker:
public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
13 mutable std::unique_ptr<clang::ento::BugType>
BT;
14 void checkASTDecl(
const clang::CXXRecordDecl *
D, clang::ento::AnalysisManager& Mgr, clang::ento::BugReporter &BR)
const;
DecomposeProduct< arg, typename Div::arg > D
std::unique_ptr< clang::ento::BugType > BT
void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const