[all-commits] [llvm/llvm-project] 81dae1: [clangd] Allow AST request without range

Sam McCall via All-commits all-commits at lists.llvm.org
Fri Apr 23 12:36:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81dae18dff7fe8c2783c7b73e5c08167d6c60b47
      https://github.com/llvm/llvm-project/commit/81dae18dff7fe8c2783c7b73e5c08167d6c60b47
  Author: Christian Kandeler <christian.kandeler at qt.io>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M clang-tools-extra/clangd/ClangdServer.cpp
    M clang-tools-extra/clangd/ClangdServer.h
    M clang-tools-extra/clangd/DumpAST.cpp
    M clang-tools-extra/clangd/DumpAST.h
    M clang-tools-extra/clangd/Protocol.h
    A clang-tools-extra/clangd/test/ast-no-range.test
    M clang-tools-extra/clangd/unittests/DumpASTTests.cpp

  Log Message:
  -----------
  [clangd] Allow AST request without range

If no range is given, return the translation unit AST.
This is useful for tooling operations that require e.g. the full path to
a node.

Reviewed By: sammccall

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




More information about the All-commits mailing list