[PATCH] D40733: [clangd] GlobalCompilationDatabase interface changes
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 4 01:11:42 PST 2017
hokein accepted this revision.
hokein added a comment.
This revision is now accepted and ready to land.
LGTM.
================
Comment at: clangd/ClangdUnitStore.cpp:67
// FIXME: Don't overwrite it if it's already there.
- Commands.front().CommandLine.push_back("-resource-dir=" +
- std::string(ResourceDir));
- return std::move(Commands.front());
+ C->CommandLine.push_back("-resource-dir=" + std::string(ResourceDir));
+ return std::move(*C);
----------------
nit: you can use `ResourceDir.str()`.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D40733
More information about the cfe-commits
mailing list