Remove the existing Rng field.
From the review comment: https://reviews.llvm.org/D147034
Paths
| Differential D153259
[clangd] Store offsets in MacroOccurrence ClosedPublic Authored by hokein on Jun 19 2023, 3:52 AM.
Details
Summary Remove the existing Rng field. From the review comment: https://reviews.llvm.org/D147034
Diff Detail
Event TimelineComment Actions thanks, lgtm!
This revision is now accepted and ready to land.Jun 22 2023, 7:12 AM This revision was landed with ongoing or failed builds.Jun 23 2023, 12:21 AM Closed by commit rG7298bcf7f061: [clangd] Store offsets in MacroOccurrence (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 533873 clang-tools-extra/clangd/CollectMacros.h
clang-tools-extra/clangd/CollectMacros.cpp
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
|
Represents an occurrence in main-file sounds like the documentation for the struct not for these fields.
what about // Half-open range (end offset is exclusive) inside the main file.. can you also move EndOffset to its own line?