CMS 3D CMS Logo

ArgSizeChecker.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_ArgSizeChecker_h
2 #define Utilities_StaticAnalyzers_ArgSizeChecker_h
3 
4 #include <clang/StaticAnalyzer/Core/Checker.h>
5 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
6 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
7 
8 #include "CmsException.h"
9 
10 namespace clangcms {
11 class ArgSizeChecker : public clang::ento::Checker<clang::ento::check::PreStmt<clang::CXXConstructExpr>,
12  clang::ento::check::ASTDecl<clang::CXXMethodDecl> > {
13 public:
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;
17 };
18 }
19 
20 #endif
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