Skip to content

Make most namespace-scope operators hidden friends#825

Merged
fabianbs96 merged 7 commits intosecure-software-engineering:developmentfrom
fabianbs96:f-HiddenFriendOperators
Apr 17, 2026
Merged

Make most namespace-scope operators hidden friends#825
fabianbs96 merged 7 commits intosecure-software-engineering:developmentfrom
fabianbs96:f-HiddenFriendOperators

Conversation

@fabianbs96
Copy link
Copy Markdown
Member

No description provided.

bool operator<(const DOTNode &Lhs, const DOTNode &Rhs);
bool operator==(const DOTNode &Lhs, const DOTNode &Rhs);
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const DOTNode &Node);
friend bool operator<(const DOTNode &Lhs, const DOTNode &Rhs);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note: without a direct implementation this is not a hidden friend 😉
Please double check where it could make sense to move the impl. otherwise, keeping the free function is fine.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, wasn't aware of that^^.
Thanks!

@fabianbs96 fabianbs96 merged commit 201012b into secure-software-engineering:development Apr 17, 2026
14 checks passed
@fabianbs96 fabianbs96 deleted the f-HiddenFriendOperators branch April 17, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants