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 D142125
[clang] Fix the location of UsingTypeLoc. Authored by hokein on Jan 19 2023, 8:14 AM.
Details
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;
Diff Detail
Unit Tests |