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:
parent
9b571cb993
commit
30f7903424
2 changed files with 10 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue