[all-commits] [llvm/llvm-project] 52fe03: Reland: [clang] NFC: Clear some uses of MemberPoin...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Thu Mar 20 18:21:40 PDT 2025


  Branch: refs/heads/users/mizvekov/clang-memptrtype-getclass
  Home:   https://github.com/llvm/llvm-project
  Commit: 52fe0380be295619f3c914e0ad4233d66dd7f361
      https://github.com/llvm/llvm-project/commit/52fe0380be295619f3c914e0ad4233d66dd7f361
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-03-20 (Thu, 20 Mar 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/ComparePointerToMemberVirtualFunctionCheck.cpp
    M clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.cpp
    M clang/include/clang/AST/CanonicalType.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/MicrosoftMangle.cpp
    M clang/lib/AST/Type.cpp
    M clang/lib/CodeGen/CGCXXABI.cpp
    M clang/lib/CodeGen/CGClass.cpp
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGExprCXX.cpp
    M clang/lib/CodeGen/CodeGenTypes.cpp
    M clang/lib/CodeGen/ItaniumCXXABI.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaStmt.cpp

  Log Message:
  -----------
  Reland: [clang] NFC: Clear some uses of MemberPointerType::getClass

Original PR: https://github.com/llvm/llvm-project/pull/131965
Addresses https://github.com/llvm/llvm-project/pull/131965#issuecomment-2741619498
* Fixes isIncompleteType for injected classes

This clears up some uses of getClass on MemberPointerType when
equivalent uses of getMostRecentCXXRecordDecl would be just as
simple or simpler.

This is split-off from a larger patch which removes getClass,
in order to facilitate review.


  Commit: 4a6142c712f5b582a4acf54f8764f3d02d3ede0d
      https://github.com/llvm/llvm-project/commit/4a6142c712f5b582a4acf54f8764f3d02d3ede0d
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-03-20 (Thu, 20 Mar 2025)

  Changed paths:
    M clang/lib/AST/Type.cpp
    A clang/test/SemaCXX/ms-member-pointer.cpp

  Log Message:
  -----------
  fixup! [clang] NFC: Clear some uses of MemberPointerType::getClass


Compare: https://github.com/llvm/llvm-project/compare/52fe0380be29%5E...4a6142c712f5

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