Skip to content

Format code with clang-format 21 - #2247

Merged
Rangi42 merged 2 commits into
gbdev:masterfrom
Rangi42:formatting
Nov 21, 2026
Merged

Rangi42 merged 2 commits into
gbdev:masterfrom
Rangi42:formatting

Conversation

@Rangi42

@Rangi42 Rangi42 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Redo of #2186, now that actions/runner-images#14748 has upgraded ubuntu-latest to 26.04, which comes with clang-format 21.

I slightly preferred the old clang-format-18 style:

my_function(MyStruct {
    fields: values,
});

to the new one:

my_function(
    MyStruct {
        fields: values
    }
);

but after testing and research, I think this is an unconfigurable aspect of how clang-format works now (as llvm/llvm-project#164951 also ran into). Possibly a newer version will add properties to make it configurable, but for now, I don't mind this changed default too much.

@Rangi42 Rangi42 added the meta This isn't related to the tools directly: repo organization, maintainership... label Nov 20, 2026
@Rangi42
Rangi42 merged commit a6a70bb into gbdev:master Nov 21, 2026
31 checks passed
@Rangi42
Rangi42 deleted the formatting branch November 21, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta This isn't related to the tools directly: repo organization, maintainership...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant