Also in this patch:
- Control the fuchsia version via a new flag (-ffuchsia-api-level).
- Add a warning that triggers when a non-zero minor/subminor are used for the fuchsia version.
Paths
| Differential D108592
[clang][Fuchsia] Support __attribute__((availability)) on Fuchsia ClosedPublic Authored by haowei on Aug 23 2021, 3:41 PM.
Details Summary Also in this patch:
Diff Detail
Event TimelineComment Actions Some extra comments/open questions:
leonardchan retitled this revision from [WIP][clang][Fuchsia] Support __attribute__((availability)) on Fuchsia to [clang][Fuchsia] Support __attribute__((availability)) on Fuchsia.Aug 24 2021, 12:04 PM
haowei marked an inline comment as done. haowei added inline comments.
Comment Actions I added unit test for macros. I am still working on adding error checks on --ffuchsia-api-level flags but the rest is pretty much done.
This revision is now accepted and ready to land.Oct 8 2021, 2:20 PM Closed by commit rG1131b1eb3509: [clang][Fuchsia] Support availability attr on Fuchsia (authored by haowei). · Explain WhyOct 11 2021, 3:33 PM This revision was automatically updated to reflect the committed changes. haowei added a reverting change: rGb5e8348bf2de: Revert "[clang][Fuchsia] Support availability attr on Fuchsia".Oct 11 2021, 5:33 PM
Revision Contents
Diff 378780 clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets/OSTargets.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Driver/attr-availability-fuchsia.c
clang/test/Sema/attr-availability-fuchsia.c
|