[all-commits] [llvm/llvm-project] 94b794: [clang] fix RecursiveASTVisitor traversal from typ...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sat Mar 22 07:31:57 PDT 2025


  Branch: refs/heads/users/mizvekov/GH132401_fix
  Home:   https://github.com/llvm/llvm-project
  Commit: 94b79402e520d7d3b7358b35858795a440f203b5
      https://github.com/llvm/llvm-project/commit/94b79402e520d7d3b7358b35858795a440f203b5
  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 introduced in https://github.com/llvm/llvm-project/pull/132401
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