[clang] [clang][dataflow] Remove `declToLocConsistent()` assertion. (PR #69819)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 21 01:50:11 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 386f3903910aa1897c424ced8e1af7993a6df5ce 9508b6fe43730c4ba6568ae2e86cf1807e911727 -- clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
index c08cb2d7deb2..00e56ce51c53 100644
--- a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+++ b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
@@ -699,9 +699,7 @@ StorageLocation *Environment::getStorageLocation(const ValueDecl &D) const {
return Loc;
}
-void Environment::removeDecl(const ValueDecl &D) {
- DeclToLoc.erase(&D);
-}
+void Environment::removeDecl(const ValueDecl &D) { DeclToLoc.erase(&D); }
void Environment::setStorageLocation(const Expr &E, StorageLocation &Loc) {
// `DeclRefExpr`s to builtin function types aren't glvalues, for some reason,
``````````
</details>
https://github.com/llvm/llvm-project/pull/69819
More information about the cfe-commits
mailing list