[libcxx-commits] [libcxx] [libc++] Switch experimental library macros to 0/1 macros (PR #124030)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 22 16:07:52 PST 2025
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 64360899c76cb2e687ef1fcea617ef455e8a2621 811bf44dbfc58548ee39772b77aa7f265dd9bfec --extensions h,,inc,cpp -- libcxx/include/__algorithm/pstl.h libcxx/include/__chrono/convert_to_tm.h libcxx/include/__chrono/exception.h libcxx/include/__chrono/formatter.h libcxx/include/__chrono/leap_second.h libcxx/include/__chrono/local_info.h libcxx/include/__chrono/ostream.h libcxx/include/__chrono/sys_info.h libcxx/include/__chrono/time_zone.h libcxx/include/__chrono/time_zone_link.h libcxx/include/__chrono/tzdb.h libcxx/include/__chrono/tzdb_list.h libcxx/include/__chrono/zoned_time.h libcxx/include/__config libcxx/include/__numeric/pstl.h libcxx/include/execution libcxx/include/iosfwd libcxx/include/syncstream libcxx/include/version libcxx/modules/std/iosfwd.inc libcxx/modules/std/syncstream.inc libcxx/test/libcxx/experimental/fexperimental-library.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/syncstream.version.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp libcxx/test/support/test_macros.h libcxx/test/tools/clang_tidy_checks/internal_ftm_use.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 1d4421fb98..461edd8c54 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -200,7 +200,7 @@ _LIBCPP_HARDENING_MODE_DEBUG
// easier to grep for target specific flags once the feature is complete.
# if defined(_LIBCPP_ENABLE_EXPERIMENTAL) || defined(_LIBCPP_BUILDING_LIBRARY)
# define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 1
-#else
+# else
# define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 0
# endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/124030
More information about the libcxx-commits
mailing list