ArcsinX added inline comments.

================
Comment at: clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp:60
+    llvm::StringRef Path(this->RemoteIndexRoot);
+    if (!is_separator(this->RemoteIndexRoot.back(),
+                      llvm::sys::path::Style::posix))
----------------
I know this already commited, but maybe we could use 
`llvm::sys::path::is_separator` instead of `is_separator` to be consistent with 
other function calls from `llvm::sys::path` namespace in this file.

P.S. `llvm::sys::path::is_separator` checks a single char, but 
`llvm::sys::path::get_separator` returns string. Can not understand why. Could 
there be a multi-char separator in the future?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89852/new/

https://reviews.llvm.org/D89852

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to