[clangd] Store offsets in MacroOccurrence
authorHaojian Wu <hokein.wu@gmail.com>
Fri, 23 Jun 2023 07:08:35 +0000 (09:08 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 23 Jun 2023 07:21:08 +0000 (09:21 +0200)
commit7298bcf7f06145e2d4dfdb177b94dc42fc95dc55
treedf4e5166e49226a19d74e4f5dd97d6d194d750e4
parent1fb0707da6e7c8a2a8981e52fb405a047c6df726
[clangd] Store offsets in MacroOccurrence

Remove the existing `Rng` field.

From the review comment: https://reviews.llvm.org/D147034

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D153259
clang-tools-extra/clangd/CollectMacros.cpp
clang-tools-extra/clangd/CollectMacros.h
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/unittests/CollectMacrosTests.cpp
clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
clang-tools-extra/clangd/unittests/PreambleTests.cpp