Skip to content

[C++] Avoid adding semicolon after a statement#8488

Merged
dbaileychess merged 2 commits intogoogle:masterfrom
tzik:extra_semi_fix
Jan 24, 2025
Merged

[C++] Avoid adding semicolon after a statement#8488
dbaileychess merged 2 commits intogoogle:masterfrom
tzik:extra_semi_fix

Conversation

@tzik
Copy link
Copy Markdown
Contributor

@tzik tzik commented Jan 17, 2025

On the code generation for C++ object based API (--gen-object-api), existing code puts a semicolon after a else-statement, and that causes a compiler warning under -Wextra-semi-stmt on clang.

@github-actions github-actions bot added c++ codegen Involving generating code from schema labels Jan 17, 2025
dbaileychess
dbaileychess previously approved these changes Jan 22, 2025
@dbaileychess
Copy link
Copy Markdown
Collaborator

Looks like there is one missing file to update, check here

@tzik
Copy link
Copy Markdown
Contributor Author

tzik commented Jan 23, 2025

Looks like there is one missing file to update, check here

Thanks. Updated the CL to include that part.

@tzik tzik requested a review from dbaileychess January 23, 2025 03:46
@dbaileychess dbaileychess merged commit 9f94cee into google:master Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants