<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><pre><font style="font-family:arial,helvetica,sans-serif" size="2">Hi Sebastian,

I apologize for the delay. I think that it should be fairly trivial to detect which headers come from the SDK by looking in the registry for the path to the SDK. Maybe clang already supports this somewhere? I'm not very Windows savvy myself but I'm willing to take a crack at this if nobody else steps forward with more specific information.
</font></pre></blockquote><div><br>This is unacceptable for MinGW, which uses no registry, but the same header names (but obviously different implementation). The MinGW(-w64) headers are all lower-case, some of the Windows SDK headers are capitalized. There is no way to detect the difference, and there is no "right" capitalization for these.<br>
<br>This feature also has an effect on cross-compilation, where a Linux to Windows cross-compile will work case sensitive, a native Windows compile will not. <br><br>Ruben <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<pre><font style="font-family:arial,helvetica,sans-serif" size="2">
Jason


On Jul 19, 2012, at 5:14 AM, Sebastian Redl wrote:

><i> On 19.07.2012 00:09, Jason Haslam wrote:
</i>>><i> The attached (incomplete proof-of-concept) patch provides a new warning that fires on case-insensitive file systems when the case of the file name in the #include directive doesn't match the case of the file name on disk. The idea is to avoid broken commits that fail to build on case-sensitive file systems. For example:
</i>>><i> 
</i>>><i> What do you think? Is this desirable? Does the direction look right?
</i>>><i> 
</i>><i> There would need to be a whitelist mechanism for some headers, I think. 
</i>><i> I'm pretty sure the WinSDK headers have changed casing over time, so I 
</i>><i> would want to suppress this warning for windows.h. I would not want to 
</i>><i> have to change code just because I installed a new SDK.
</i>><i> 
</i>><i> Sebastian
</i>><i> _______________________________________________
</i>><i> cfe-dev mailing list
</i>><i> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">cfe-dev at cs.uiuc.edu</a>
</i>></font><i><font style="font-family:arial,helvetica,sans-serif" size="2"> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a></font>
</i></pre></blockquote>