Headers' filenames

Out of curiosity, is there any valid reason why they are named ‘.h’, not '.hpp’ or unix-style ‘*.hxx’ ? (Decision of Qt developers is rather exception in open source world then widespread tendency)
*.h corresponds to C headers (text/x-chdr), not C++ headers (text/x-c++hdr), thus syntax highlighting is not correct in some editors/IDEs (e.g., Geany)

Regards,
Konstantin

On Wednesday 17 February 2010 12:33:20 Konstantin Tokarev wrote:

Out of curiosity, is there any valid reason why they are named ‘.h’, not
.hpp’ or unix-style ‘*.hxx’ ? (Decision of Qt developers is rather
exception in open source world then widespread tendency) *.h corresponds
to C headers (text/x-chdr), not C++ headers (text/x-c++hdr), thus syntax
highlighting is not correct in some editors/IDEs (e.g., Geany)

I think the decision was taken to stay close to the KDE/Qt naming conventions.
I think most of the C++ projects I have worked on use .h for the headers and
.cxx/.cpp for the implementation files. I wasn’t aware any editors had issues,
but I think there is plenty of precedence for using .h. As we use Qt
throughout Avogadro I think it is reasonable to stick with the same header
naming convention. At this stage the change simply would not be worth the cost
in porting code either.

Marcus