Skip to content

Conversation

@DeanSturtevant1
Copy link
Contributor

No description provided.

The goal is to correctly identify diagnostics that are emitted by virtue of -Wformat-signedness.

Before this change, diagnostic messages triggered by -Wformat-signedness might look like:
format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
signedness of format specifier 'u' is incompatible with 'c' [-Wformat]
With this change:
format specifies type 'unsigned int' but the argument has type 'int', which differs in signedness [-Wformat-signedness]
signedness of format specifier 'u' is incompatible with 'c' [-Wformat-signedness]

Fix:
- handleFormatSignedness can now return NoMatchSignedness. Callers handle this.
- warn_format_conversion_argument_type extends the message it used to emit by a string that
  mentions "signedness".
- warn_format_cmp_specifier_sign_mismatch is now correctly categorized as a
  diagnostic controlled by -Wformat-signedness.
@rupprecht rupprecht changed the title [MLIR] bazel fix for MemRefToEmitC [bazel][MLIR] Fix for MemRefToEmitC for #151206 Aug 14, 2025
@rupprecht rupprecht enabled auto-merge (squash) August 14, 2025 14:55
@rupprecht rupprecht merged commit 7d91213 into llvm:main Aug 14, 2025
10 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.

2 participants