File indexing completed on 2024-04-06 12:31:49
0001 #ifndef Utilities_StaticAnalyzers_ArgSizeChecker_h
0002 #define Utilities_StaticAnalyzers_ArgSizeChecker_h
0003
0004 #include <clang/StaticAnalyzer/Core/Checker.h>
0005 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
0006 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
0007
0008 #include "CmsException.h"
0009
0010 namespace clangcms {
0011 class ArgSizeChecker : public clang::ento::Checker<clang::ento::check::PreStmt<clang::CXXConstructExpr>,
0012 clang::ento::check::ASTDecl<clang::CXXMethodDecl> > {
0013 public:
0014 void checkPreStmt(const clang::CXXConstructExpr *ref, clang::ento::CheckerContext &C) const;
0015 void checkASTDecl(const clang::CXXMethodDecl *CMD,
0016 clang::ento::AnalysisManager &mgr,
0017 clang::ento::BugReporter &BR) const;
0018 };
0019 }
0020
0021 #endif