Lines Matching refs:AC
110 static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) { in CheckUnreachable() argument
118 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc())) in CheckUnreachable()
122 reachable_code::FindUnreachableCode(AC, S.getPreprocessor(), UC); in CheckUnreachable()
256 const Stmt *Body, AnalysisDeclContext &AC) { in checkRecursiveFunction() argument
265 CFG *cfg = AC.getCFG(); in checkRecursiveFunction()
359 AnalysisDeclContext &AC) { in checkThrowInNonThrowingFunc() argument
360 CFG *BodyCFG = AC.getCFG(); in checkThrowInNonThrowingFunc()
399 static ControlFlowKind CheckFallThrough(AnalysisDeclContext &AC) { in CheckFallThrough() argument
400 CFG *cfg = AC.getCFG(); in CheckFallThrough()
409 bool AddEHEdges = AC.getAddEHEdges(); in CheckFallThrough()
640 AnalysisDeclContext &AC, in CheckFallThroughForBody() argument
686 switch (CheckFallThrough(AC)) { in CheckFallThroughForBody()
1254 static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC, in DiagnoseSwitchLabelsFallthrough() argument
1257 FM.TraverseStmt(AC.getBody()); in DiagnoseSwitchLabelsFallthrough()
1265 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough()
1281 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(AC.getDecl())) in DiagnoseSwitchLabelsFallthrough()
2237 AnalysisDeclContext AC(/* AnalysisDeclContextManager */ nullptr, D); in IssueWarnings() local
2241 AC.getCFGBuildOptions().PruneTriviallyFalseEdges = true; in IssueWarnings()
2242 AC.getCFGBuildOptions().AddEHEdges = false; in IssueWarnings()
2243 AC.getCFGBuildOptions().AddInitializers = true; in IssueWarnings()
2244 AC.getCFGBuildOptions().AddImplicitDtors = true; in IssueWarnings()
2245 AC.getCFGBuildOptions().AddTemporaryDtors = true; in IssueWarnings()
2246 AC.getCFGBuildOptions().AddCXXNewAllocator = false; in IssueWarnings()
2247 AC.getCFGBuildOptions().AddCXXDefaultInitExprInCtors = true; in IssueWarnings()
2258 AC.getCFGBuildOptions().setAllAlwaysAdd(); in IssueWarnings()
2261 AC.getCFGBuildOptions() in IssueWarnings()
2275 AC.getCFGBuildOptions().Observer = &*LEH; in IssueWarnings()
2285 AC.registerForcedBlockExpression(S); in IssueWarnings()
2288 if (AC.getCFG()) { in IssueWarnings()
2293 const CFGBlock *block = AC.getBlockForRegisteredExpression(S); in IssueWarnings()
2295 AC.getCFGReachablityAnalysis(); in IssueWarnings()
2301 if (!cra->isReachable(&AC.getCFG()->getEntry(), block)) { in IssueWarnings()
2331 CheckFallThroughForBody(S, D, Body, BlockType, CD, AC, fscope); in IssueWarnings()
2344 CheckUnreachable(S, AC); in IssueWarnings()
2349 SourceLocation FL = AC.getDecl()->getLocation(); in IssueWarnings()
2350 SourceLocation FEL = AC.getDecl()->getEndLoc(); in IssueWarnings()
2357 threadSafety::runThreadSafetyAnalysis(AC, Reporter, in IssueWarnings()
2366 Analyzer.run(AC); in IssueWarnings()
2373 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()
2377 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC, in IssueWarnings()
2397 if (AC.getCFG()) { in IssueWarnings()
2400 AC, Reporter, in IssueWarnings()
2411 DiagnoseSwitchLabelsFallthrough(S, AC, !FallThroughDiagFull); in IssueWarnings()
2416 diagnoseRepeatedUseOfWeak(S, fscope, D, AC.getParentMap()); in IssueWarnings()
2423 checkRecursiveFunction(S, FD, Body, AC); in IssueWarnings()
2431 checkThrowInNonThrowingFunc(S, FD, AC); in IssueWarnings()
2436 AC.getCFG(); in IssueWarnings()
2440 if (S.CollectStats && AC.isCFGBuilt()) { in IssueWarnings()
2442 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()