[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-12 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL365882: [clangd] Don't run the prepare for tweaks that are disabled. (authored by hokein, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-12 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 209429. hokein added a comment. Address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64565/new/ https://reviews.llvm.org/D64565 Files: clang-tools-extra/clangd/ClangdServer.cpp clang-tools-extra/

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-11 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/ClangdServer.h:138 +std::function TweakFilter = [](const Tweak &T) { + return true; // always enabled all tweaks. +

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/clangd/ClangdServer.h:136 -/// Returns true if the StringRef is a tweak that should be enabled -std::function TweakFilter = [](llvm::StringRef TweakToSearch) {return true;}; +/// Returns true if the String

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 209223. hokein marked 3 inline comments as done. hokein added a comment. Address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64565/new/ https://reviews.llvm.org/D64565 Files: clang-tools-extra/cla

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-11 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang-tools-extra/clangd/ClangdServer.h:136 -/// Returns true if the StringRef is a tweak that should be enabled -std::function TweakFilter = [](llvm::StringRef TweakToSearch) {return true;}; +/// Returns true if the

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 209216. hokein added a comment. Simplify the code further based on offline discussion. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64565/new/ https://reviews.llvm.org/D64565 Files: clang-tools-extra/clangd/

[PATCH] D64565: [clangd] Don't run the prepare for tweaks that are disabled.

2019-07-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ilya-biryukov. Herald added a project: clang. Previously, we ran the prepare, even for the tweaks that are disabled. Repository: rG LLVM Github Monorepo https://re