Lines Matching refs:AC
75 static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) { in CheckUnreachable() argument
77 reachable_code::FindUnreachableCode(AC, UC); in CheckUnreachable()
101 static ControlFlowKind CheckFallThrough(AnalysisDeclContext &AC) { in CheckFallThrough() argument
102 CFG *cfg = AC.getCFG(); in CheckFallThrough()
111 bool AddEHEdges = AC.getAddEHEdges(); in CheckFallThrough()
327 AnalysisDeclContext &AC) { in CheckFallThroughForBody() argument
359 switch (CheckFallThrough(AC)) { in CheckFallThroughForBody()
891 static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC, in DiagnoseSwitchLabelsFallthrough() argument
902 if (!AC.getASTContext().getLangOpts().CPlusPlus11) in DiagnoseSwitchLabelsFallthrough()
906 FM.TraverseStmt(AC.getBody()); in DiagnoseSwitchLabelsFallthrough()
914 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough()
1623 AnalysisDeclContext AC(/* AnalysisDeclContextManager */ 0, D); in IssueWarnings() local
1627 AC.getCFGBuildOptions().PruneTriviallyFalseEdges = true; in IssueWarnings()
1628 AC.getCFGBuildOptions().AddEHEdges = false; in IssueWarnings()
1629 AC.getCFGBuildOptions().AddInitializers = true; in IssueWarnings()
1630 AC.getCFGBuildOptions().AddImplicitDtors = true; in IssueWarnings()
1631 AC.getCFGBuildOptions().AddTemporaryDtors = true; in IssueWarnings()
1642 AC.getCFGBuildOptions().setAllAlwaysAdd(); in IssueWarnings()
1645 AC.getCFGBuildOptions() in IssueWarnings()
1667 AC.registerForcedBlockExpression(stmt); in IssueWarnings()
1670 if (AC.getCFG()) { in IssueWarnings()
1680 const CFGBlock *block = AC.getBlockForRegisteredExpression(stmt); in IssueWarnings()
1682 AC.getCFGReachablityAnalysis(); in IssueWarnings()
1688 if (cra->isReachable(&AC.getCFG()->getEntry(), block)) in IssueWarnings()
1714 CheckFallThroughForBody(S, D, Body, blkExpr, CD, AC); in IssueWarnings()
1727 CheckUnreachable(S, AC); in IssueWarnings()
1732 SourceLocation FL = AC.getDecl()->getLocation(); in IssueWarnings()
1733 SourceLocation FEL = AC.getDecl()->getLocEnd(); in IssueWarnings()
1739 thread_safety::runThreadSafetyAnalysis(AC, Reporter); in IssueWarnings()
1747 Analyzer.run(AC); in IssueWarnings()
1756 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()
1760 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC, in IssueWarnings()
1784 DiagnoseSwitchLabelsFallthrough(S, AC, !FallThroughDiagFull); in IssueWarnings()
1790 diagnoseRepeatedUseOfWeak(S, fscope, D, AC.getParentMap()); in IssueWarnings()
1793 if (S.CollectStats && AC.isCFGBuilt()) { in IssueWarnings()
1795 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()