13
13
#include " clang/ASTMatchers/ASTMatchFinder.h"
14
14
#include " clang/ASTMatchers/ASTMatchers.h"
15
15
#include " clang/Analysis/CFG.h"
16
- #include " clang/Analysis/FlowSensitive/ControlFlowContext.h"
17
16
#include " clang/Analysis/FlowSensitive/DataflowAnalysisContext.h"
18
17
#include " clang/Analysis/FlowSensitive/DataflowEnvironment.h"
19
18
#include " clang/Analysis/FlowSensitive/DataflowLattice.h"
23
22
#include " llvm/ADT/Any.h"
24
23
#include " llvm/ADT/STLExtras.h"
25
24
#include " llvm/Support/Error.h"
25
+ #include < clang/Analysis/FlowSensitive/AdornedCFG.h>
26
26
#include < memory>
27
27
#include < vector>
28
28
@@ -44,7 +44,7 @@ using ExpandedResultType =
44
44
45
45
static std::optional<ExpandedResultType>
46
46
analyzeFunction (const FunctionDecl &FuncDecl) {
47
- using dataflow::ControlFlowContext ;
47
+ using dataflow::AdornedCFG ;
48
48
using dataflow::DataflowAnalysisState;
49
49
using llvm::Expected;
50
50
@@ -54,8 +54,8 @@ analyzeFunction(const FunctionDecl &FuncDecl) {
54
54
return std::nullopt;
55
55
}
56
56
57
- Expected<ControlFlowContext > Context =
58
- ControlFlowContext ::build (FuncDecl, *FuncDecl.getBody (), ASTCtx);
57
+ Expected<AdornedCFG > Context =
58
+ AdornedCFG ::build (FuncDecl, *FuncDecl.getBody (), ASTCtx);
59
59
if (!Context)
60
60
return std::nullopt;
61
61
@@ -74,7 +74,7 @@ analyzeFunction(const FunctionDecl &FuncDecl) {
74
74
const State &S) mutable -> void {
75
75
auto EltDiagnostics = Diagnoser.diagnose (ASTCtx, &Elt, S.Env );
76
76
llvm::move (EltDiagnostics.first , std::back_inserter (Diagnostics.first ));
77
- llvm::move (EltDiagnostics.second , std::back_inserter (Diagnostics.second ));
77
+ llvm::move (EltDiagnostics.second , std::back_inserter (Diagnostics.second ));
78
78
};
79
79
80
80
Expected<DetailMaybeStates> BlockToOutputState =
0 commit comments