[all-commits] [llvm/llvm-project] 508c43: [SemaCXX] Validate destructor is valid for depende...

Roy Jacobson via All-commits all-commits at lists.llvm.org
Tue Aug 2 11:51:09 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 508c431ed9ab6d2074f1c68e3ee6b245ece57d5a
  Author: Roy Jacobson <roi.jacobson1 at gmail.com>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/SemaCXX/member-class-11.cpp

  Log Message:
  [SemaCXX] Validate destructor is valid for dependent classes

We didn't check that a destructor's name matches the directly enclosing class if the class was dependent.
I enabled the check we already had for non-dependent types, which seems to work. Added appropriate tests.

Fixes GitHub issue #56772

Reviewed By: erichkeane

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

More information about the All-commits mailing list