[all-commits] [llvm/llvm-project] 880531: [clangd] Speed up when building rename edit.

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Nov 26 04:47:58 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8805316172a650d62cdb6d3854ef0e54fb300ca6
      https://github.com/llvm/llvm-project/commit/8805316172a650d62cdb6d3854ef0e54fb300ca6
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2019-11-26 (Tue, 26 Nov 2019)

  Changed paths:
    M clang-tools-extra/clangd/refactor/Rename.cpp
    M clang-tools-extra/clangd/refactor/Rename.h
    M clang-tools-extra/clangd/unittests/RenameTests.cpp

  Log Message:
  -----------
  [clangd] Speed up when building rename edit.

Summary:
We used to scan the code everytime when computing the LSP position to the offset
(respect the LSP encoding). Now we only scan the source code once.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list