[libcxx-commits] [libcxx] [llvm] [libc++] Deprecate and remove meaningless `<cxxx>` headers (PR #111615)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 8 23:08:06 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 64a22b3e69587c83566a83e793764f2a13733f0b b68ee904676d1b2e30fd75fdc8a7ac48441e54d1 --extensions ,cpp,h -- libcxx/include/cstdalign libcxx/include/stdalign.h libcxx/test/std/depr/depr.c.headers/stdalign_h.compile.pass.cpp libcxx/test/std/depr/depr.cpp.headers/ccomplex.verify.cpp libcxx/test/std/depr/depr.cpp.headers/ciso646.verify.cpp libcxx/test/std/depr/depr.cpp.headers/cstdalign.verify.cpp libcxx/test/std/depr/depr.cpp.headers/cstdbool.verify.cpp libcxx/test/std/depr/depr.cpp.headers/ctgmath.verify.cpp libcxx/test/std/language.support/support.runtime/cstdalign.pass.cpp libcxx/include/ccomplex libcxx/include/ciso646 libcxx/include/complex.h libcxx/include/cstdbool libcxx/include/ctgmath libcxx/include/tgmath.h libcxx/test/libcxx/include_as_c.sh.cpp libcxx/test/std/depr/depr.c.headers/ciso646.compile.pass.cpp libcxx/test/std/language.support/support.runtime/cstdbool.pass.cpp libcxx/test/std/numerics/c.math/ctgmath.pass.cpp libcxx/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/tgmath.h b/libcxx/include/tgmath.h
index 9249b8467c..49b98a530c 100644
--- a/libcxx/include/tgmath.h
+++ b/libcxx/include/tgmath.h
@@ -25,8 +25,8 @@
 
 #ifdef __cplusplus
 #  if _LIBCPP_STD_VER >= 17
-#    include <complex>
 #    include <cmath>
+#    include <complex>
 #  else
 #    include <ctgmath>
 #  endif

``````````

</details>


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


More information about the libcxx-commits mailing list