[clang] [clang-tools-extra] [clang] improve class type sugar preservation in pointers to members (PR #130537)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 19 18:59:01 PDT 2025
================
@@ -1355,7 +1355,7 @@ class BlockPointerTypeLoc : public PointerLikeTypeLoc<BlockPointerTypeLoc,
};
struct MemberPointerLocInfo : public PointerLikeLocInfo {
- TypeSourceInfo *ClassTInfo;
+ void *QualifierData = nullptr;
----------------
mizvekov wrote:
This is actually not just an issue with NestedSpecifierLoc.
TypeLoc provides access to the opaque data through this void pointer, through the getOpaqueData method.
I added a comment there, but chances are low somebody is going to do something about it anytime soon :)
There are far worse issues just on TypeLoc itself which are still there from the initial implementation 15 years ago.
https://github.com/llvm/llvm-project/pull/130537
More information about the cfe-commits
mailing list