[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] What determines languages in Preprocessor Include Paths, Macros etc page?
|
Hi Sergey,
Normally the languages are coming from InputType of the toolchain
definition. If a language is not defined there it will look at its
content type. I see you defined both so I am not sure why they are not
picked up.
Try to debug LanguageSettingsManager.getLanguages().
Thanks,
Andrew
On Thu, Mar 7, 2013 at 11:51 PM, Sergey Prigogin
<eclipse.sprigogin@xxxxxxxxx> wrote:
> I have a C++ project that is created based on the toolchain definition
> below. This project works fine with disabled language setting providers, and
> in Paths and Symbols page shows three languages: Assembly, C Source File,
> and C++ Source File. In the Preprocessor Include Paths, Macros etc page it,
> for some reason, shows only Assembly. Does anybody know what is required to
> get C and C++ languages in the Preprocessor Include Paths, Macros etc page?
>
> <extension
> point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
> <projectType
>
> buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"
> id="some_plugin_id.nullProjectType"
> isAbstract="false"
> isTest="false"
> name="Special C++ Project">
> <configuration
>
> buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"
> description="Setup for C++ indexer"
> id="some_plugin_id.nullConfiguration"
> name="">
> <toolChain
> id="some_plugin_id.nullToolChain"
> isSystem="true"
> name="Null Toolchain"
> osList="linux">
> <tool
> id="some_plugin_id.tool.g++"
> isSystem="true"
> name="Null compiler for C++"
> natureFilter="both">
> <inputType
> dependencyContentType="org.eclipse.cdt.core.cHeader"
> id="some_plugin_id.dummyInput.g++"
> languageId="org.eclipse.cdt.core.language.g++"
> name="Dummy input for C++"
> primaryInput="true"
> sourceContentType="org.eclipse.cdt.core.cxxSource">
> </inputType>
> <outputType
> id="some_plugin_id.dummyOutput.g++"
> name="Dummy output for C++"
> outputContentType="org.eclipse.cdt.core.binaryFile"
> primaryOutput="true">
> </outputType>
> <option
> id="some_plugin_id.optionSymbols.g++"
> name="C++ indexer defined symbols for C++"
> resourceFilter="project"
> valueType="definedSymbols">
> </option>
> <option
> id="some_plugin_id.optionIncludePaths.g++"
> name="C++ indexer include paths for C++"
> resourceFilter="project"
> valueType="includePath">
> </option>
> </tool>
> <tool
> id="some_plugin_id.tool.gcc"
> isSystem="true"
> name="Null compiler for C"
> natureFilter="both">
> <inputType
> dependencyContentType="org.eclipse.cdt.core.cHeader"
> id="some_plugin_id.dummyInput.gcc"
> languageId="org.eclipse.cdt.core.language.gcc"
> name="Dummy input for C"
> primaryInput="true"
> sourceContentType="org.eclipse.cdt.core.cSource">
> </inputType>
> <outputType
> id="some_plugin_id.dummyOutput.gcc"
> name="Dummy output for C"
> outputContentType="org.eclipse.cdt.core.binaryFile"
> primaryOutput="true">
> </outputType>
> <option
> id="some_plugin_id.optionSymbols.gcc"
> name="C++ indexer defined symbols for C"
> resourceFilter="project"
> valueType="definedSymbols">
> </option>
> <option
> id="some_plugin_id.optionIncludePaths.gcc"
> name="C++ indexer include paths for C"
> resourceFilter="project"
> valueType="includePath">
> </option>
> </tool>
> <tool
> id="some_plugin_id.tool.asm"
> isSystem="true"
> name="Null compiler"
> natureFilter="both">
> <inputType
> dependencyContentType="org.eclipse.cdt.core.cHeader"
> id="some_plugin_id.dummyInput.asm"
> languageId="org.eclipse.cdt.core.assembly"
> name="Dummy input for ASM"
> primaryInput="true"
> sourceContentType="org.eclipse.cdt.core.asmSource">
> </inputType>
> <outputType
> id="some_plugin_id.dummyOutput.asm"
> name="Dummy output for ASM"
> outputContentType="org.eclipse.cdt.core.binaryFile"
> primaryOutput="true">
> </outputType>
> <option
> id="some_plugin_id.optionSymbols"
> name="C++ indexer defined symbols for ASM"
> resourceFilter="project"
> valueType="definedSymbols">
> </option>
> <option
> id="some_plugin_id.optionIncludePaths"
> name="C++ indexer include paths for ASM"
> resourceFilter="project"
> valueType="includePath">
> </option>
> </tool>
> <targetPlatform
> binaryParser="org.eclipse.cdt.core.GNU_ELF"
> id="some_plugin_id.nullTargetPlatform"
> name="Some target platform"
> osList="linux">
> </targetPlatform>
> <builder
> arguments=""""
> command=""""
> errorParsers=""""
> id="some_plugin_id.nullBuilder"
> isSystem="true"
> name="Null Builder"
> supportsManagedBuild="false">
> </builder>
> </toolChain>
> </configuration>
> </projectType>
> </extension>
>
> -sergey
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>