mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
use the canonical path when creating code readers so that the name
in the code reader matches the file on disk (makes a difference on non-case-sensitive OSs)
This commit is contained in:
parent
d029959807
commit
73d595ea0e
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ public class InternalParserUtil extends ParserFactory {
|
||||||
if (includeFile.exists() && includeFile.isFile())
|
if (includeFile.exists() && includeFile.isFile())
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return new CodeReader(finalPath);
|
//use the canonical path so that in case of non-case-sensitive OSs
|
||||||
|
//the CodeReader always has the same name as the file on disk with
|
||||||
|
//no differences in case.
|
||||||
|
return new CodeReader(includeFile.getCanonicalPath());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue