[PATCH] D56841: [clangd] Filter out plugin related flags and move all commandline manipulations into OverlayCDB.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 21 02:29:51 PST 2019
kadircet added inline comments.
================
Comment at: clangd/GlobalCompilationDatabase.cpp:24
+void AdjustArguments(tooling::CompileCommand &Cmd,
+ const std::string &ResourceDir) {
+ // Strip plugin related command line arguments. Clangd does
----------------
ilya-biryukov wrote:
> kadircet wrote:
> > ilya-biryukov wrote:
> > > NIT: use `StringRef`
> > Need a string for the concatenation below, when pushing to vector. Otherwise we get a Twine
> Why not call `.str()` on a Twine?
Sure it is also an option but didn't think it would look any better, but there you go.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56841/new/
https://reviews.llvm.org/D56841
More information about the cfe-commits
mailing list