Skip to content

Crubit fails with "unknown attribute" error when encountering [[clang::coro_wrapper]] on functions.#941

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_909988829
May 5, 2026
Merged

Crubit fails with "unknown attribute" error when encountering [[clang::coro_wrapper]] on functions.#941
copybara-service[bot] merged 1 commit intomainfrom
test_909988829

Conversation

@copybara-service
Copy link
Copy Markdown

Crubit fails with "unknown attribute" error when encountering [[clang::coro_wrapper]] on functions.
This attribute is a static analysis hint and does not affect the ABI or type layout.
We verified that all 7 Clang coroutine attributes are safe to ignore regarding ABI.

This CL centralizes the ignoring of these attributes in CollectUnknownAttrs in ast_util.cc.
It also cleans up cxx_record.cc to remove redundant checks.
A regression test is added to verify the fix.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 4, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…::coro_wrapper]] on functions.

This attribute is a static analysis hint and does not affect the ABI or type layout.
We verified that all 7 Clang coroutine attributes are safe to ignore regarding ABI.

This CL centralizes the ignoring of these attributes in CollectUnknownAttrs in ast_util.cc.
It also cleans up cxx_record.cc to remove redundant checks.
A regression test is added to verify the fix.

PiperOrigin-RevId: 910550138
@copybara-service copybara-service Bot merged commit 6840510 into main May 5, 2026
1 check failed
@copybara-service copybara-service Bot deleted the test_909988829 branch May 5, 2026 09:55
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.

0 participants