The first use of this is a code tweak to expand macro calls.
Will later be used to build syntax trees.
The memory overhead is small as we only store tokens of the main file.
Paths
| Differential D62956
[clangd] Collect tokens of main files when building the AST ClosedPublic Authored by ilya-biryukov on Jun 6 2019, 7:25 AM.
Details Summary The first use of this is a code tweak to expand macro calls. The memory overhead is small as we only store tokens of the main file.
Diff Detail
Event Timelineilya-biryukov added a child revision: D61681: [clangd] A code tweak to expand a macro.Jun 6 2019, 7:26 AM Comment Actions Can we add a test using TestTU that does a very basic verification of expanded/spelled tokens (first after preamble, last token in file)?
This revision is now accepted and ready to land.Jun 18 2019, 1:56 AM ilya-biryukov marked an inline comment as done. Comment Actions
Comment Actions
Done. Will land this tomorrow, want to run it over all of LLVM first to give the token-building code some coverage. Closed by commit rL363803: [clangd] Collect tokens of main files when building the AST (authored by ibiryukov). · Explain WhyJun 19 2019, 7:01 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 205579 clang-tools-extra/trunk/clangd/CMakeLists.txt
clang-tools-extra/trunk/clangd/ClangdUnit.h
clang-tools-extra/trunk/clangd/ClangdUnit.cpp
clang-tools-extra/trunk/clangd/tool/CMakeLists.txt
clang-tools-extra/trunk/clangd/unittests/CMakeLists.txt
clang-tools-extra/trunk/clangd/unittests/ClangdUnitTests.cpp
|