[PATCH] D50627: [clangd] Add a testcase for empty preamble.
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 13 04:19:06 PDT 2018
ilya-biryukov added a comment.
Maybe also add a test for find-definition that was broken before? (non-empty preamble -> empty preamble -> bad gotodef that goes to included file instead of the local variable)
To have a regression test against similar failures.
================
Comment at: unittests/clangd/TUSchedulerTests.cpp:312
+TEST_F(TUSchedulerTests, EmptyPreamble) {
+ TUScheduler S(
+ /*AsyncThreadsCount=*/4, /*StorePreambleInMemory=*/true,
----------------
Maybe call PrecompiledPreamble directly? it requires some setup, but tests the modified code without extra layers that TUScheduler adds.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50627
More information about the cfe-commits
mailing list