[cfe-dev] How are `__attribute__`s parsed in Clang?

Aaron Ballman via cfe-dev cfe-dev at lists.llvm.org
Thu May 3 08:03:37 PDT 2018


On Thu, May 3, 2018 at 10:18 AM, Marcus Johnson via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> I'm thinking about making a patch to add support for the printf attribute's
> sibling, wprintf, but I tried searching the codebase, and couldn't find it,
> and there's literally thousands of files.
>
> I filed bug report 37288 on it and nobody responded, so I think I'll just
> see if I can add support for it myself.

This document should get you started:
https://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute

~Aaron

>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list