[libcxx-commits] [libcxx] 9829d45 - [libc++][test] Adds a test for a reserved name. (#131363)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Mar 16 07:37:51 PDT 2025


Author: Mark de Wever
Date: 2025-03-16T15:37:47+01:00
New Revision: 9829d457ae197cf8ef3ed34392b18f481f57d760

URL: https://github.com/llvm/llvm-project/commit/9829d457ae197cf8ef3ed34392b18f481f57d760
DIFF: https://github.com/llvm/llvm-project/commit/9829d457ae197cf8ef3ed34392b18f481f57d760.diff

LOG: [libc++][test] Adds a test for a reserved name. (#131363)

This was discovered when using this name in #130500.

Added: 
    

Modified: 
    libcxx/test/libcxx/system_reserved_names.gen.py

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/system_reserved_names.gen.py b/libcxx/test/libcxx/system_reserved_names.gen.py
index f01126249c881..304c803b76c3d 100644
--- a/libcxx/test/libcxx/system_reserved_names.gen.py
+++ b/libcxx/test/libcxx/system_reserved_names.gen.py
@@ -119,6 +119,11 @@
 #define __acquire SYSTEM_RESERVED_NAME
 #define __release SYSTEM_RESERVED_NAME
 
+// Android and FreeBSD use this for __attribute__((__unused__))
+#if !defined(__FreeBSD__)  && !defined(__ANDROID__)
+#define __unused SYSTEM_RESERVED_NAME
+#endif
+
 // These names are not reserved, so the user can macro-define them.
 // These are intended to find improperly _Uglified template parameters.
 #define A SYSTEM_RESERVED_NAME


        


More information about the libcxx-commits mailing list