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()
641 AnalysisDeclContext &AC, in CheckFallThroughForBody() argument
687 switch (CheckFallThrough(AC)) { in CheckFallThroughForBody()
1262 static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC, in DiagnoseSwitchLabelsFallthrough() argument
1265 FM.TraverseStmt(AC.getBody()); in DiagnoseSwitchLabelsFallthrough()
1273 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough()
1289 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(AC.getDecl())) in DiagnoseSwitchLabelsFallthrough()
2247 AnalysisDeclContext AC(/* AnalysisDeclContextManager */ nullptr, D); in IssueWarnings() local
2251 AC.getCFGBuildOptions().PruneTriviallyFalseEdges = true; in IssueWarnings()
2252 AC.getCFGBuildOptions().AddEHEdges = false; in IssueWarnings()
2253 AC.getCFGBuildOptions().AddInitializers = true; in IssueWarnings()
2254 AC.getCFGBuildOptions().AddImplicitDtors = true; in IssueWarnings()
2255 AC.getCFGBuildOptions().AddTemporaryDtors = true; in IssueWarnings()
2256 AC.getCFGBuildOptions().AddCXXNewAllocator = false; in IssueWarnings()
2257 AC.getCFGBuildOptions().AddCXXDefaultInitExprInCtors = true; in IssueWarnings()
2268 AC.getCFGBuildOptions().setAllAlwaysAdd(); in IssueWarnings()
2271 AC.getCFGBuildOptions() in IssueWarnings()
2286 AC.getCFGBuildOptions().Observer = &*LEH; in IssueWarnings()
2296 AC.registerForcedBlockExpression(S); in IssueWarnings()
2299 if (AC.getCFG()) { in IssueWarnings()
2304 const CFGBlock *block = AC.getBlockForRegisteredExpression(S); in IssueWarnings()
2306 AC.getCFGReachablityAnalysis(); in IssueWarnings()
2312 if (!cra->isReachable(&AC.getCFG()->getEntry(), block)) { in IssueWarnings()
2342 CheckFallThroughForBody(S, D, Body, BlockType, CD, AC, fscope); in IssueWarnings()
2355 CheckUnreachable(S, AC); in IssueWarnings()
2360 SourceLocation FL = AC.getDecl()->getLocation(); in IssueWarnings()
2361 SourceLocation FEL = AC.getDecl()->getEndLoc(); in IssueWarnings()
2368 threadSafety::runThreadSafetyAnalysis(AC, Reporter, in IssueWarnings()
2377 Analyzer.run(AC); in IssueWarnings()
2384 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()
2388 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC, in IssueWarnings()
2408 if (AC.getCFG()) { in IssueWarnings()
2411 AC, Reporter, in IssueWarnings()
2422 DiagnoseSwitchLabelsFallthrough(S, AC, !FallThroughDiagFull); in IssueWarnings()
2427 diagnoseRepeatedUseOfWeak(S, fscope, D, AC.getParentMap()); in IssueWarnings()
2434 checkRecursiveFunction(S, FD, Body, AC); in IssueWarnings()
2442 checkThrowInNonThrowingFunc(S, FD, AC); in IssueWarnings()
2447 AC.getCFG(); in IssueWarnings()
2451 if (S.CollectStats && AC.isCFGBuilt()) { in IssueWarnings()
2453 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()