• Home
  • Raw
  • Download

Lines Matching refs:AC

104 static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) {  in CheckUnreachable()  argument
112 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getLocStart())) in CheckUnreachable()
116 reachable_code::FindUnreachableCode(AC, S.getPreprocessor(), UC); in CheckUnreachable()
255 const Stmt *Body, AnalysisDeclContext &AC) { in checkRecursiveFunction() argument
264 CFG *cfg = AC.getCFG(); in checkRecursiveFunction()
297 static ControlFlowKind CheckFallThrough(AnalysisDeclContext &AC) { in CheckFallThrough() argument
298 CFG *cfg = AC.getCFG(); in CheckFallThrough()
307 bool AddEHEdges = AC.getAddEHEdges(); in CheckFallThrough()
517 AnalysisDeclContext &AC) { in CheckFallThroughForBody() argument
549 switch (CheckFallThrough(AC)) { in CheckFallThroughForBody()
1074 static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC, in DiagnoseSwitchLabelsFallthrough() argument
1085 if (!AC.getASTContext().getLangOpts().CPlusPlus11) in DiagnoseSwitchLabelsFallthrough()
1089 FM.TraverseStmt(AC.getBody()); in DiagnoseSwitchLabelsFallthrough()
1097 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough()
1884 AnalysisDeclContext AC(/* AnalysisDeclContextManager */ nullptr, D); in IssueWarnings() local
1888 AC.getCFGBuildOptions().PruneTriviallyFalseEdges = true; in IssueWarnings()
1889 AC.getCFGBuildOptions().AddEHEdges = false; in IssueWarnings()
1890 AC.getCFGBuildOptions().AddInitializers = true; in IssueWarnings()
1891 AC.getCFGBuildOptions().AddImplicitDtors = true; in IssueWarnings()
1892 AC.getCFGBuildOptions().AddTemporaryDtors = true; in IssueWarnings()
1893 AC.getCFGBuildOptions().AddCXXNewAllocator = false; in IssueWarnings()
1894 AC.getCFGBuildOptions().AddCXXDefaultInitExprInCtors = true; in IssueWarnings()
1905 AC.getCFGBuildOptions().setAllAlwaysAdd(); in IssueWarnings()
1908 AC.getCFGBuildOptions() in IssueWarnings()
1924 AC.getCFGBuildOptions().Observer = LEH.get(); in IssueWarnings()
1934 AC.registerForcedBlockExpression(D.stmt); in IssueWarnings()
1937 if (AC.getCFG()) { in IssueWarnings()
1942 const CFGBlock *block = AC.getBlockForRegisteredExpression(D.stmt); in IssueWarnings()
1944 AC.getCFGReachablityAnalysis(); in IssueWarnings()
1950 if (cra->isReachable(&AC.getCFG()->getEntry(), block)) in IssueWarnings()
1975 CheckFallThroughForBody(S, D, Body, blkExpr, CD, AC); in IssueWarnings()
1988 CheckUnreachable(S, AC); in IssueWarnings()
1993 SourceLocation FL = AC.getDecl()->getLocation(); in IssueWarnings()
1994 SourceLocation FEL = AC.getDecl()->getLocEnd(); in IssueWarnings()
2001 threadSafety::runThreadSafetyAnalysis(AC, Reporter, in IssueWarnings()
2010 Analyzer.run(AC); in IssueWarnings()
2016 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()
2020 runUninitializedVariablesAnalysis(*cast<DeclContext>(D), *cfg, AC, in IssueWarnings()
2042 DiagnoseSwitchLabelsFallthrough(S, AC, !FallThroughDiagFull); in IssueWarnings()
2047 diagnoseRepeatedUseOfWeak(S, fscope, D, AC.getParentMap()); in IssueWarnings()
2054 checkRecursiveFunction(S, FD, Body, AC); in IssueWarnings()
2062 AC.getCFG(); in IssueWarnings()
2066 if (S.CollectStats && AC.isCFGBuilt()) { in IssueWarnings()
2068 if (CFG *cfg = AC.getCFG()) { in IssueWarnings()