Skip to content

C++: Make Macro.getName() more efficient. #13333

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

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented May 31, 2023

Make Macro.getName() more efficient. Inspired by @MathiasVP s comment here. Macro names get a lot of use in CPP, so I'll do a DCA run to be sure this is safe.

@geoffw0 geoffw0 added C++ no-change-note-required This PR does not need a change note labels May 31, 2023
@geoffw0 geoffw0 requested a review from a team as a code owner May 31, 2023 12:02
@geoffw0
Copy link
Contributor Author

geoffw0 commented May 31, 2023

DCA LGTM.

@MathiasVP MathiasVP changed the title Swift: Make Macro.getName() more efficient. C++: Make Macro.getName() more efficient. May 31, 2023
@MathiasVP
Copy link
Contributor

Note that the DCA run only ran the Code Scanning suite and not the security-and-quality suite that we normally run. It's probably fine as it's pretty easy to convince oneself that this is behavior preserving 🤞.

Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

LGTM!

@MathiasVP MathiasVP merged commit 4497aa5 into github:main May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants