13#ifndef LLVM_CLANG_SEMA_ANALYSISBASEDWARNINGS_H
14#define LLVM_CLANG_SEMA_ANALYSISBASEDWARNINGS_H
17#include "llvm/ADT/DenseMap.h"
39 LLVM_PREFERRED_TYPE(
bool)
40 unsigned enableCheckFallThrough : 1;
41 LLVM_PREFERRED_TYPE(
bool)
42 unsigned enableCheckUnreachable : 1;
43 LLVM_PREFERRED_TYPE(
bool)
44 unsigned enableThreadSafetyAnalysis : 1;
45 LLVM_PREFERRED_TYPE(
bool)
46 unsigned enableConsumedAnalysis : 1;
55 class InterProceduralData;
56 std::unique_ptr<InterProceduralData> IPData;
58 enum VisitFlag { NotVisited = 0,
Visited = 1, Pending = 2 };
59 llvm::DenseMap<const FunctionDecl*, VisitFlag> VisitedFD;
61 Policy PolicyOverrides;
62 void clearOverrides();
68 unsigned NumFunctionsAnalyzed;
72 unsigned NumFunctionsWithBadCFGs;
75 unsigned NumCFGBlocks;
78 unsigned MaxCFGBlocksPerFunction;
82 unsigned NumUninitAnalysisFunctions;
85 unsigned NumUninitAnalysisVariables;
89 unsigned MaxUninitAnalysisVariablesPerFunction;
92 unsigned NumUninitAnalysisBlockVisits;
96 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.
Encodes a location in the source.
The top declaration context.
void disableCheckFallThrough()
Policy & getPolicyOverrides()
void IssueWarnings(Policy P, FunctionScopeInfo *fscope, const Decl *D, QualType BlockType)
Policy getPolicyInEffectAt(SourceLocation Loc)
Retains information about a function, method, or block that is currently being parsed.
std::variant< struct RequiresDecl, struct HeaderDecl, struct UmbrellaDirDecl, struct ModuleDecl, struct ExcludeDecl, struct ExportDecl, struct ExportAsDecl, struct ExternModuleDecl, struct UseDecl, struct LinkDecl, struct ConfigMacrosDecl, struct ConflictDecl > Decl
All declarations that can appear in a module declaration.
The JSON file list parser is used to communicate input to InstallAPI.