sammccall marked 4 inline comments as done. sammccall added inline comments.
================ Comment at: clang-tools-extra/clangd/GlobalCompilationDatabase.cpp:168 std::lock_guard<std::mutex> Lock(Mutex); + CachedCDB *Entry; if (CompileCommandsDir) { ---------------- hokein wrote: > nit: set default `nullptr`. Done, and also checked for it. ================ Comment at: clang-tools-extra/clangd/GlobalCompilationDatabase.cpp:210 if (CompileCommandsDir) { assert(*CompileCommandsDir == Result.PI.SourceRoot && "Trying to broadcast a CDB outside of CompileCommandsDir!"); ---------------- hokein wrote: > should we use the `pathEqual` here too? no, if we have a CompileCommandsDir then we'll only search in that exact directory name, and so the result should match exactly Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65320/new/ https://reviews.llvm.org/D65320 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits