Disabling Lexer warnings

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

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

Nico

Excellent, thanks!