mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +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
|
2003-07-28 Victor Mozgin
|
||||||
Fixed PR 39537 : Parser fails if template parameters contain '>' or '<' characters.
|
Fixed PR 39537 : Parser fails if template parameters contain '>' or '<' characters.
|
||||||
|
|
||||||
|
|
|
@ -322,10 +322,15 @@ public class Scanner implements IScanner {
|
||||||
inclusionReader =
|
inclusionReader =
|
||||||
new FileReader(includeFile);
|
new FileReader(includeFile);
|
||||||
} catch (FileNotFoundException fnf) {
|
} catch (FileNotFoundException fnf) {
|
||||||
if (throwExceptionOnInclusionNotFound)
|
// the spec says that if finding in the local directory fails, search the include paths
|
||||||
throw new ScannerException("Cannot find inclusion " + fileName);
|
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 )
|
if (throwExceptionOnInclusionNotFound && inclusionReader == null )
|
||||||
|
|
Loading…
Add table
Reference in a new issue