Skip to content

remove terminating semicolons from do-while-0 #17554

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
Mar 21, 2025

Conversation

ldrumm
Copy link
Contributor

@ldrumm ldrumm commented Mar 20, 2025

The whole point of surrounding a macro definition in do { } while (0) is to safely handle the case of missing braces in an if statement. Remove the semicolon from the definitions of DIE_NO_IMPLEMENTATION, and CONTINUE_NO_IMPLEMENTATION; and put them around all its uses.

The whole point of surrounding a macro definition in `do { } while (0)`
is to safely handle catch the case of missing braces in an if statement.
Remove the semicolon from the definitions of `DIE_NO_IMPLEMENATION`, and
`CONTINUE_NO_IMPLEMENTATION`, and put them around all its uses.
@ldrumm ldrumm requested a review from a team as a code owner March 20, 2025 15:56
@ldrumm ldrumm temporarily deployed to WindowsCILock March 20, 2025 15:56 — with GitHub Actions Inactive
@ldrumm ldrumm changed the title [remove terminating semicolons from do-while-0 remove terminating semicolons from do-while-0 Mar 20, 2025
@npmiller
Copy link
Contributor

@intel/llvm-gatekeepers this is ready to merge

@martygrant martygrant merged commit 12803cd into intel:sycl Mar 21, 2025
42 of 43 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.

4 participants