[clangd] Don't run the prepare for tweaks that are disabled.
authorHaojian Wu <hokein@google.com>
Fri, 12 Jul 2019 08:50:20 +0000 (08:50 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 12 Jul 2019 08:50:20 +0000 (08:50 +0000)
commit7eeb82b58554163962d2696ce9be7d021d5b25d4
tree1f2bec1621a6248db3bf0dfea1f7fc3d502dd6d0
parentfafec5155e39f5dad098376c1beb4a56604aa655
[clangd] Don't run the prepare for tweaks that are disabled.

Summary: Previously, we ran the prepare, even for the tweaks that are disabled.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

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

llvm-svn: 365882
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/refactor/Tweak.cpp
clang-tools-extra/clangd/refactor/Tweak.h
clang-tools-extra/clangd/tool/ClangdMain.cpp