clang 22.0.0git
AnalysisConsumer.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "AnalysisConsumer"
#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN)
#define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATEFN)

Functions

 STAT_COUNTER (NumFunctionTopLevel, "The # of functions at top level.")
 ALWAYS_ENABLED_STATISTIC (NumFunctionsAnalyzed, "The # of functions and blocks analyzed (as top level " "with inlining turned on).")
 ALWAYS_ENABLED_STATISTIC (NumBlocksInAnalyzedFunctions, "The # of basic blocks in the analyzed functions.")
 ALWAYS_ENABLED_STATISTIC (NumVisitedBlocksInAnalyzedFunctions, "The # of visited basic blocks in the analyzed functions.")
 ALWAYS_ENABLED_STATISTIC (PercentReachableBlocks, "The % of reachable basic blocks.")
 STAT_MAX (MaxCFGSize, "The maximum number of basic blocks in a function.")
static bool shouldSkipFunction (const Decl *D, const SetOfConstDecls &Visited, const SetOfConstDecls &VisitedAsTopLevel)
static bool fileContainsString (StringRef Substring, ASTContext &C)
static void reportAnalyzerFunctionMisuse (const AnalyzerOptions &Opts, const ASTContext &Ctx)

Variables

static UnsignedEPStat PathRunningTime ("PathRunningTime")

Macro Definition Documentation

◆ ANALYSIS_CONSTRAINTS

#define ANALYSIS_CONSTRAINTS ( NAME,
CMDFLAG,
DESC,
CREATEFN )
Value:
case NAME##Model: CreateConstraintMgr = CREATEFN; break;

◆ ANALYSIS_DIAGNOSTICS

#define ANALYSIS_DIAGNOSTICS ( NAME,
CMDFLAG,
DESC,
CREATEFN )
Value:
case PD_##NAME: \
CREATEFN(Opts.getDiagOpts(), PathConsumers, OutDir, PP, CTU, \
MacroExpansions); \
break;

◆ DEBUG_TYPE

#define DEBUG_TYPE   "AnalysisConsumer"

Definition at line 48 of file AnalysisConsumer.cpp.

Function Documentation

◆ ALWAYS_ENABLED_STATISTIC() [1/4]

ALWAYS_ENABLED_STATISTIC ( NumBlocksInAnalyzedFunctions ,
"The # of basic blocks in the analyzed functions."  )

◆ ALWAYS_ENABLED_STATISTIC() [2/4]

ALWAYS_ENABLED_STATISTIC ( NumFunctionsAnalyzed ,
"The # of functions and blocks analyzed (as top level " "with inlining turned on)."  )

◆ ALWAYS_ENABLED_STATISTIC() [3/4]

ALWAYS_ENABLED_STATISTIC ( NumVisitedBlocksInAnalyzedFunctions ,
"The # of visited basic blocks in the analyzed functions."  )

◆ ALWAYS_ENABLED_STATISTIC() [4/4]

ALWAYS_ENABLED_STATISTIC ( PercentReachableBlocks ,
"The % of reachable basic blocks."  )

◆ fileContainsString()

bool fileContainsString ( StringRef Substring,
ASTContext & C )
static

Definition at line 521 of file AnalysisConsumer.cpp.

References clang::C, and SM.

◆ reportAnalyzerFunctionMisuse()

void reportAnalyzerFunctionMisuse ( const AnalyzerOptions & Opts,
const ASTContext & Ctx )
static

◆ shouldSkipFunction()

bool shouldSkipFunction ( const Decl * D,
const SetOfConstDecls & Visited,
const SetOfConstDecls & VisitedAsTopLevel )
static

Definition at line 411 of file AnalysisConsumer.cpp.

References clang::isa().

◆ STAT_COUNTER()

STAT_COUNTER ( NumFunctionTopLevel ,
"The # of functions at top level."  )

◆ STAT_MAX()

STAT_MAX ( MaxCFGSize ,
"The maximum number of basic blocks in a function."  )

Variable Documentation

◆ PathRunningTime

UnsignedEPStat PathRunningTime("PathRunningTime") ( "PathRunningTime" )
static