[libcxx-commits] [libcxx] 91ba026 - [libc++][NFC] Fix include guards in __concepts/ (#229398)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 7 02:01:13 PDT 2026


Author: Lorcan Purcell
Date: 2026-10-07T09:01:01Z
New Revision: 91ba026f7d015d8c37a31735c5c5b5f2bbcc542a

URL: https://github.com/llvm/llvm-project/commit/91ba026f7d015d8c37a31735c5c5b5f2bbcc542a
DIFF: https://github.com/llvm/llvm-project/commit/91ba026f7d015d8c37a31735c5c5b5f2bbcc542a.diff

LOG: [libc++][NFC] Fix include guards in __concepts/ (#229398)

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

Added: 
    

Modified: 
    libcxx/include/__concepts/primary_template.h
    libcxx/include/__concepts/referenceable.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__concepts/primary_template.h b/libcxx/include/__concepts/primary_template.h
index ab22b6dc74eed7..8db7743de9bac4 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 471d1157a9b871..ae7977a7382f89 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


        


More information about the libcxx-commits mailing list