diff --git a/clang-tools-extra/clangd/URI.cpp b/clang-tools-extra/clangd/URI.cpp --- a/clang-tools-extra/clangd/URI.cpp +++ b/clang-tools-extra/clangd/URI.cpp @@ -30,9 +30,9 @@ return Path.size() > 1 && llvm::isAlpha(Path[0]) && Path[1] == ':'; } -bool isNetworkPath(llvm::StringRef Name) { +bool isNetworkPath(llvm::StringRef Path) { llvm::StringRef Sep = llvm::sys::path::get_separator(); - return Name.consume_front(Sep) && Name.consume_front(Sep) && !Name.empty(); + return Path.consume_front(Sep) && Path.consume_front(Sep) && !Path.empty(); } /// This manages file paths in the file system. All paths in the scheme