diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-02 15:47:33 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-02 15:47:33 +0000 |
| commit | 73c44e45eca2e2916debad657fe67b1a9e503de4 (patch) | |
| tree | 9bdb7b1409c969ae408dc299d794424f01f265d2 /clang-tools-extra/clangd/index/SymbolCollector.cpp | |
| parent | 5c4f031d71eac890f2446f904e5bf264bbdc5cae (diff) | |
| download | bcm5719-llvm-73c44e45eca2e2916debad657fe67b1a9e503de4.tar.gz bcm5719-llvm-73c44e45eca2e2916debad657fe67b1a9e503de4.zip | |
Revert rL359778 : [clangd] Fix code completion of macros defined in the preamble region of the main file.
Summary:
This is a tricky case (we baked the assumption that symbols come from
the preamble xor mainfile pretty deeply) and the fix is a bit of a hack:
We look at the code to guess the macro names, and deserialize them from
the preamble "by hand".
Reviewers: ilya-biryukov
Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D60937
........
Fix buildbots http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/47684/
llvm-svn: 359796
Diffstat (limited to 'clang-tools-extra/clangd/index/SymbolCollector.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/SymbolCollector.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/index/SymbolCollector.cpp b/clang-tools-extra/clangd/index/SymbolCollector.cpp index b9f321727d3..05e2c5cd894 100644 --- a/clang-tools-extra/clangd/index/SymbolCollector.cpp +++ b/clang-tools-extra/clangd/index/SymbolCollector.cpp @@ -24,7 +24,6 @@ #include "clang/Basic/SourceManager.h" #include "clang/Basic/Specifiers.h" #include "clang/Index/IndexSymbol.h" -#include "clang/Index/IndexingAction.h" #include "clang/Index/USRGeneration.h" #include "clang/Lex/Preprocessor.h" #include "llvm/Support/Casting.h" |

