[libcxx-commits] [PATCH] D91565: Guard init_priority attribute within libc++
Zbigniew Sarbinowski via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 19 13:39:12 PST 2020
zibi marked an inline comment as done.
zibi added inline comments.
================
Comment at: clang/include/clang/Basic/Attr.td:384
+def ExcludeTarget : TargetSpec {
+ let CustomCode = [{ !Target.getTriple().isOSzOS() }];
----------------
aaron.ballman wrote:
> This is not a very descriptive name -- if this is only supposed to be used for `init_priority` how about `TargetSupportsInitPriority` instead?
>
> Also, this change is missing test coverage and documentation changes.
For now, we can use `TargetSupportsInitPriority`, we can always change it if we find the need to disable other attributes.
Thank you Arraon for review and suggestion for the name.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91565/new/
https://reviews.llvm.org/D91565
More information about the libcxx-commits
mailing list