kadircet added inline comments.
================ Comment at: clang-tools-extra/clangd/ConfigCompile.cpp:51 + return llvm::StringRef(); + return Path; +} ---------------- sammccall wrote: > not that if Path == FragmentDir you're going to return "" which means "not > under". > I don't think this can happen yet, but it's a trap for the future... > > You might want the last line to be "return FragmentDir.empty() ? "." : Path". i think you meant `Path.empty() ? "." : Path`, right? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90270/new/ https://reviews.llvm.org/D90270 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits