tom-anders added inline comments.
================ Comment at: clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2966 {cls("nx::Clangd1"), cls("ny::Clangd2"), cls("Clangd3"), - cls("na::nb::Clangd4")}, + cls("na::nb::Clangd4"), enmConstant("na::C::Clangd5")}, Opts); ---------------- nridge wrote: > nridge wrote: > > Hmm, I don't think this type of test actually exercises the > > `isIndexedForCodeCompletion()` codepath (since we're just mocking out the > > index contents, instead of running the actual indexer). > > > > Could we use [this > > type](https://searchfox.org/llvm/source/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp#3341-3359) > > instead? > > > > (Sorry, this is partly my fault for not looking more carefully at what > > sorts of tests are in CodeCompleteTests.cpp before my earlier comment.) > (Indeed, this test passes even without the change to CodeComplete.cpp.) Ah right, no problem, I didn't see that there also tests in that file that don't mock out the index, I added a test similar to the one you mentioned. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136925/new/ https://reviews.llvm.org/D136925 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits