Investigate why [[clang::lifetimebound]] has no effect #860

Open
opened 2025-06-13 18:15:03 +00:00 by raito · 2 comments
Owner

[[clang::lifetimebound]] attributes has no effect on functions for reasons we do not understand yet.

This forces us to apply nolint rules that could have been avoided in https://gerrit.lix.systems/c/lix/+/3329.

If somefew has some time to minimize a repro and send it to clang upstream if this is indeed a bug, that'd be great.

cc @jade

`[[clang::lifetimebound]]` attributes has no effect on functions for reasons we do not understand yet. This forces us to apply nolint rules that could have been avoided in https://gerrit.lix.systems/c/lix/+/3329. If somefew has some time to minimize a repro and send it to clang upstream if this is indeed a bug, that'd be great. cc @jade
Member

This issue was mentioned on Gerrit on the following CLs:

  • comment in cl/3329 ("flake/inputs: 24.11-small -> 25.05-small")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/3329", "number": 3329, "kind": "comment"}], "cl_meta": {"3329": {"change_title": "flake/inputs: 24.11-small -> 25.05-small"}}} --> This issue was mentioned on Gerrit on the following CLs: * comment in [cl/3329](https://gerrit.lix.systems/c/lix/+/3329) ("flake/inputs: 24.11-small -> 25.05-small")
Owner

fixed in clang 20, we can force our clang tidy to 20 or ignore the bug for the time being

fixed in clang 20, we can force our clang tidy to 20 or ignore the bug for the time being
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#860
No description provided.