开发者

How to cope with extension-less source files and tools that rely on extension information?

开发者 https://www.devze.com 2023-04-10 02:48 出处:网络
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 fi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消