Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable clang-tidy's modernize-use-default-member-init check #7662

Merged
merged 18 commits into from
Jun 26, 2023

Conversation

steven-johnson
Copy link
Contributor

This check converts constructors’ member initializers into the new default member initializers in C++11. Other member initializers that match the default member initializer are removed. This can reduce repeated code or allow use of ‘= default’. (https://releases.llvm.org/16.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/use-default-member-init.html)

This is a check that we considered enabling several versions ago but it produced weird and wonky results that we didn't like. This version seems pretty reasonable to me (I think that this style is generally preferable). What do other folks think?

@steven-johnson steven-johnson marked this pull request as ready for review June 24, 2023 01:34
Base automatically changed from srj/fmt-tidy-16 to main June 24, 2023 01:34
@steven-johnson steven-johnson merged commit c7ca15f into main Jun 26, 2023
@steven-johnson steven-johnson deleted the srj/init branch June 26, 2023 22:22
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
)

* Upgrade clang-format and clang-tidy to use v16

(Skipping over 15 entirely in favor of the newest stable version)

* Update presubmit.yml

* Update .clang-tidy

* Update .clang-tidy

* fixes

* Update run-clang-tidy.sh

* Update .clang-tidy

* Update .clang-tidy

* fixes

* Update .clang-tidy

* Update PyHalide.cpp

* Update run-clang-tidy.sh

* Update CodeGen_Vulkan_Dev.cpp

* Update .clang-tidy

* fix

* format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants