Simulating case sensitivity on a filesystem that isn't case sensitive

后端 未结 3 1760
遇见更好的自我
遇见更好的自我 2021-02-08 17:19

When I develop in C++ on a filesystem that is not case sensitive, I miss problems such as

#include \"File.h\"

if on disk it is actually f

3条回答
  •  终归单人心
    2021-02-08 18:22

    I would be tempted to write something like FileMon (to run externally), and just monitor the file access calls from your IDE to the file system to check for case matches. It's unlikely you're going to get any automated checking from the IDE or the OS (at least, without mucking with the file system). On the other hand, a separate utility monitoring the file access could easily catch such issues (once you get over the hurtle of making the monitoring work).

    My 2c, anyway.

提交回复
热议问题