1 #ifndef Utilities_StaticAnalyzers_ArgSizeChecker_h
2 #define Utilities_StaticAnalyzers_ArgSizeChecker_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 ArgSizeChecker :
public clang::ento::Checker<clang::ento::check::PreStmt<clang::CXXConstructExpr>,
12 clang::ento::check::ASTDecl<clang::CXXMethodDecl> > {
14 void checkPreStmt(
const clang::CXXConstructExpr *ref, clang::ento::CheckerContext &
C)
const;
15 void checkASTDecl(
const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager& mgr,
16 clang::ento::BugReporter &BR)
const;
void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
void checkPreStmt(const clang::CXXConstructExpr *ref, clang::ento::CheckerContext &C) const