[all-commits] [llvm/llvm-project] ebbeb1: [clang] Fix the location of UsingTypeLoc.

Haojian Wu via All-commits all-commits at lists.llvm.org
Mon Jan 23 03:54:00 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebbeb164c25a40cb6ba9c6b18dce5dcd06c0bb07
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2023-01-23 (Mon, 23 Jan 2023)

  Changed paths:
    M clang-tools-extra/clangd/unittests/SelectionTests.cpp
    M clang/lib/Sema/SemaType.cpp

  Log Message:
  [clang] Fix the location of UsingTypeLoc.

It is revealed by the https://reviews.llvm.org/D141280.

namespace ns { class Foo {}; }
using ns::Foo;

// Before the fix, the Location of UsingTypeLoc Foo points to the
token "class", slection on ^Foo will result in the VarDecl abc.
class Foo abc;


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

More information about the All-commits mailing list