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:
parent
e2b84054ef
commit
19a8eda676
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue