~pali/llvm/clang-tools-extra-trunk

Viewing all changes in revision 4760.

  • Committer: ibiryukov
  • Date: 2019-06-19 14:03:19 UTC
  • Revision ID: svn-v4:91177308-0d34-0410-b5e6-96231b3b80d8:clang-tools-extra/trunk:363803
[clangd] Collect tokens of main files when building the AST

Summary:
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.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: mgorny, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: