Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with friends from multiple classes #8037

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

LarryOsterman
Copy link
Member

No description provided.

@LarryOsterman LarryOsterman requested a review from a team as a code owner April 9, 2024 00:01
@LarryOsterman LarryOsterman enabled auto-merge (squash) April 9, 2024 00:10
clang::FriendDecl const* friendDecl,
std::string const& parentNodeNavigationId)
{
std::string navigationId = parentNodeNavigationId + "_friend_";
Copy link
Member

Choose a reason for hiding this comment

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

Can the parentNodeNavigationId be ""? Can we assert these premises.

Copy link
Member Author

Choose a reason for hiding this comment

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

It cannot be empty, I'll add an error message if it is.

@@ -1318,6 +1318,45 @@ static std::string GetNavigationId(clang::FunctionDecl const* func)
return navigationId;
}

static std::string GetNavigationId(
Copy link
Member

Choose a reason for hiding this comment

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

Add function comment

friendDecl->dump(llvm::outs());
}
}
return navigationId;
Copy link
Member

Choose a reason for hiding this comment

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

If you end up in the final else of the initial if/else then you could end up with navigationId being <parentNodeId>_friend_. Is a navigationId ending in "_" a valid format?

Copy link
Member Author

Choose a reason for hiding this comment

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

All strings are valid, the only restriction is that the names must be unique.

@LarryOsterman LarryOsterman merged commit e99e474 into Azure:main Apr 9, 2024
13 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.

2 participants