mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Fixed include guard adjustment when renaming a project.
This commit is contained in:
parent
4efe6e815e
commit
39c8cf14fd
1 changed files with 2 additions and 0 deletions
|
@ -679,6 +679,8 @@ public class StubUtility {
|
||||||
ISourceRoot root = cproject.findSourceRoot(file);
|
ISourceRoot root = cproject.findSourceRoot(file);
|
||||||
if (root != null) {
|
if (root != null) {
|
||||||
path = PathUtil.makeRelativePath(path, root.getPath());
|
path = PathUtil.makeRelativePath(path, root.getPath());
|
||||||
|
} else {
|
||||||
|
path = PathUtil.makeRelativePath(path, cproject.getPath());
|
||||||
}
|
}
|
||||||
return generateIncludeGuardSymbolFromFilePath(path.toString());
|
return generateIncludeGuardSymbolFromFilePath(path.toString());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue