Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Header content types

Hi,

 

While investigating other things, I ran into a problem with our content-type definitions for a Header file.  

 

   <extension point="org.eclipse.core.runtime.contentTypes">

      <file-association

       content-type="org.eclipse.cdt.core.cHeader"

       file-extensions="h"/>

   </extension>

 

   <extension point="org.eclipse.core.runtime.contentTypes">

      <file-association

       content-type="org.eclipse.cdt.core.cxxHeader"

       file-extensions="hpp,hh,hxx"/>

   </extension>

 

cHeader contains “h”.

cxxHeader contains “hpp,hh,hxx”.

 

Shouldn’t cxxHeader also include “h”?  We have the g++ Tool defined to use the cxxHeader content-type.  So, if I ask if a .h file is a header file for this Tool, the answer is No.  Can anyone think of a reason why we should not add “h” to the C++ header extensions list?

 

Thanks,

Leo

 


Back to the top