[cfe-dev] [patch] Microsoft Extension - #pragma message

Michael Spencer bigcheesegs at gmail.com
Sat Jun 19 06:25:21 PDT 2010


I implemented this rather simple extension to get more familiar with
the code base. It differs from the MSVC implementation because of the
way clang handles diagnostics. MSVC simply prints _exactly_ what's in
the quoted string to the standard output with a new line at the end.
Because this behavior does not fit in well with the way clang handles
diagnostics, I added a new warning that prints out the quoted string.
This should not {a,e}ffect the correctness of any code, but still
provides the intended functionality.

- Michael Spencer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pragma-message.patch
Type: application/octet-stream
Size: 8494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100619/c363f18b/attachment.obj>


More information about the cfe-dev mailing list