[all-commits] [llvm/llvm-project] 2bb34c: [clangd] FindTarget: UsingEnumDecl is not an alias

Sam McCall via All-commits all-commits at lists.llvm.org
Sat Oct 8 10:30:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bb34cc462ff857576a8145edc89ad2bdd1f4396
      https://github.com/llvm/llvm-project/commit/2bb34cc462ff857576a8145edc89ad2bdd1f4396
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-10-08 (Sat, 08 Oct 2022)

  Changed paths:
    M clang-tools-extra/clangd/FindTarget.cpp
    M clang-tools-extra/clangd/unittests/FindTargetTests.cpp

  Log Message:
  -----------
  [clangd] FindTarget: UsingEnumDecl is not an alias

Unlike UsingDecl it doesn't name the UsingShadowDecls it emits, so it doesn't
make sense to consider them the same thing. Don't consider the UsingEnumDecl
a target when the UsingShadowDecl is referenced.

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




More information about the All-commits mailing list