[libc-commits] [libc] [llvm] [libc][NFC] Move `Sign` type to separate header (PR #85930)

via libc-commits libc-commits at lists.llvm.org
Wed Mar 20 06:37:08 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 254bfe955ac3deba08dbbe490ef3cf5004a3bd6e 493d9728de38f6815276e2820536fccc95bfc442 -- libc/src/__support/sign.h libc/src/__support/FPUtil/FPBits.h libc/src/__support/FPUtil/fpbits_str.h libc/src/__support/str_to_float.h libc/src/math/generic/acosf.cpp libc/src/math/generic/asinf.cpp libc/src/math/generic/atanf.cpp libc/src/math/generic/atanhf.cpp libc/src/math/generic/cosf.cpp libc/src/math/generic/coshf.cpp libc/src/math/generic/exp.cpp libc/src/math/generic/exp10.cpp libc/src/math/generic/exp2.cpp libc/src/math/generic/expm1.cpp libc/src/math/generic/log.cpp libc/src/math/generic/log10.cpp libc/src/math/generic/log10f.cpp libc/src/math/generic/log1p.cpp libc/src/math/generic/log1pf.cpp libc/src/math/generic/log2.cpp libc/src/math/generic/log2f.cpp libc/src/math/generic/log_range_reduction.h libc/src/math/generic/logf.cpp libc/src/math/generic/powf.cpp libc/src/stdio/printf_core/float_dec_converter.h libc/test/UnitTest/FPMatcher.h libc/test/src/__support/FPUtil/dyadic_float_test.cpp libc/test/src/__support/FPUtil/fpbits_test.cpp libc/test/src/math/FDimTest.h libc/test/src/math/FmaTest.h libc/test/src/math/HypotTest.h libc/test/src/math/ILogbTest.h libc/test/src/math/LdExpTest.h libc/test/src/math/NextAfterTest.h libc/test/src/math/RIntTest.h libc/test/src/math/RemQuoTest.h libc/test/src/math/RoundToIntegerTest.h libc/test/src/math/atanhf_test.cpp libc/test/src/math/smoke/FDimTest.h libc/test/src/math/smoke/FmaTest.h libc/test/src/math/smoke/HypotTest.h libc/test/src/math/smoke/ILogbTest.h libc/test/src/math/smoke/LdExpTest.h libc/test/src/math/smoke/NextAfterTest.h libc/test/src/math/smoke/NextTowardTest.h libc/test/src/math/smoke/RIntTest.h libc/test/src/math/smoke/RemQuoTest.h libc/test/src/math/smoke/RoundToIntegerTest.h libc/test/src/math/smoke/atanhf_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/sign.h b/libc/src/__support/sign.h
index cba0ec7c0e..28cfae4bab 100644
--- a/libc/src/__support/sign.h
+++ b/libc/src/__support/sign.h
@@ -19,7 +19,7 @@ struct Sign {
   LIBC_INLINE friend constexpr bool operator==(Sign a, Sign b) {
     return a.is_negative == b.is_negative;
   }
-  
+
   LIBC_INLINE friend constexpr bool operator!=(Sign a, Sign b) {
     return !(a == b);
   }

``````````

</details>


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


More information about the libc-commits mailing list