1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Fixed Bug 40730 - Parser is not searching the include path for #include"<name>"

This commit is contained in:
John Camelon 2003-07-28 15:40:36 +00:00
parent 9b571cb993
commit 30f7903424
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2003-07-28 John Camelon
Fixed Bug 40730 : Parser is not searching the include path for #include"<name>"
2003-07-28 Victor Mozgin
Fixed PR 39537 : Parser fails if template parameters contain '>' or '<' characters.

View file

@ -322,10 +322,15 @@ public class Scanner implements IScanner {
inclusionReader =
new FileReader(includeFile);
} catch (FileNotFoundException fnf) {
if (throwExceptionOnInclusionNotFound)
throw new ScannerException("Cannot find inclusion " + fileName);
// the spec says that if finding in the local directory fails, search the include paths
handleInclusion( fileName, true, nameOffset, beginOffset, endOffset );
}
}
else
{
// the spec says that if finding in the local directory fails, search the include paths
handleInclusion( fileName, true, nameOffset, beginOffset, endOffset );
}
}
if (throwExceptionOnInclusionNotFound && inclusionReader == null )