[all-commits] [llvm/llvm-project] 445034: [clang-tidy] Skip union-like classes in use-equals...

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Tue Sep 6 13:20:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44503482e0af189d3a7fc57b80238ea4151992b9
      https://github.com/llvm/llvm-project/commit/44503482e0af189d3a7fc57b80238ea4151992b9
  Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-copy.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default.cpp

  Log Message:
  -----------
  [clang-tidy] Skip union-like classes in use-equals-default

Skip unions/union-like classes since in this case constructors
with empty bodies behave differently in comparison with regular
structs/classes.

Test plan: ninja check-clang-tools

Differential revision: https://reviews.llvm.org/D132713




More information about the All-commits mailing list