1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Fix for PR 78792 [Scanner Config] Include paths not discovered from build output of Ethereal project.

Fixed ambiguous (prefix & postfix based) source file name detection.
This commit is contained in:
Vladimir Hirsl 2004-11-16 21:53:22 +00:00
parent e2b84054ef
commit 19a8eda676

View file

@ -119,17 +119,17 @@ public class GCCScannerInfoConsoleParser implements IScannerInfoConsoleParser {
if (!targetSpecificOptions.contains(token))
targetSpecificOptions.add(token);
}
else {
else if (fileName == null) {
String possibleFileName = token.toLowerCase();
if (possibleFileName.startsWith("..") || //$NON-NLS-1$
possibleFileName.startsWith(".") || //$NON-NLS-1$
possibleFileName.startsWith("/") || //$NON-NLS-1$
possibleFileName.endsWith(".c") || //$NON-NLS-1$
if (possibleFileName.endsWith(".c") || //$NON-NLS-1$
possibleFileName.endsWith(".cpp") || //$NON-NLS-1$
possibleFileName.endsWith(".cc") || //$NON-NLS-1$
possibleFileName.endsWith(".cxx") || //$NON-NLS-1$
possibleFileName.endsWith(".C") || //$NON-NLS-1$
possibleFileName.endsWith(".CC")) { //$NON-NLS-1$
possibleFileName.endsWith(".CPP") || //$NON-NLS-1$
possibleFileName.endsWith(".CC") || //$NON-NLS-1$
possibleFileName.endsWith(".CXX") || //$NON-NLS-1$
possibleFileName.endsWith(".c++")) { //$NON-NLS-1$
fileName = token;
}