Repository navigation
Reject every interface member that has a reserved name - #528
Open
philipcraig wants to merge 2 commits into
Open
philipcraig wants to merge 2 commits into
philipcraig wants to merge 2 commits into
Conversation
A static member function, data member, alias, nested type or template with a reserved name was accepted and ignored. The check now covers every public member, including the enumerators of an unscoped enumeration and the members of an anonymous union.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #528 +/- ##
==========================================
+ Coverage 95.69% 95.72% +0.02%
==========================================
Files 11 11
Lines 929 935 +6
Branches 31 31
==========================================
+ Hits 889 895 +6
Misses 28 28
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
philipcraig
marked this pull request as ready for review
November 28, 2026 19:53
philipcraig
enabled auto-merge (squash)
November 28, 2026 19:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #452.
Option 2 from the issue: an interface with a public member of a reserved name is rejected, whatever kind of member it is. A static member function, data member, type alias, nested type or template named
allocator_type,get_allocator,swap,protocolorprotocol_viewwas accepted and ignored.members_ofreturns neither the enumerators of an unscoped enumeration nor the members of an anonymous union, so the check visits those too.Private members are still ignored, as they are everywhere else (#451).