[PATCH] D80198: [clangd] locateMacroAt handles patched macros

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 25 10:42:35 PDT 2020


kadircet updated this revision to Diff 266047.
kadircet marked 3 inline comments as done.
kadircet added a comment.

Instead of re-lexing at use time, put macro identifier on correct column while
patching and make use of presumed locations at use time.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80198/new/

https://reviews.llvm.org/D80198

Files:
  clang-tools-extra/clangd/Headers.cpp
  clang-tools-extra/clangd/Hover.cpp
  clang-tools-extra/clangd/Preamble.cpp
  clang-tools-extra/clangd/SourceCode.cpp
  clang-tools-extra/clangd/SourceCode.h
  clang-tools-extra/clangd/XRefs.cpp
  clang-tools-extra/clangd/refactor/Rename.cpp
  clang-tools-extra/clangd/unittests/CollectMacrosTests.cpp
  clang-tools-extra/clangd/unittests/PreambleTests.cpp
  clang-tools-extra/clangd/unittests/SourceCodeTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80198.266047.patch
Type: text/x-patch
Size: 21000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200525/9c37838a/attachment-0001.bin>


More information about the cfe-commits mailing list