[all-commits] [llvm/llvm-project] 3b8fb4: [clangd][NFCI] Store TUPath inside ParsedAST

kadir ├žetinkaya via All-commits all-commits at lists.llvm.org
Fri Jul 29 04:24:20 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b8fb471cbbd704e3066b3cb7dddb755cad11b8b
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M clang-tools-extra/clangd/Hover.cpp
    M clang-tools-extra/clangd/ParsedAST.cpp
    M clang-tools-extra/clangd/ParsedAST.h
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/XRefs.h
    M clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp

  Log Message:
  [clangd][NFCI] Store TUPath inside ParsedAST

Lots of features built on top of ASTs require getting back to the path
of the TU and they used lossy conversion from file ids using sourcemanager.
This patch preserves the file path passed by the caller inside ParsedAST for
later use.

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

More information about the All-commits mailing list