Exposed a new function, createIndexingASTConsumer, that creates an
ASTConsumer. ASTConsumers compose well.
Removed wrapping functionality from createIndexingAction.
Paths
| Differential D66878
[Index] Stopped wrapping FrontendActions in libIndex and its users ClosedPublic Authored by gribozavr on Aug 28 2019, 6:34 AM.
Details
Summary Exposed a new function, createIndexingASTConsumer, that creates an Removed wrapping functionality from createIndexingAction.
Diff Detail
Event TimelineComment Actions Overall LG, thanks! Not sure why we need to keep IndexingOptions everywhere, though, see the relevant comment.
gribozavr added inline comments.
ilya-biryukov marked an inline comment as done. Comment ActionsLGTM
This revision is now accepted and ready to land.Aug 28 2019, 10:32 AM
Revision Contents
Diff 217625 clang-tools-extra/clangd/index/IndexAction.cpp
clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
clang/include/clang/Index/IndexingAction.h
clang/lib/Index/IndexingAction.cpp
clang/tools/c-index-test/core_main.cpp
clang/tools/libclang/Indexing.cpp
|
Are these option ever used? Do we need to keep them alive for the lifetime of the action?
Might be worth a comment.