- Only for testing purposes
- Disabled tweaks in fixits-duplications test
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
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 34133 Build 34132: arc lint + arc unit
Event Timeline
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 | 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 | it would be clearer to set this only if TweakList.getNumOccurrences(), rather than using it inside the lambda, I think | |
544 | return llvm::find(TweakList, TweakToSearch) != TweakList.end() ? |
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?