[cfe-dev] Pragma message in Clang?

Michael Spencer bigcheesegs at gmail.com
Sun Sep 26 23:29:08 PDT 2010


On Sun, Sep 26, 2010 at 2:39 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Sep 26, 2010, at 10:30 AM, Michael Spencer wrote:
>
> What's Clang's equivalent to `#pragma message` as used in [GCC][1] and
>
> [MSVC][2]?
>
>  [1]: http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas
>
>  [2]: http://msdn.microsoft.com/en-us/library/x7dkzch2.aspx
>
>
>
> Patch attached. Please verify.
>
> - Michael Spencer
>
> Looks good to me, please commit.  Feel free to enable it by default in GNU
> mode also if it hasn't already been done.
> -Chris

Committed in r114814.

As for the macro instantiation backtrace, I'm undecided. In this case
it would be nice to suppress it, however there are other cases where
it may be desired.

- Michael Spencer




More information about the cfe-dev mailing list