[clangd] Always remove dots before converting paths to URIs in symbol collector.
llvm-svn: 335458
This commit is contained in:
parent
79e474bf46
commit
a095770a82
|
@ -75,9 +75,10 @@ llvm::Optional<std::string> toURI(const SourceManager &SM, StringRef Path,
|
|||
}
|
||||
} else if (!Opts.FallbackDir.empty()) {
|
||||
llvm::sys::fs::make_absolute(Opts.FallbackDir, AbsolutePath);
|
||||
llvm::sys::path::remove_dots(AbsolutePath, /*remove_dot_dot=*/true);
|
||||
}
|
||||
|
||||
llvm::sys::path::remove_dots(AbsolutePath, /*remove_dot_dot=*/true);
|
||||
|
||||
std::string ErrMsg;
|
||||
for (const auto &Scheme : Opts.URISchemes) {
|
||||
auto U = URI::create(AbsolutePath, Scheme);
|
||||
|
|
Loading…
Reference in New Issue