[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-22 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE351792: [clangd] Support clang-tidy configuration in clangd. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D55256?vs=182778&id=182862#toc Repository: rCTE C

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-22 Thread Haojian Wu via Phabricator via cfe-commits
hokein marked an inline comment as done. hokein added inline comments. Comment at: clangd/ClangdLSPServer.h:132 - RealFileSystemProvider FSProvider; /// Options used for code completion ilya-biryukov wrote: > hokein wrote: > > sammccall wrote: > > > ilya-bi

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-21 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdLSPServer.h:132 - RealFileSystemProvider FSProvider; /// Options used for code completion hokein wrote: > sammccall wrote: > > ilya-biryukov wrote: > > > Could we instead call `getRealFS()` when

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-21 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/tool/ClangdMain.cpp:438 + auto OverrideClangTidyOptions = tidy::ClangTidyOptions::getDefaults(); + if (!ClangTidyChecks.empty()) +OverrideClangTidyOptions.Checks = ClangTidyChecks; sammccall wrote: > This pre

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-21 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 182778. hokein marked 5 inline comments as done. hokein added a comment. Address comments. Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55256/new/ https://reviews.llvm.org/D55256 Files: clangd/ClangdLSPServer

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. Comment at: clangd/tool/ClangdMain.cpp:204 +static llvm::cl::opt ClangTidyChecks( +"clang-tidy-checks", hokein wrote: > sammccall wrote: > > Maybe add a TODO or FIXME to respect .clang-tidy

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-21 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/ClangdLSPServer.h:132 - RealFileSystemProvider FSProvider; /// Options used for code completion sammccall wrote: > ilya-biryukov wrote: > > Could we instead call `getRealFS()` when we try to initialize a clan

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-21 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 182768. hokein marked 7 inline comments as done. hokein added a comment. Address review comments. Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55256/new/ https://reviews.llvm.org/D55256 Files: clangd/ClangdLS

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Nice! I think we should get to `.clang-tidy` files subsequently, but this is a great start and allows us to hook up the right set of checks in other environments. Com

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-14 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Just a small comment wrt to a particular change in `ClangdLSPServer`. I haven't looked at the patch more closely, though. Comment at: clangd/ClangdLSPServer.h:132 - RealFileSystemProvider FSProvider; /// Options used for code completion ---

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. I think this patch is ready for review now. ClangTidy configurations are complicated, and we aim to support only a small subset of them (most are about controlling which checks are going to run in clangd). I'd like to get some initial feedbacks before making further chan

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2019-01-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 181232. hokein added a comment. Rebase Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55256/new/ https://reviews.llvm.org/D55256 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServe

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2018-12-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 176591. hokein added a comment. Minor cleanup Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55256/new/ https://reviews.llvm.org/D55256 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Clan

[PATCH] D55256: [clangd] Support clang-tidy configuration in clangd.

2018-12-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: ilya-biryukov. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ioeric, javed.absar. Clangd will support a minimal set of clang-tidy configurations - respect .clang-tidy for each file - add a `clang-tidy-checks` CLI option tha