clang  6.0.0svn
Macros | Functions
CheckSecuritySyntaxOnly.cpp File Reference
#include "ClangSACheckers.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Analysis/AnalysisDeclContext.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

◆ REGISTER_CHECKER

#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 759 of file CheckSecuritySyntaxOnly.cpp.

Function Documentation

◆ getIncrementedVar()

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

◆ isArc4RandomAvailable()

static bool isArc4RandomAvailable ( const ASTContext Ctx)
static