[PATCH] D56903: [clangd] Suggest adding missing includes for incomplete type diagnostics.
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 18 02:19:00 PST 2019
ioeric created this revision.
ioeric added a reviewer: sammccall.
Herald added subscribers: cfe-commits, kadircet, arphaman, mgrang, jkorous, MaskRay, javed.absar, ilya-biryukov, mgorny.
This enables clangd to intercept compiler diagnostics and attach fixes (e.g. by
querying index). This patch adds missing includes for incomplete types e.g.
member access into class with only forward declaration. This would allow adding
missing includes for user-typed symbol names that are missing declarations
(e.g. typos) in the future.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D56903
Files:
clangd/CMakeLists.txt
clangd/ClangdServer.cpp
clangd/ClangdUnit.cpp
clangd/ClangdUnit.h
clangd/CodeComplete.cpp
clangd/Diagnostics.cpp
clangd/Diagnostics.h
clangd/Headers.cpp
clangd/Headers.h
clangd/IncludeFixer.cpp
clangd/IncludeFixer.h
clangd/SourceCode.cpp
clangd/SourceCode.h
unittests/clangd/CMakeLists.txt
unittests/clangd/FileIndexTests.cpp
unittests/clangd/IncludeFixerTests.cpp
unittests/clangd/TUSchedulerTests.cpp
unittests/clangd/TestTU.cpp
unittests/clangd/TestTU.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56903.182484.patch
Type: text/x-patch
Size: 26990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190118/26837c63/attachment-0001.bin>
More information about the cfe-commits
mailing list