[PATCH] D89297: [clangd] Add a TestWorkspace utility
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 21 03:42:18 PDT 2020
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
thanks, lgtm!
================
Comment at: clang-tools-extra/clangd/unittests/TestWorkspace.cpp:17
+ for (const auto &Input : Inputs) {
+ if (!Input.second.IsMainFile) {
+ continue;
----------------
nit: redundant braces
================
Comment at: clang-tools-extra/clangd/unittests/TestWorkspace.h:32
+private:
+ struct SourceFile {
+ std::string Code;
----------------
nit: I would move this near the stringmap.
================
Comment at: clang-tools-extra/clangd/unittests/TestWorkspace.h:38
+public:
+ TestWorkspace() {}
+
----------------
drop this.
================
Comment at: llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn:99
"TestTU.cpp",
+ "TestWorkspace.cpp",
"TweakTesting.cpp",
----------------
these are usually picked up by gn-build-bots and auto-updated. but it shouldn't hurt to do that manually as well (i hope)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89297/new/
https://reviews.llvm.org/D89297
More information about the cfe-commits
mailing list