[all-commits] [llvm/llvm-project] 80dec2: [Clang] Modify CXXMethodDecl::isMoveAssignmentOper...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu Jul 14 16:10:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80dec2ecfffe30f86ecfeec8f553b16bb992c48b
      https://github.com/llvm/llvm-project/commit/80dec2ecfffe30f86ecfeec8f553b16bb992c48b
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/DeclCXX.cpp
    M clang/test/SemaCXX/cxx0x-defaulted-functions.cpp

  Log Message:
  -----------
  [Clang] Modify CXXMethodDecl::isMoveAssignmentOperator() to look through type sugar
AcceptedPublic

Currently CXXMethodDecl::isMoveAssignmentOperator() does not look though type
sugar and so if the parameter is a type alias it will not be able to detect
that the method is a move assignment operator. This PR fixes that and adds a set
of tests that covers that we correctly detect special member functions when
defaulting or deleting them.

This fixes: https://github.com/llvm/llvm-project/issues/56456

Differential Revision: https://reviews.llvm.org/D129591




More information about the All-commits mailing list