[all-commits] [llvm/llvm-project] 083e3a: [clang-tidy] Skip unions in use-equals-default
Alexander Shaposhnikov via All-commits
all-commits at lists.llvm.org
Tue Aug 23 13:15:26 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 083e3a173d9e9d71733e0445e6f4a93e7f918dfa
https://github.com/llvm/llvm-project/commit/083e3a173d9e9d71733e0445e6f4a93e7f918dfa
Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
Date: 2022-08-23 (Tue, 23 Aug 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 unions in use-equals-default
For unions constructors with empty bodies behave differently
(in comparison with structs/classes) and clang-tidy's fix
might break the code. This diff adjusts the check to skip unions
for now (it seems to be a relatively rare case).
Test plan: ninja check-all
Differential revision: https://reviews.llvm.org/D132290
More information about the All-commits
mailing list