[clang-tools-extra] [clang-tidy] Improve modernize-use-equals-default check to handle explicit parent constructor calls (PR #226456)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 04:48:30 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: serge-sans-paille
<details>
<summary>Changes</summary>
Now capture this pattern:
struct Base {};
struct C : Base {
C() : Base() {}
};
And turn it into
struct Base {};
struct C : Base {
C() = default;
};
---
Full diff: https://github.com/llvm/llvm-project/pull/226456.diff
3 Files Affected:
- (modified) clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp (+10-6)
- (modified) clang-tools-extra/docs/ReleaseNotes.md (+3)
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default.cpp (+16)
``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````
</details>
https://github.com/llvm/llvm-project/pull/226456
More information about the cfe-commits
mailing list