Skip to content

Commit e4327bf

Browse files
author
jan
committed
Ignore UNDEF during discovery
1 parent ca5b787 commit e4327bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

io.sloeber.autoBuild/src/io/sloeber/autoBuild/internal/AutoBuildLanguageSettingsProvider.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ public boolean processLine(String line) {
486486
case END_OF_INCLUDES:
487487
inIncludes = false;
488488
return true;
489+
case UNDEF:
490+
return true;
489491
default:
490492
break;
491493
}
@@ -516,7 +518,7 @@ public void shutdown() {
516518
}
517519

518520
private enum outputTypes {
519-
INCLUDE1, INCLUDE2, FRAMEWORK, DEFINE1, DEFINE2, END_OF_INCLUDES
521+
INCLUDE1, INCLUDE2, FRAMEWORK, DEFINE1, DEFINE2, UNDEF, END_OF_INCLUDES
520522
}
521523

522524
private static Map<Pattern, outputTypes> outputMatchers = new HashMap<>() {
@@ -526,6 +528,7 @@ private enum outputTypes {
526528
put(Pattern.compile("#framework <(\\S.*)>"), outputTypes.FRAMEWORK); //$NON-NLS-1$
527529
put(Pattern.compile("#define\\s+(\\S*\\(.*?\\))\\s*(.*)"), outputTypes.DEFINE1); //$NON-NLS-1$
528530
put(Pattern.compile("#define\\s+(\\S*)\\s*(.*)"), outputTypes.DEFINE2); //$NON-NLS-1$
531+
put(Pattern.compile("#undef\\s+(\\S*)\\s*(.*)"), outputTypes.UNDEF); //$NON-NLS-1$
529532
put(Pattern.compile("End of search list\\."), outputTypes.END_OF_INCLUDES); //$NON-NLS-1$
530533
}
531534
};

0 commit comments

Comments
 (0)