[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL353054: [clangd] Enable include insertion for static index (authored by kadircet, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Repository: rL LLVM CHANGES SINC

[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 185052. kadircet added a comment. - Delete unnecessary include Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57508/new/ https://reviews.llvm.org/D57508 Files: clangd/ClangdServer.cpp clangd/ClangdUnit.cpp

[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet marked an inline comment as done. kadircet added a comment. I don't think so, since the only reason this already wasn't enabled was because there was a fixme ? Also we want people to use -background-index by default in future so I think it should be OK Repository: rCTE Clang Tools E

[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lgtm. Note that this will enable include insertions for everyone (even without index switched on). Not sure if we should provide options. Comment at: clangd/ClangdServer.cp

[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clangd/ClangdUnit.cpp:100 + : File(File), ParsedCallback(ParsedCallback), +IWYUHandler(collectIWYUHeaderMaps(&CanonIncludes)) {} ioeric wrote: > Does this have to own the `IWYUHandler`? Could we create on

[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 185030. kadircet marked 6 inline comments as done. kadircet added a comment. - Address comments. - Call addSystemHeaderMappings when we are building ast without preamble. Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm

[PATCH] D57508: [clangd] Enable include insertion for dynamic index

2019-02-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Herald added a project: clang. Comment at: clangd/ClangdUnit.cpp:100 + : File(File), ParsedCallback(ParsedCallback), +IWYUHandler(collectIWYUHeaderMaps(&CanonIncludes)) {} Does this have to own the `IWYUHandler`? Could