For symbols defined inside macros:
- use expansion location, if the symbol is formed via macro concatenation.
- use spelling location, otherwise.
This will fix some symbols that have ill-format location (especial invalid filepath).
Paths
| Differential D42575
[clangd] Better handling symbols defined in macros. ClosedPublic Authored by hokein on Jan 26 2018, 5:48 AM.
Details Summary For symbols defined inside macros:
This will fix some symbols that have ill-format location (especial invalid filepath).
Diff Detail
Event TimelineHerald added subscribers: jkorous-apple, ilya-biryukov, klimek. · View Herald TranscriptJan 26 2018, 5:48 AM
hokein marked 4 inline comments as done. Comment Actions
Comment Actions Update test.
Comment Actions lg
This revision is now accepted and ready to land.Jan 31 2018, 3:26 AM Closed by commit rCTE323867: [clangd] Better handling symbols defined in macros. (authored by hokein). · Explain WhyJan 31 2018, 4:59 AM Closed by commit rL323867: [clangd] Better handling symbols defined in macros. (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes. This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 132143 clangd/index/SymbolCollector.cpp
unittests/clangd/Annotations.h
unittests/clangd/Annotations.cpp
unittests/clangd/SymbolCollectorTests.cpp
|
PrintLoc? PrintableLoc sounds like a checker for whether a location is printable.