[all-commits] [llvm/llvm-project] 5649b2: [clangd] Fix an assertion failure in NamedDecl::ge...

Haojian Wu via All-commits all-commits at lists.llvm.org
Fri Jul 14 00:18:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5649b24c48ab3b48c1cb89155626a7f128c3f598
      https://github.com/llvm/llvm-project/commit/5649b24c48ab3b48c1cb89155626a7f128c3f598
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

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

  Log Message:
  -----------
  [clangd] Fix an assertion failure in NamedDecl::getName during the prepareRename

getName method required to be called on a simple-identifier NamedDecl,
otherwise it will trigger an assertion.

Reviewed By: kadircet

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




More information about the All-commits mailing list