clang API Documentation
#include "ClangSACheckers.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Analysis/AnalysisContext.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Defines | |
#define | REGISTER_CHECKER(name) |
Functions | |
static bool | isArc4RandomAvailable (const ASTContext &Ctx) |
static const DeclRefExpr * | getIncrementedVar (const Expr *expr, const VarDecl *x, const VarDecl *y) |
#define REGISTER_CHECKER | ( | name | ) |
void ento::register##name(CheckerManager &mgr) { \ SecuritySyntaxChecker *checker = \ mgr.registerChecker<SecuritySyntaxChecker>(); \ checker->filter.check_##name = true; \ checker->filter.checkName_##name = mgr.getCurrentCheckName(); \ }
Definition at line 760 of file CheckSecuritySyntaxOnly.cpp.
static const DeclRefExpr* getIncrementedVar | ( | const Expr * | expr, |
const VarDecl * | x, | ||
const VarDecl * | y | ||
) | [static] |
Definition at line 186 of file CheckSecuritySyntaxOnly.cpp.
References clang::BO_Comma, and clang::Expr::IgnoreParenCasts().
static bool isArc4RandomAvailable | ( | const ASTContext & | Ctx | ) | [static] |
Definition at line 28 of file CheckSecuritySyntaxOnly.cpp.
References clang::ASTContext::getTargetInfo(), and clang::TargetInfo::getTriple().