[clang] The pragma STDC CX_LIMITED_RANGE ON should have precedence over (PR #98520)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 12:02:07 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 668ee3f5478c1e1b549923667cf1b8704b1a0bd0 da863999000a6b12f2930247de9df3daf0e5a608 --extensions cpp,c -- clang/lib/CodeGen/CGExprComplex.cpp clang/test/CodeGen/pragma-cx-limited-range.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 44e04b323d..9dc82afb66 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -351,7 +351,7 @@ public:
     QualType promotionTy = getPromotionType(                                   \
         (E->hasStoredFPFeatures() ? E->getStoredFPFeatures()                   \
                                   : FPOptionsOverride()),                      \
-          E->getType(),                                                        \
+        E->getType(),                                                          \
         (E->getOpcode() == BinaryOperatorKind::BO_Div) ? true : false);        \
     ComplexPairTy result = EmitBin##OP(EmitBinOps(E, promotionTy));            \
     if (!promotionTy.isNull())                                                 \

``````````

</details>


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


More information about the cfe-commits mailing list