Fixed SelectionTree bug for macros
- Fixed SelectionTree claimRange for macros and template instantiations
- Fixed SelectionTree unit tests
| Paths 
 |  Differential  D64329  
[Clangd] Fixed SelectionTree bug for macros ClosedPublic Authored by SureYeaah on Jul 8 2019, 6:29 AM. 
Details Summary Fixed SelectionTree bug for macros 
 
Diff Detail 
 Event Timeline
 SureYeaah marked 6 inline comments as done.Comment Actions Changed claimRange to use toHalfOpenFileRange Comment Actions Just doc nits I think. This eliminates a semi-fast path (that uses approximate token matching to avoid running the lexer in claimRange sometimes) but I think we can live without it. 
 This revision is now accepted and ready to land.Jul 19 2019, 4:06 AM Closed by commit rL366566: [Clangd] Fixed SelectionTree bug for macros (authored by SureYeaah).  ·  Explain WhyJul 19 2019, 4:40 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 210783 clang-tools-extra/clangd/Selection.cpp
 clang-tools-extra/clangd/unittests/SelectionTests.cpp
 clang-tools-extra/clangd/unittests/TweakTests.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I'm not sure why the FIXME is on this function, it can't be fixed here.
If you're not sure where to put it, I'd suggest putting the FIXME on the unit test that shows the wrong behavior.