[cfe-dev] New warning for mismatched include case

Ted Kremenek kremenek at apple.com
Fri Jul 27 13:44:09 PDT 2012


It's entirely relevant on the Mac.  In a scenario where you have a team of developers, some working on case-sensitive HFS+ and others working on case-insensitive HFS+, you want the code contributed from one developer to not break someone else's build.  Your argument is essentially the same as saying everyone could just use a case-sensitive file system, but that doesn't take into account the reality of human habits.

This helps address a real problem we observe frequently in teams of engineers.

On Jul 27, 2012, at 12:51 PM, Konstantin Tokarev <annulen at yandex.ru> wrote:

> 
> 27.07.2012, 22:34, "Joshua Warner" <allpowerful32 at gmail.com>:
>> On windows, at least, there is an API that could help with this: just get a (windows) handle to the file via OpenFile / CreateFile, then query the handle's filename.  See http://msdn.microsoft.com/en-us/library/windows/desktop/aa366789(v=vs.85).aspx.I suspect there are similar ways to do it for mac and linux.
> 
> On Mac and Linux this issue is not very relevant, because native Linux filesystems are case-sensitive, and on Mac it's quite easy to create case-sensitive partition for source code.
> 
> -- 
> Regards,
> Konstantin
> _______________________________________________
> 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