[clang] [C2y] Remove support for _Imaginary (PR #97436)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 2 09:41:23 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 a0ab0ca7a733eb9e8e6442676a974ff8a2cdb930 1e7a4900130117dc4c215e5ee1fab481f129a01a -- clang/test/C/C2y/n3274.c clang/include/clang/Sema/DeclSpec.h clang/lib/CodeGen/CGExprComplex.cpp clang/lib/Sema/DeclSpec.cpp clang/lib/Sema/SemaCodeComplete.cpp clang/lib/Sema/SemaLookup.cpp clang/lib/Sema/SemaType.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 7851c5d080..693da98f0a 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -4981,12 +4981,10 @@ static void AddKeywordsToConsumer(Sema &SemaRef,
   if (CCC.WantTypeSpecifiers) {
     // Add type-specifier keywords to the set of results.
     static const char *const CTypeSpecs[] = {
-      "char", "const", "double", "enum", "float", "int", "long", "short",
-      "signed", "struct", "union", "unsigned", "void", "volatile",
-      "_Complex",
-      // storage-specifiers as well
-      "extern", "inline", "static", "typedef"
-    };
+        "char", "const", "double", "enum", "float", "int", "long", "short",
+        "signed", "struct", "union", "unsigned", "void", "volatile", "_Complex",
+        // storage-specifiers as well
+        "extern", "inline", "static", "typedef"};
 
     for (const auto *CTS : CTypeSpecs)
       Consumer.addKeywordResult(CTS);

``````````

</details>


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


More information about the cfe-commits mailing list