This prevents selection of empty preprocessor entities (like #define directives,or text in disabled sections) creating a selection in the parent element.
Based on D83508 by Aleksandr Platonov.
Paths
| Differential D84012
[clangd] Exclude preprocessed-to-nothing tokens from selection ClosedPublic Authored by sammccall on Jul 17 2020, 3:16 AM.
Details Summary This prevents selection of empty preprocessor entities (like #define directives,or text in disabled sections) creating a selection in the parent element. Based on D83508 by Aleksandr Platonov.
Diff Detail
Event Timelinesammccall added a parent revision: D84009: [Syntax] expose API for expansions overlapping a spelled token range..Jul 17 2020, 3:18 AM sammccall retitled this revision from [clangd] Exclude preprocessed-to-nothing tokens from selection
This prevents selection of empty preprocessor entities (like #define directives,
or text in disabled sections) creating a selection in the parent element. to [clangd] Exclude preprocessed-to-nothing tokens from selection. Comment Actions LGTM, thanks!
This revision is now accepted and ready to land.Jul 17 2020, 3:44 AM Closed by commit rG72f2fb1db4ea: [clangd] Exclude preprocessed-to-nothing tokens from selection (authored by sammccall). · Explain WhyJul 20 2020, 5:52 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 279209 clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/unittests/SelectionTests.cpp
|
nit: reduce nesting via