[PATCH] D66928: [clangd] Collecting main file macro expansion locations in ParsedAST.

Johan Vikström via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 01:02:53 PDT 2019


jvikstrom created this revision.
jvikstrom added reviewers: hokein, ilya-biryukov.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay.
Herald added a project: clang.

TokenBuffer does not collect macro expansions inside macro arguments which is needed for semantic higlighting. Therefore collects macro expansions in the main file in a PPCallback when building the ParsedAST instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66928

Files:
  clang-tools-extra/clangd/ClangdUnit.cpp
  clang-tools-extra/clangd/ClangdUnit.h
  clang-tools-extra/clangd/unittests/ClangdUnitTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66928.217789.patch
Type: text/x-patch
Size: 6249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190829/bab0610d/attachment-0001.bin>


More information about the cfe-commits mailing list