• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:AC

108 static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) {
116 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc()))
120 reachable_code::FindUnreachableCode(AC, S.getPreprocessor(), UC);
254 const Stmt *Body, AnalysisDeclContext &AC) {
263 CFG *cfg = AC.getCFG();
357 AnalysisDeclContext &AC) {
358 CFG *BodyCFG = AC.getCFG();
397 static ControlFlowKind CheckFallThrough(AnalysisDeclContext &AC) {
398 CFG *cfg = AC.getCFG();
407 bool AddEHEdges = AC.getAddEHEdges();
639 AnalysisDeclContext &AC,
685 switch (CheckFallThrough(AC)) {
1260 static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC,
1263 FM.TraverseStmt(AC.getBody());
1271 CFG *Cfg = AC.getCFG();
1287 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(AC.getDecl()))
2102 AnalysisDeclContext AC(/* AnalysisDeclContextManager */ nullptr, D);
2106 AC.getCFGBuildOptions().PruneTriviallyFalseEdges = true;
2107 AC.getCFGBuildOptions().AddEHEdges = false;
2108 AC.getCFGBuildOptions().AddInitializers = true;
2109 AC.getCFGBuildOptions().AddImplicitDtors = true;
2110 AC.getCFGBuildOptions().AddTemporaryDtors = true;
2111 AC.getCFGBuildOptions().AddCXXNewAllocator = false;
2112 AC.getCFGBuildOptions().AddCXXDefaultInitExprInCtors = true;
2123 AC.getCFGBuildOptions().setAllAlwaysAdd();
2126 AC.getCFGBuildOptions()
2141 AC.getCFGBuildOptions().Observer = &*LEH;
2151 AC.registerForcedBlockExpression(S);
2154 if (AC.getCFG()) {
2159 const CFGBlock *block = AC.getBlockForRegisteredExpression(S);
2161 AC.getCFGReachablityAnalysis();
2167 if (!cra->isReachable(&AC.getCFG()->getEntry(), block)) {
2197 CheckFallThroughForBody(S, D, Body, BlockType, CD, AC, fscope);
2210 CheckUnreachable(S, AC);
2215 SourceLocation FL = AC.getDecl()->getLocation();
2216 SourceLocation FEL = AC.getDecl()->getEndLoc();
2223 threadSafety::runThreadSafetyAnalysis(AC, Reporter,
2232 Analyzer.run(AC);
2239 if (CFG *cfg = AC.getCFG()) {
2243 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC,
2266 DiagnoseSwitchLabelsFallthrough(S, AC, !FallThroughDiagFull);
2271 diagnoseRepeatedUseOfWeak(S, fscope, D, AC.getParentMap());
2278 checkRecursiveFunction(S, FD, Body, AC);
2286 checkThrowInNonThrowingFunc(S, FD, AC);
2291 AC.getCFG();
2295 if (S.CollectStats && AC.isCFGBuilt()) {
2297 if (CFG *cfg = AC.getCFG()) {