It has become vogue in recent times to use extensionless header files. I think it started with the STL library and spread, like a virus, from there. Oops… sorry to inject my personal opinon there. Suffice to say, I think they are a bad idea.
But they are a reality and we have to deal with them. In fact, we have hundreds of them in our own source tree, courtesy our use of Qt for GUI portability.
As a teaching example, I setup an Understand 2.0 project file that includes the Qt include tree. I added a “Makefile” to it for example – it wasn’t really there to start with. But it does highlight the problem and gives a clue as to why I, a static analysis tool vendor, don’t like extensionless header files…. How are we supposed to tell Makefile, or Todo, or Readme from QString. Sure we could analyze them to see what was in them, but that is a pain and error prone.
But there is a way, and here is how.
First off, when adding a directory I have to have an additional file filter of *:

This places them in the Project, but as un-parsed files:


(more…)