Skip to content

[C++] Upstream various performance, build, and best practice fixes#3327

Merged
parrt merged 1 commit intoantlr:masterfrom
jcking:cpp-string-copy
Nov 14, 2021
Merged

[C++] Upstream various performance, build, and best practice fixes#3327
parrt merged 1 commit intoantlr:masterfrom
jcking:cpp-string-copy

Conversation

@jcking
Copy link
Collaborator

@jcking jcking commented Oct 28, 2021

Pushing upstream a bunch of performance, build, and best practice fixes.

Most of the performance fixes are related to incorrect/misused auto. Lots of places simply use auto which causes values to be copied. They have been switched to const auto& which avoids copying-by-value. The best practice fix is switching to throw RuntimeException instead of a string literal.

@jcking
Copy link
Collaborator Author

jcking commented Oct 28, 2021

@mike-lischke PTAL

@jcking
Copy link
Collaborator Author

jcking commented Nov 11, 2021

Friendly poke.

@mike-lischke
Copy link
Member

@parrt Another pure C++ patch ready for merge.

@parrt parrt added this to the 4.9.4 milestone Nov 14, 2021
@parrt
Copy link
Member

parrt commented Nov 14, 2021

Thanks!

@parrt parrt merged commit ec144ca into antlr:master Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants