Skip to content

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 requested a review from abadams June 23, 2023 23:56
@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.

3 participants