This patch has been prepared to showcase the header generation proposal posted on libc-dev.
It is incomplete and will not be submitted or sent for formal review.
Differential D69421
[libc] Header generation scheme. sivachandra on Oct 24 2019, 10:06 PM. Authored by
Details
This patch has been prepared to showcase the header generation proposal posted on libc-dev. It is incomplete and will not be submitted or sent for formal review.
Diff Detail
Event Timeline
Comment Actions LGTM I see no problems from what is here. I'd also like to say that the emphasis on writing docs for all of this is something I'm really happy to see.
Comment Actions Use TableGen types instead of strings.
Comment Actions My latest diff showcases function attributes and also argument annotations. About size_t like items which standard says that multiple headers files should provide: As theraven@ suggests, we will in general have an internal header file. For size_t itself, the freestanding headers provide us a convenient way to do it without causing header pollution.
Comment Actions Abandoning this change now as the patch implementing the ideas showcased here has landed. |
Can you explain a bit more why we need a header generator?
If you want to make some declarations condition on feature macros, I think the usual approach is: