aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAleksandr Platonov <platonov.aleksandr@huawei.com>2021-01-14 11:35:38 +0300
committerAleksandr Platonov <platonov.aleksandr@huawei.com>2021-01-14 15:10:17 +0300
commit2e25be0b6134e9544f7cee7bb7b31a921ca37cc0 (patch)
treebf2a58436eb1c1b22a7adc2f2ecbf8fd40b961fb /clang/lib/Frontend/CompilerInvocation.cpp
parent7c30c05ff71d062f0b8a05b7c3c12ede2c285371 (diff)
downloadllvm-2e25be0b6134e9544f7cee7bb7b31a921ca37cc0.zip
llvm-2e25be0b6134e9544f7cee7bb7b31a921ca37cc0.tar.gz
llvm-2e25be0b6134e9544f7cee7bb7b31a921ca37cc0.tar.bz2
[clangd] Add main file macros into the main-file index.
This patch is a try to fix `WorkspaceSymbols.Macros` test after D93796. If a macro definition is in the preamble section, then it appears to be in the preamble (static) index and not in the main-file (dynamic) index. Thus, a such macro could not be found at a symbol search according to the logic that we skip symbols from the static index if the location of these symbols is inside the dynamic index files. To fix this behavior this patch adds main file macros into the main-file (dynamic) index. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D94477
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions