[clangd] A code action to swap branches of an if statement
authorIlya Biryukov <ibiryukov@google.com>
Thu, 31 Jan 2019 21:30:05 +0000 (21:30 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 31 Jan 2019 21:30:05 +0000 (21:30 +0000)
commit4399878082518815a6e6f070a25fcc18340633df
treea6a4382cbe9a104363e844aba164f038e90932eb
parent0bd6b91fcfac4a652c5475f1d3c2d05dc7dfe406
[clangd] A code action to swap branches of an if statement

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: llvm-commits, mgorny, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D56611

llvm-svn: 352796
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/clangd/refactor/tweaks/CMakeLists.txt
clang-tools-extra/clangd/refactor/tweaks/Dummy.cpp [deleted file]
clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp [new file with mode: 0644]
clang-tools-extra/unittests/clangd/CMakeLists.txt
clang-tools-extra/unittests/clangd/TweakTests.cpp [new file with mode: 0644]