[cfe-dev] Disabling Lexer warnings

Don Williamson don.williamson at yahoo.com
Fri Sep 16 09:19:28 PDT 2011


Excellent, thanks!


________________________________
From: Nico Weber <thakis at chromium.org>
To: Don Williamson <don.williamson at yahoo.com>
Cc: cfe-dev <cfe-dev at cs.uiuc.edu>
Sent: Thursday, September 15, 2011 5:26 PM
Subject: Re: [cfe-dev] Disabling Lexer warnings

Can you include the DirectX headers with -isystem? Clang doesn't print
warnings for system headers.

Nico

On Thu, Sep 15, 2011 at 4:00 AM, Don Williamson
<don.williamson at yahoo.com> wrote:
> Hi,
>
> when compiling the DirectX SDK I'm getting lots of these warnings:
>
> C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include/d3d9.h(2025,0) :  warning: '/*' within block comment
> /* D3D9Ex interfaces
> ^
>
> When compiling in MSVC I get no warnings. I'd like clang to match MSVC here because I can't modify the MSDX headers.
>
> The code to emit that warning is in Lexer.cpp and I'm wondering whether it's worth predicating the check with a (!Features.Microsoft) check.
>
> Does that sound reasonable?
>
> Cheers,
> - Don
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110916/d98333b3/attachment.html>


More information about the cfe-dev mailing list