[clang] [clang] Diagnose dangling issues for the "Container<GSLPointer>" case. (PR #107213)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 4 13:31:48 PDT 2024


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 d21e731c42d6b967e29dbe2edc16c1b86885df0d fe0ca71b1d5cc3ff696e374b5b5bd03f748944aa --extensions cpp -- clang/lib/Sema/CheckExprLifetime.cpp clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/CheckExprLifetime.cpp b/clang/lib/Sema/CheckExprLifetime.cpp
index 89a96a68ce..e46d37087e 100644
--- a/clang/lib/Sema/CheckExprLifetime.cpp
+++ b/clang/lib/Sema/CheckExprLifetime.cpp
@@ -489,7 +489,7 @@ static void visitFunctionCallArguments(IndirectLocalPath &Path, Expr *Call,
       }
     }
   }
-  }
+}
 }
 
 /// Visit the locals that would be reachable through a reference bound to the

``````````

</details>


https://github.com/llvm/llvm-project/pull/107213


More information about the cfe-commits mailing list