eclipse: pass correct languageId for C++ when generating tool otherwise settings will not be used when C++ files are edited

This commit is contained in:
fedepell 2017-05-02 13:32:22 +02:00 committed by ita1024
parent 6cf97685f3
commit d618c52931
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class eclipse(Build.BuildContext):
'value': '"%s"'%(i)})
if tool_name == "GNU C++" or tool_name == "GNU C":
self.add(doc,tool,'inputType',{ 'id':'org.eclipse.cdt.build.core.settings.holder.inType.1', \
'languageId':'org.eclipse.cdt.core.gcc','languageName':tool_name, \
'languageId':'org.eclipse.cdt.core.gcc' if tool_name == "GNU C" else 'org.eclipse.cdt.core.g++','languageName':tool_name, \
'sourceContentType':'org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader', \
'superClass':'org.eclipse.cdt.build.core.settings.holder.inType' })
if source_dirs: