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;
Paths
| Differential D142125
[clang] Fix the location of UsingTypeLoc. ClosedPublic Authored by hokein on Jan 19 2023, 8:14 AM.
Details
Summary 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
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 19 2023, 8:14 AM This revision is now accepted and ready to land.Jan 23 2023, 1:24 AM This revision was landed with ongoing or failed builds.Jan 23 2023, 3:53 AM Closed by commit rGebbeb164c25a: [clang] Fix the location of UsingTypeLoc. (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 491291 clang-tools-extra/clangd/unittests/SelectionTests.cpp
clang/lib/Sema/SemaType.cpp
|