- Only for testing purposes
- Disabled tweaks in fixits-duplications test
Details
Details
- Reviewers
sammccall kadircet - Commits
- rG8cae7d79b552: Summary: [Clangd] Added hidden command line option -tweaks to specify which…
rCTE364809: Summary: [Clangd] Added hidden command line option -tweaks to specify which…
rL364809: Summary: [Clangd] Added hidden command line option -tweaks to specify which…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Sorry, hit submit too early...
We could use -tweaks=comma,separated,list and have the ClangdServer::Options member be a function<bool(StringRef)> TweakFilter or so
clang-tools-extra/clangd/ClangdServer.h | ||
---|---|---|
145 ↗ | (On Diff #207323) | ClangdServer::Options needs to be default-constructible with sensible default options. Can you either inline-initialize this = [](llvm::StringRef) { return true; } (if possible), or have the code handle TweakFilter==nullptr as accepting anything? |
clang-tools-extra/clangd/tool/ClangdMain.cpp | ||
542 ↗ | (On Diff #207323) | it would be clearer to set this only if TweakList.getNumOccurrences(), rather than using it inside the lambda, I think |
544 ↗ | (On Diff #207323) | return llvm::find(TweakList, TweakToSearch) != TweakList.end() ? |