How to cope with extension-less source files and tools that rely on extension information?
C++ code I'm working with is happily using the "no extension needed for header files" rule. This gives me a headache when using tools such as cscope and sloccount on directories containing these files, because these tools ignore extension-less files.
Does anyone know a way to avoid this (except renaming the files or putting sym开发者_如何学Golinks etc.)?
Just rename the files to use normal convention so that future maintainers don't have headaches trying to figure out what code is where. The no-extension standard include files should be treated as the exception rather than the rule to follow, since the standard doesn't even guarantee they correspond to a physical file.
精彩评论