[all-commits] [llvm/llvm-project] f24649: [clangd] Don't set the Underlying bit on targets o...

Haojian Wu via All-commits all-commits at lists.llvm.org
Wed Oct 7 01:04:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f24649b77d856157c64841457dcc4f70530d607c
      https://github.com/llvm/llvm-project/commit/f24649b77d856157c64841457dcc4f70530d607c
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

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

  Log Message:
  -----------
  [clangd] Don't set the Underlying bit on targets of UsingDecls.

With this patch, we don't treat `using ns::X` as a first-class declaration like `using Z = ns::Y`, reference to X that goes through this using-decl is considered a direct reference (without the Underlying bit).

Fix the workaround in https://reviews.llvm.org/D87225 and https://reviews.llvm.org/D74054.

Reviewed By: sammccall

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




More information about the All-commits mailing list