13#ifndef LLVM_CLANG_SEMA_ANALYSISBASEDWARNINGS_H
14#define LLVM_CLANG_SEMA_ANALYSISBASEDWARNINGS_H
17#include "llvm/ADT/DenseMap.h"
37 LLVM_PREFERRED_TYPE(
bool)
38 unsigned enableCheckFallThrough : 1;
39 LLVM_PREFERRED_TYPE(
bool)
40 unsigned enableCheckUnreachable : 1;
41 LLVM_PREFERRED_TYPE(
bool)
42 unsigned enableThreadSafetyAnalysis : 1;
43 LLVM_PREFERRED_TYPE(
bool)
44 unsigned enableConsumedAnalysis : 1;
54 class InterProceduralData;
55 std::unique_ptr<InterProceduralData> IPData;
57 enum VisitFlag { NotVisited = 0,
Visited = 1, Pending = 2 };
58 llvm::DenseMap<const FunctionDecl*, VisitFlag> VisitedFD;
64 unsigned NumFunctionsAnalyzed;
68 unsigned NumFunctionsWithBadCFGs;
71 unsigned NumCFGBlocks;
74 unsigned MaxCFGBlocksPerFunction;
78 unsigned NumUninitAnalysisFunctions;
81 unsigned NumUninitAnalysisVariables;
85 unsigned MaxUninitAnalysisVariablesPerFunction;
88 unsigned NumUninitAnalysisBlockVisits;
92 unsigned MaxUninitAnalysisBlockVisitsPerFunction;
llvm::DenseSet< const void * > Visited
__device__ __2f16 float __ockl_bool s
Decl - This represents one declaration (or definition), e.g.
A (possibly-)qualified type.
Sema - This implements semantic analysis and AST building for C.
The top declaration context.
void disableCheckFallThrough()
void IssueWarnings(Policy P, FunctionScopeInfo *fscope, const Decl *D, QualType BlockType)
Policy getDefaultPolicy()
Retains information about a function, method, or block that is currently being parsed.
@ Decl
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
The JSON file list parser is used to communicate input to InstallAPI.