[cfe-dev] New warning for mismatched include case

Sebastian Redl sebastian.redl at getdesigned.at
Thu Jul 19 04:14:36 PDT 2012


On 19.07.2012 00:09, Jason Haslam wrote:
> 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:
>
> What do you think? Is this desirable? Does the direction look right?
>
There would need to be a whitelist mechanism for some headers, I think. 
I'm pretty sure the WinSDK headers have changed casing over time, so I 
would want to suppress this warning for windows.h. I would not want to 
have to change code just because I installed a new SDK.

Sebastian



More information about the cfe-dev mailing list