This patch contains two parts:
- reverts commit r353306.
- move the format logic out from tweaks, keep tweaks API unchanged.
Paths
| Differential D58051
Revamp the "[clangd] Format tweak's replacements" ClosedPublic Authored by hokein on Feb 11 2019, 5:42 AM.
Details Summary This patch contains two parts:
Diff Detail
Event Timelinehokein retitled this revision from Revert "[clangd] Format tweak's replacements." to Revamp the "[clangd] Format tweak's replacements".Feb 11 2019, 5:46 AM Comment Actions LGTM
This revision is now accepted and ready to land.Feb 11 2019, 6:45 AM Closed by commit rCTE353712: Revamp the "[clangd] Format tweak's replacements" (authored by hokein). · Explain WhyFeb 11 2019, 7:18 AM This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done.
Revision Contents
Diff 186257 clangd/ClangdServer.cpp
clangd/ClangdUnit.cpp
clangd/Compiler.h
clangd/refactor/Tweak.h
clangd/refactor/Tweak.cpp
clangd/refactor/tweaks/SwapIfBranches.cpp
test/clangd/tweaks-format.test
unittests/clangd/TweakTests.cpp
|
NIT: use InpAST.Inputs.FS instead of creating a new instance of the vfs.