clang API Documentation

Defines | 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.

Defines

#define REGISTER_CHECKER(name)

Functions

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

Define 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();              \
  }

Definition at line 760 of file CheckSecuritySyntaxOnly.cpp.


Function Documentation

static const DeclRefExpr* getIncrementedVar ( const Expr expr,
const VarDecl x,
const VarDecl y 
) [static]
static bool isArc4RandomAvailable ( const ASTContext Ctx) [static]