mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 378981: Include pattern for LLVM/clang in build output parser
default compiler command pattern
This commit is contained in:
parent
347ce24020
commit
07cac1aa54
2 changed files with 13 additions and 1 deletions
|
@ -446,6 +446,8 @@ public class GCCBuildCommandParserTest extends BaseTestCase {
|
|||
IFile file6=ResourceHelper.createFile(project, "file6.cpp");
|
||||
IFile file7=ResourceHelper.createFile(project, "file7.cpp");
|
||||
IFile file8=ResourceHelper.createFile(project, "file8.cpp");
|
||||
IFile file9=ResourceHelper.createFile(project, "file9.cpp");
|
||||
IFile file10=ResourceHelper.createFile(project, "file10.cpp");
|
||||
ICLanguageSetting ls = cfgDescription.getLanguageSettingForFile(file1.getProjectRelativePath(), true);
|
||||
String languageId = ls.getLanguageId();
|
||||
|
||||
|
@ -462,6 +464,8 @@ public class GCCBuildCommandParserTest extends BaseTestCase {
|
|||
parser.processLine("/absolute/path/gcc -I/path0 file6.cpp");
|
||||
parser.processLine(" \"/absolute/path/gcc\" -I/path0 file7.cpp");
|
||||
parser.processLine("../relative/path/gcc -I/path0 file8.cpp");
|
||||
parser.processLine("clang -I/path0 file9.cpp");
|
||||
parser.processLine("clang++ -I/path0 file10.cpp");
|
||||
parser.shutdown();
|
||||
|
||||
// check populated entries
|
||||
|
@ -498,6 +502,14 @@ public class GCCBuildCommandParserTest extends BaseTestCase {
|
|||
List<ICLanguageSettingEntry> entries = parser.getSettingEntries(cfgDescription, file8, languageId);
|
||||
assertEquals(new CIncludePathEntry(path0, 0), entries.get(0));
|
||||
}
|
||||
{
|
||||
List<ICLanguageSettingEntry> entries = parser.getSettingEntries(cfgDescription, file9, languageId);
|
||||
assertEquals(new CIncludePathEntry(path0, 0), entries.get(0));
|
||||
}
|
||||
{
|
||||
List<ICLanguageSettingEntry> entries = parser.getSettingEntries(cfgDescription, file10, languageId);
|
||||
assertEquals(new CIncludePathEntry(path0, 0), entries.get(0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -617,7 +617,7 @@
|
|||
class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser"
|
||||
id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"
|
||||
name="CDT GCC Build Output Parser"
|
||||
parameter="(gcc)|([gc]\+\+)"
|
||||
parameter="(gcc)|([gc]\+\+)|(clang)"
|
||||
prefer-non-shared="true">
|
||||
</provider>
|
||||
</extension>
|
||||
|
|
Loading…
Add table
Reference in a new issue