[clang] No longer assert when using noderef on an _Atomic type (PR #116237)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 06:24:19 PST 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 402efa733c64bd20b54dbc5b7057868cbb938d07 c46fabd4d9bd1dd8061c5500693a31cde2382b8c --extensions cpp -- clang/lib/Sema/SemaType.cpp clang/test/Frontend/noderef.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index 4fac71ba09..d218496b97 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -6247,9 +6247,7 @@ namespace {
     void VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) {
       TL.setNameLoc(Chunk.Loc);
     }
-    void VisitAtomicTypeLoc(AtomicTypeLoc TL) {
-      fillAtomicQualLoc(TL, Chunk);
-    }
+    void VisitAtomicTypeLoc(AtomicTypeLoc TL) { fillAtomicQualLoc(TL, Chunk); }
     void
     VisitDependentSizedExtVectorTypeLoc(DependentSizedExtVectorTypeLoc TL) {
       TL.setNameLoc(Chunk.Loc);

``````````

</details>


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


More information about the cfe-commits mailing list