[PATCH] D67496: [clangd] Collect macros in the preamble region of the main file

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 06:31:21 PDT 2019


hokein created this revision.
hokein added a reviewer: ilya-biryukov.
Herald added subscribers: kadircet, arphaman, mgrang, jkorous, MaskRay.
Herald added a project: clang.

- store all macro references in the ParsedAST, which also helps to implement find references for macros.
- unify the two variants of CollectMainFileMacros.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67496

Files:
  clang-tools-extra/clangd/CodeComplete.cpp
  clang-tools-extra/clangd/Macro.h
  clang-tools-extra/clangd/ParsedAST.cpp
  clang-tools-extra/clangd/ParsedAST.h
  clang-tools-extra/clangd/Preamble.cpp
  clang-tools-extra/clangd/Preamble.h
  clang-tools-extra/clangd/SemanticHighlighting.cpp
  clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
  clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67496.219901.patch
Type: text/x-patch
Size: 18976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190912/34ed255e/attachment-0001.bin>


More information about the cfe-commits mailing list