Set OSX Clang to case sensitivity to include operators

I know that case sensitivity in C ++ include statements is a filesystem issue (related questions here and here ).

Is it possible for Clang to require case sensitive matches to prevent cross-platform build issues?


source to share

2 answers

Ok, as you stated and as these questions have pointed out, this is a filesystem issue. If you've formatted your OS X drive as case sensitive then it might work, but in reality you should probably find another way to separate the headers.



Clang now has the following warning flags:



The first is for the specified inclusions, and the second is for the angle brackets. They can even be mapped to errors:



Presumably they are not enabled by default because they can slow down compilation. I didn't take the time to figure out how much.



All Articles