[clang] Fix to attribute plugins reaching an unreachable (PR #70877)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 31 17:15:44 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 604eff60abfce09f956c3b0b1414f8d0d04b5d47 bb896fbc4b7303bc0ef524bbff91e95610cb11ce -- clang/lib/Sema/ParsedAttr.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/ParsedAttr.cpp b/clang/lib/Sema/ParsedAttr.cpp
index 2d6d17e74f6e..dd87832a2fc0 100644
--- a/clang/lib/Sema/ParsedAttr.cpp
+++ b/clang/lib/Sema/ParsedAttr.cpp
@@ -197,9 +197,8 @@ bool ParsedAttr::existsInTarget(const TargetInfo &Target) const {
   bool HasSpelling = K != IgnoredAttribute && K != UnknownAttribute &&
                      K != NoSemaHandlerAttribute;
   return getInfo().existsInTarget(Target) &&
-         (HasSpelling &&
-          getInfo().spellingExistsInTarget(Target,
-                                          getAttributeSpellingListIndex()));
+         (HasSpelling && getInfo().spellingExistsInTarget(
+                             Target, getAttributeSpellingListIndex()));
 }
 
 bool ParsedAttr::isKnownToGCC() const { return getInfo().IsKnownToGCC; }

``````````

</details>


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


More information about the cfe-commits mailing list