Skip to content

Commit ea0627d

Browse files
authored
call simplecpp::simplifyPath() before returning the result in toAbsolutePath()
1 parent e0efd63 commit ea0627d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,10 +2715,10 @@ static std::string toAbsolutePath(const std::string& path) {
27152715
return path;// preserve error file path that is indicated by an empty string
27162716
}
27172717
if (!isAbsolutePath(path)) {
2718-
return currentDirectory() + "/" + path;
2718+
return simplecpp::simplifyPath(currentDirectory() + "/" + path);
27192719
}
27202720
// otherwise
2721-
return path;
2721+
return simplecpp::simplifyPath(path);
27222722
}
27232723

27242724
static std::pair<std::string, bool> extractRelativePathFromAbsolute(const std::string& absolutepath) {

0 commit comments

Comments
 (0)