[libcxx-commits] [libcxx] 0c94a97 - [libc++][NFC] Avoid empty namespace in `<__concepts/common_with.h>` (#221407)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Sep 5 07:25:29 PDT 2026
Author: A. Jiang
Date: 2026-09-05T22:25:24+08:00
New Revision: 0c94a978df783bd67535350eac84088fc482716a
URL: https://github.com/llvm/llvm-project/commit/0c94a978df783bd67535350eac84088fc482716a
DIFF: https://github.com/llvm/llvm-project/commit/0c94a978df783bd67535350eac84088fc482716a.diff
LOG: [libc++][NFC] Avoid empty namespace in `<__concepts/common_with.h>` (#221407)
...in pre-C++20 modes. This fixes complaining from clang-tidy checks in
CI.
Added:
Modified:
libcxx/include/__concepts/common_with.h
Removed:
################################################################################
diff --git a/libcxx/include/__concepts/common_with.h b/libcxx/include/__concepts/common_with.h
index 09082b2295def..e2f5b46822d63 100644
--- a/libcxx/include/__concepts/common_with.h
+++ b/libcxx/include/__concepts/common_with.h
@@ -21,10 +21,10 @@
# pragma GCC system_header
#endif
-_LIBCPP_BEGIN_NAMESPACE_STD
-
#if _LIBCPP_STD_VER >= 20
+_LIBCPP_BEGIN_NAMESPACE_STD
+
// [concept.common]
// clang-format off
@@ -45,8 +45,8 @@ concept common_with =
add_lvalue_reference_t<const _Up>>>;
// clang-format on
-#endif // _LIBCPP_STD_VER >= 20
-
_LIBCPP_END_NAMESPACE_STD
+#endif // _LIBCPP_STD_VER >= 20
+
#endif // _LIBCPP___CONCEPTS_COMMON_WITH_H
More information about the libcxx-commits
mailing list