Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemHeadersMapping doesn't work in dynamic index #8

Closed
hokein opened this issue Feb 8, 2019 · 1 comment
Closed

SystemHeadersMapping doesn't work in dynamic index #8

hokein opened this issue Feb 8, 2019 · 1 comment
Assignees

Comments

@hokein
Copy link
Contributor

hokein commented Feb 8, 2019

In https://reviews.llvm.org/D57508, we enable include insertion in dynamic index.

Reproduce step:

  1. running clangd without any static index
  2. run code completion at
#include <vector>
std::^

Actual result:
image

Expected result: The include header should be STL header, e.g. <memory>.

Off-topic: this feature seems a bit noisy, in the sample above, completion symbols are from <vector> or headers being included transitively, the code is still compilable without the include insertion.

@kadircet
Copy link
Member

Fixed with https://reviews.llvm.org/D58029

llvm-git-migration pushed a commit to llvm/llvm-project that referenced this issue Feb 11, 2019
…back

Summary:
SystemHeaderMappings were added only after takeIncludes call, which
resulted in getting mapping on main file ast updates but not on preamble ast
updates.
Fixes clangd/clangd#8

Reviewers: hokein

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

Tags: #clang

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

llvm-svn: 353687
dtzWill pushed a commit to llvm-mirror/clang-tools-extra that referenced this issue Feb 11, 2019
…back

Summary:
SystemHeaderMappings were added only after takeIncludes call, which
resulted in getting mapping on main file ast updates but not on preamble ast
updates.
Fixes clangd/clangd#8

Reviewers: hokein

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

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@353687 91177308-0d34-0410-b5e6-96231b3b80d8
jrtc27 pushed a commit to CTSRD-CHERI/llvm-project that referenced this issue Feb 22, 2019
…back

Summary:
SystemHeaderMappings were added only after takeIncludes call, which
resulted in getting mapping on main file ast updates but not on preamble ast
updates.
Fixes clangd/clangd#8

Reviewers: hokein

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

Tags: #clang

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

llvm-svn: 353687
shrouxm pushed a commit to sourcegraph/lsif-clang that referenced this issue Jul 12, 2020
…back

Summary:
SystemHeaderMappings were added only after takeIncludes call, which
resulted in getting mapping on main file ast updates but not on preamble ast
updates.
Fixes clangd/clangd#8

Reviewers: hokein

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

Tags: #clang

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

llvm-svn: 353687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants