[llvm] r220360 - Silence gcc's -Wcomment

Chandler Carruth chandlerc at google.com
Wed Oct 22 00:09:15 PDT 2014


On Tue, Oct 21, 2014 at 7:16 PM, Filipe Cabecinhas <me at filcab.net> wrote:

> Silence gcc's -Wcomment
>
> gcc's (4.7, I think) -Wcomment warning is not "as smart" as clang's and
> warns even if the line right after the backslash-newline sequence only has
> a line comment that starts at the beginning of the line.
>

No, please don't do this... Just turn off the warning when using GCC if it
is causing problems. Don't introduce c-style comments just to work around
this, they're really ugly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141022/0e40168d/attachment.html>


More information about the llvm-commits mailing list