Lines Matching refs:AC

114 static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) {  in CheckUnreachable()  argument
122 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc())) in CheckUnreachable()
126 reachable_code::FindUnreachableCode(AC, S.getPreprocessor(), UC); in CheckUnreachable()
260 const Stmt *Body, AnalysisDeclContext &AC) { in checkRecursiveFunction() argument
269 CFG *cfg = AC.getCFG(); in checkRecursiveFunction()
363 AnalysisDeclContext &AC) { in checkThrowInNonThrowingFunc() argument
364 CFG *BodyCFG = AC.getCFG(); in checkThrowInNonThrowingFunc()
403 static ControlFlowKind CheckFallThrough(AnalysisDeclContext &AC) { in CheckFallThrough() argument
404 CFG *cfg = AC.getCFG(); in CheckFallThrough()
413 bool AddEHEdges = AC.getAddEHEdges(); in CheckFallThrough()
644 AnalysisDeclContext &AC, in CheckFallThroughForBody() argument
690 switch (CheckFallThrough(AC)) { in CheckFallThroughForBody()
1258 static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC, in DiagnoseSwitchLabelsFallthrough() argument
1261 FM.TraverseStmt(AC.getBody()); in DiagnoseSwitchLabelsFallthrough()
1269 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough()
1285 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(AC.getDecl())) in DiagnoseSwitchLabelsFallthrough()
2306 AnalysisDeclContext AC(/* AnalysisDeclContextManager */ nullptr, D); in IssueWarnings() local
2310 AC.getCFGBuildOptions().PruneTriviallyFalseEdges = true; in IssueWarnings()
2311 AC.getCFGBuildOptions().AddEHEdges = false; in IssueWarnings()
2312 AC.getCFGBuildOptions().AddInitializers = true; in IssueWarnings()
2313 AC.getCFGBuildOptions().AddImplicitDtors = true; in IssueWarnings()
2314 AC.getCFGBuildOptions().AddTemporaryDtors = true; in IssueWarnings()
2315 AC.getCFGBuildOptions().AddCXXNewAllocator = false; in IssueWarnings()
2316 AC.getCFGBuildOptions().AddCXXDefaultInitExprInCtors = true; in IssueWarnings()
2327 AC.getCFGBuildOptions().setAllAlwaysAdd(); in IssueWarnings()
2330 AC.getCFGBuildOptions() in IssueWarnings()
2344 AC.getCFGBuildOptions().Observer = &*LEH; in IssueWarnings()
2354 AC.registerForcedBlockExpression(S); in IssueWarnings()
2357 if (AC.getCFG()) { in IssueWarnings()
2362 const CFGBlock *block = AC.getBlockForRegisteredExpression(S); in IssueWarnings()
2364 AC.getCFGReachablityAnalysis(); in IssueWarnings()
2370 if (!cra->isReachable(&AC.getCFG()->getEntry(), block)) { in IssueWarnings()
2400 CheckFallThroughForBody(S, D, Body, BlockType, CD, AC, fscope); in IssueWarnings()
2413 CheckUnreachable(S, AC); in IssueWarnings()
2418 SourceLocation FL = AC.getDecl()->getLocation(); in IssueWarnings()
2419 SourceLocation FEL = AC.getDecl()->getEndLoc(); in IssueWarnings()
2426 threadSafety::runThreadSafetyAnalysis(AC, Reporter, in IssueWarnings()
2435 Analyzer.run(AC); in IssueWarnings()
2442 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()
2446 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC, in IssueWarnings()
2466 if (AC.getCFG()) { in IssueWarnings()
2469 AC, Reporter, in IssueWarnings()
2480 DiagnoseSwitchLabelsFallthrough(S, AC, !FallThroughDiagFull); in IssueWarnings()
2485 diagnoseRepeatedUseOfWeak(S, fscope, D, AC.getParentMap()); in IssueWarnings()
2492 checkRecursiveFunction(S, FD, Body, AC); in IssueWarnings()
2500 checkThrowInNonThrowingFunc(S, FD, AC); in IssueWarnings()
2512 AC.getCFG(); in IssueWarnings()
2516 if (S.CollectStats && AC.isCFGBuilt()) { in IssueWarnings()
2518 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()