clang  3.7.0
Macros | Functions
CheckSecuritySyntaxOnly.cpp File Reference
#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"
Include dependency graph for CheckSecuritySyntaxOnly.cpp:

Go to the source code of this file.

Macros

#define REGISTER_CHECKER(name)
 

Functions

static bool isArc4RandomAvailable (const ASTContext &Ctx)
 
static const DeclRefExprgetIncrementedVar (const Expr *expr, const VarDecl *x, const VarDecl *y)
 

Macro Definition Documentation

#define REGISTER_CHECKER (   name)
Value:
void ento::register##name(CheckerManager &mgr) { \
SecuritySyntaxChecker *checker = \
mgr.registerChecker<SecuritySyntaxChecker>(); \
checker->filter.check_##name = true; \
checker->filter.checkName_##name = mgr.getCurrentCheckName(); \
}
CheckName getCurrentCheckName() const

Definition at line 761 of file CheckSecuritySyntaxOnly.cpp.

Function Documentation

static const DeclRefExpr* getIncrementedVar ( const Expr expr,
const VarDecl x,
const VarDecl y 
)
static

Definition at line 187 of file CheckSecuritySyntaxOnly.cpp.

References clang::BO_Comma, clang::Expr::IgnoreParenCasts(), and y.

static bool isArc4RandomAvailable ( const ASTContext Ctx)
static