Skip to content

Conversation

@abadams
Copy link
Member

@abadams abadams commented Nov 18, 2025

Most of the cases where we disable clang-format were unnecessary or could be addressed in other ways (e.g. a trailing comment after EVAL_IN_LAMBDA). Happy to revert any of these changes if people think it's worth disabling clang-format in these cases. I left in uses of clang-format off when it was necessary to preserve include order, or to keep things that read best as one-liners on one line.

No functional changes intended.

#endif
#ifndef WEBGPU_H_
#define WEBGPU_H_

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we put the clang-format comments in the *_mini.h files? Or were they there when we vendored them? Actually... did we vendor all of them?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't vendor all of them. For some of them with large APIs we just extern declared the things we use. Looks like for mini_webgpu.h Steven added a clang-format off with a note about some configurations really wanting to reformat that file despite it being in clang-format-ignore. Hopefully that's not an issue anymore.

Copy link
Member

@alexreinking alexreinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice! I especially like the formatting improvements in the simplifier.


static const uint8_t hexagon_plt1[] = {
// clang-format off

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI's version of clang-format still really wants these.

@abadams abadams merged commit bd5b85f into main Nov 24, 2025
18 of 19 checks passed
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