[cfe-dev] Disabling Lexer warnings

Nico Weber thakis at chromium.org
Thu Sep 15 09:26:23 PDT 2011


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
>




More information about the cfe-dev mailing list