[all-commits] [llvm/llvm-project] 70914a: Use pseudo parser for folding ranges

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Mon Jul 18 02:35:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70914aa631561aa9a29681bfe5159b4ea6952060
      https://github.com/llvm/llvm-project/commit/70914aa631561aa9a29681bfe5159b4ea6952060
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M clang-tools-extra/clangd/CMakeLists.txt
    M clang-tools-extra/clangd/SemanticSelection.cpp
    M clang-tools-extra/clangd/SemanticSelection.h
    M clang-tools-extra/clangd/unittests/SemanticSelectionTests.cpp
    M clang-tools-extra/pseudo/include/clang-pseudo/Token.h
    M clang-tools-extra/pseudo/lib/CMakeLists.txt
    M clang-tools-extra/pseudo/lib/Lex.cpp
    M clang-tools-extra/pseudo/unittests/TokenTest.cpp

  Log Message:
  -----------
  Use pseudo parser for folding ranges

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.

Differential Revision: https://reviews.llvm.org/D129648




More information about the All-commits mailing list