[all-commits] [llvm/llvm-project] e913f6: [clang] fix RecursiveASTVisitor traversal from typ...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Sat Mar 22 07:32:42 PDT 2025
Branch: refs/heads/users/mizvekov/GH132401_fix
Home: https://github.com/llvm/llvm-project
Commit: e913f65241c2caa7ab099b8625605c841fbbc004
https://github.com/llvm/llvm-project/commit/e913f65241c2caa7ab099b8625605c841fbbc004
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2025-03-22 (Sat, 22 Mar 2025)
Changed paths:
M clang/include/clang/AST/RecursiveASTVisitor.h
M clang/test/SemaCXX/member-pointer.cpp
Log Message:
-----------
[clang] fix RecursiveASTVisitor traversal from type to decl
For that visitor, it is not expected that a type can traverse into
a declaration. This makes the MemberPointer visitor conform to
that rule.
This turns the base class visitor into a CXXRecordType visitor,
and only performs that visit in case it points to something different
than the qualifier does.
Fixes a regression reported here: https://github.com/llvm/llvm-project/pull/132401#issuecomment-2745184537
As this fixes a regression which has not been released, there are no release notes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list