Skip to content

Commit a5bb2d4

Browse files
committed
Remove reference to ControlFlowContext
1 parent 32cfd31 commit a5bb2d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang-tools-extra/clang-tidy/bugprone/NullCheckAfterDereferenceCheck.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "clang/ASTMatchers/ASTMatchFinder.h"
1414
#include "clang/ASTMatchers/ASTMatchers.h"
1515
#include "clang/Analysis/CFG.h"
16-
#include "clang/Analysis/FlowSensitive/ControlFlowContext.h"
1716
#include "clang/Analysis/FlowSensitive/DataflowAnalysisContext.h"
1817
#include "clang/Analysis/FlowSensitive/DataflowEnvironment.h"
1918
#include "clang/Analysis/FlowSensitive/DataflowLattice.h"
@@ -23,6 +22,7 @@
2322
#include "llvm/ADT/Any.h"
2423
#include "llvm/ADT/STLExtras.h"
2524
#include "llvm/Support/Error.h"
25+
#include <clang/Analysis/FlowSensitive/AdornedCFG.h>
2626
#include <memory>
2727
#include <vector>
2828

@@ -44,7 +44,7 @@ using ExpandedResultType =
4444

4545
static std::optional<ExpandedResultType>
4646
analyzeFunction(const FunctionDecl &FuncDecl) {
47-
using dataflow::ControlFlowContext;
47+
using dataflow::AdornedCFG;
4848
using dataflow::DataflowAnalysisState;
4949
using llvm::Expected;
5050

@@ -54,8 +54,8 @@ analyzeFunction(const FunctionDecl &FuncDecl) {
5454
return std::nullopt;
5555
}
5656

57-
Expected<ControlFlowContext> Context =
58-
ControlFlowContext::build(FuncDecl, *FuncDecl.getBody(), ASTCtx);
57+
Expected<AdornedCFG> Context =
58+
AdornedCFG::build(FuncDecl, *FuncDecl.getBody(), ASTCtx);
5959
if (!Context)
6060
return std::nullopt;
6161

@@ -74,7 +74,7 @@ analyzeFunction(const FunctionDecl &FuncDecl) {
7474
const State &S) mutable -> void {
7575
auto EltDiagnostics = Diagnoser.diagnose(ASTCtx, &Elt, S.Env);
7676
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));
7878
};
7979

8080
Expected<DetailMaybeStates> BlockToOutputState =

0 commit comments

Comments
 (0)