Skip to content

[plugins][nfc] Drop redundant public from struct inheritance. 1/5#23769

Merged
hanhanW merged 1 commit intomainfrom
users/hanhanW/drop-public-plugins
Mar 13, 2026
Merged

[plugins][nfc] Drop redundant public from struct inheritance. 1/5#23769
hanhanW merged 1 commit intomainfrom
users/hanhanW/drop-public-plugins

Conversation

@hanhanW
Copy link
Contributor

@hanhanW hanhanW commented Mar 12, 2026

public is the default access specifier for struct inheritance in C++, so struct Foo : public Bar is equivalent to struct Foo : Bar.

`public` is the default access specifier for struct inheritance in C++,
so `struct Foo : public Bar` is equivalent to `struct Foo : Bar`.

Signed-off-by: hanhanW <[email protected]>
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

Most of these, if not all, can be made final. I wish we had a clang-tidy check for this.

@hanhanW hanhanW merged commit 9716751 into main Mar 13, 2026
60 checks passed
@hanhanW hanhanW deleted the users/hanhanW/drop-public-plugins branch March 13, 2026 00:25
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