mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Empty macro definition in compiler inspection, bug 274002.
This commit is contained in:
parent
e89276f505
commit
71638ab566
1 changed files with 9 additions and 12 deletions
|
@ -83,19 +83,16 @@ public class GCCSpecsConsoleParser implements IScannerInfoConsoleParser {
|
|||
}
|
||||
}
|
||||
|
||||
// Now defineParts[1] is the symbol name, and [2] is the
|
||||
// definition
|
||||
// Now defineParts[1] is the symbol name, and [2] is the definition
|
||||
String symbol = null;
|
||||
switch (defineParts.length) {
|
||||
case 2:
|
||||
symbol = defineParts[1];
|
||||
break;
|
||||
case 3:
|
||||
symbol = defineParts[1] + "=" + defineParts[2]; //$NON-NLS-1$
|
||||
break;
|
||||
}
|
||||
if (symbol != null && !symbols.contains(symbol)) {
|
||||
symbols.add(symbol);
|
||||
if (defineParts.length > 1) {
|
||||
symbol = defineParts[1] + "="; //$NON-NLS-1$
|
||||
if (defineParts.length > 2) {
|
||||
symbol += defineParts[2];
|
||||
}
|
||||
if (!symbols.contains(symbol)) {
|
||||
symbols.add(symbol);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue