-
Notifications
You must be signed in to change notification settings - Fork 14.1k
[libc++][test] Adds a test for a reserved name. #131363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This was discovered when using this name in llvm#130500.
@llvm/pr-subscribers-libcxx Author: Mark de Wever (mordante) ChangesThis was discovered when using this name in #130500. Full diff: https://github.com/llvm/llvm-project/pull/131363.diff 1 Files Affected:
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
(The CI failure should have been resolved by #131438.)
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/7358 Here is the relevant piece of the build log for the reference
|
This was discovered when using this name in #130500.