[libcxx-commits] [libcxx] [libc++][NFC] Fix include guards in __concepts/ (PR #229398)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 6 05:36:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Lorcan Purcell (Lorcan7274)
<details>
<summary>Changes</summary>
Rename the include guards in `__concepts/primary_template.h` and `__concepts/referenceable.h` to match their file paths, like the other headers in `__concepts/`.
Both headers were moved from `__type_traits/` (in #<!-- -->197646 and #<!-- -->199821 respectively) but kept their old guards, `_LIBCPP___TYPE_TRAITS_IS_PRIMARY_TEMPLATE_H` and `_LIBCPP___TYPE_TRAITS_IS_REFERENCEABLE_H`.
Fixes #<!-- -->229284
---
Full diff: https://github.com/llvm/llvm-project/pull/229398.diff
2 Files Affected:
- (modified) libcxx/include/__concepts/primary_template.h (+3-3)
- (modified) libcxx/include/__concepts/referenceable.h (+3-3)
``````````diff
diff --git a/libcxx/include/__concepts/primary_template.h b/libcxx/include/__concepts/primary_template.h
index ab22b6dc74eed..8db7743de9bac 100644
--- a/libcxx/include/__concepts/primary_template.h
+++ b/libcxx/include/__concepts/primary_template.h
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef _LIBCPP___TYPE_TRAITS_IS_PRIMARY_TEMPLATE_H
-#define _LIBCPP___TYPE_TRAITS_IS_PRIMARY_TEMPLATE_H
+#ifndef _LIBCPP___CONCEPTS_PRIMARY_TEMPLATE_H
+#define _LIBCPP___CONCEPTS_PRIMARY_TEMPLATE_H
#include <__config>
#include <__type_traits/is_same.h>
@@ -30,4 +30,4 @@ _LIBCPP_END_NAMESPACE_STD
#endif // _LIBCPP_STD_VER >= 20
-#endif // _LIBCPP___TYPE_TRAITS_IS_PRIMARY_TEMPLATE_H
+#endif // _LIBCPP___CONCEPTS_PRIMARY_TEMPLATE_H
diff --git a/libcxx/include/__concepts/referenceable.h b/libcxx/include/__concepts/referenceable.h
index 471d1157a9b87..ae7977a7382f8 100644
--- a/libcxx/include/__concepts/referenceable.h
+++ b/libcxx/include/__concepts/referenceable.h
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef _LIBCPP___TYPE_TRAITS_IS_REFERENCEABLE_H
-#define _LIBCPP___TYPE_TRAITS_IS_REFERENCEABLE_H
+#ifndef _LIBCPP___CONCEPTS_REFERENCEABLE_H
+#define _LIBCPP___CONCEPTS_REFERENCEABLE_H
#include <__config>
#include <__type_traits/void_t.h>
@@ -27,4 +27,4 @@ _LIBCPP_END_NAMESPACE_STD
#endif
-#endif // _LIBCPP___TYPE_TRAITS_IS_REFERENCEABLE_H
+#endif // _LIBCPP___CONCEPTS_REFERENCEABLE_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/229398
More information about the libcxx-commits
mailing list