Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] natureFilter of C++ and C toolchain of Visual Studio

Here's the natureFilter documentation

"Filters the display (and use) of the tool by the nature of the project. Selecting a value of 'cnature' insures that the
 tool will be displayed IFF there is a cnature associated with the project. A ccnature will filter this tool out. If
 'ccnature' is selected, the tool will only be available for C++ projects. If 'both' is selected, the tool will be
 displayed when either nature is present. This attribute is required if it is not inherited from its superClass. The
 default value is "both"."

If I'm reading this correctly, you specify the nature where you want the toolchain to be available. So, since the C++ tool should only be in C++ projects, it should be set to ccnature and the C tool needs to be in both C and C++ projects, then it should be set to both. This is also in line with how the GCC toolchain is set up in org.eclipse.cdt.managedbuilder.gnu.ui\plugin.xml.


On 7/4/2013 12:31 PM, guy.bonneau@xxxxxxxxxxxx wrote:
 The current natureFilter attribute of C++ and C tools of the Visual Studio toolchain are currently set to ccnature and both. Yet I would have expected the C++ tool to have the attribute both and C tool to have attribute cnature. I am missing something or I should open a bug ?

cdt-dev mailing list

Back to the top