This first version only uses bracket matching.
We plan to extend this to use DirectiveTree as well.
Also includes changes to Token to allow retrieving corresponding token
in token stream of original source file.
Paths
| Differential D129648
Use pseudo parser for folding ranges ClosedPublic Authored by usaxena95 on Jul 13 2022, 8:08 AM.
Details
Summary This first version only uses bracket matching. Also includes changes to Token to allow retrieving corresponding token
Diff Detail
Event Timeline
usaxena95 marked 15 inline comments as done. Comment ActionsAddressed comments.
This revision is now accepted and ready to land.Jul 18 2022, 1:44 AM Closed by commit rG70914aa63156: Use pseudo parser for folding ranges (authored by usaxena95). · Explain WhyJul 18 2022, 2:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 445432 clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/SemanticSelection.h
clang-tools-extra/clangd/SemanticSelection.cpp
clang-tools-extra/clangd/unittests/SemanticSelectionTests.cpp
clang-tools-extra/pseudo/include/clang-pseudo/Token.h
clang-tools-extra/pseudo/lib/CMakeLists.txt
clang-tools-extra/pseudo/lib/Lex.cpp
clang-tools-extra/pseudo/unittests/TokenTest.cpp
|
It should rather be up to the clangPseudo target to specify its include directories, if it doesn't already
I think interface_include_directories() is the right function (though knowing llvm maybe it's wrapped somehow)
https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.html