Skip to content

Conversation

@apple-fcloutier
Copy link

[Sema] Suggest missing format attributes (#166738)

Implements the -Wmissing-format-attribute diagnostic as a subgroup of
-Wformat-nonliteral. It suggests adding format attributes to function
declarations that call other format functions and pass the format string
to them.

This is an updated implementation of llvm#105479.


Co-authored-by: Budimir Arandjelovic budimir.arandjelovic@htecgroup.com

I reviewed this change upstream and we should integrate it early.

rdar://166228589

vvuksanovic and others added 2 commits December 10, 2025 17:18
Implements the `-Wmissing-format-attribute` diagnostic as a subgroup of
`-Wformat-nonliteral`. It suggests adding format attributes to function
declarations that call other format functions and pass the format string
to them.

This is an updated implementation of llvm#105479.

---------

Co-authored-by: Budimir Arandjelovic <budimir.arandjelovic@htecgroup.com>
@apple-fcloutier apple-fcloutier requested a review from a team as a code owner December 10, 2025 17:52
@apple-fcloutier
Copy link
Author

@swift-ci please test

@apple-fcloutier
Copy link
Author

Rerunning for lldb tests on Windows.

@swift-ci please test

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.

3 participants