[clang][dataflow] Remove unnecessary `ASTContext` parameter from `ControlFlowContext...
authorMartin Braenne <mboehme@google.com>
Fri, 26 May 2023 09:52:55 +0000 (09:52 +0000)
committerMartin Braenne <mboehme@google.com>
Tue, 30 May 2023 07:05:35 +0000 (07:05 +0000)
commit5ddb623952cacba0a3933dacd4c70439ca95c70d
treef006bd0b25626a86c92b5f05c3d94196fb840404
parentdf37e2211ea34f128a53912835bcbc96147a1408
[clang][dataflow] Remove unnecessary `ASTContext` parameter from `ControlFlowContext::build` overload.

When introducing this new overload in https://reviews.llvm.org/D151183, I didn't consider that the `ASTContext` parameter was unnecessary because it could also be obtained from the `FunctionDecl`.

Reviewed By: gribozavr2, xazax.hun

Differential Revision: https://reviews.llvm.org/D151549
clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h
clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
clang/unittests/Analysis/FlowSensitive/TestingSupport.h
clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp