Skip to content

Fix extra parenthesis in diagnostic #122055

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

Conversation

hubert-reinterpretcast
Copy link
Collaborator

Following #120380,
err_pack_expansion_length_conflict has one close paren too many.

Remove the extra parenthesis.

Following #120380,
`err_pack_expansion_length_conflict` has one close paren too many.

Remove the extra parenthesis.
@hubert-reinterpretcast hubert-reinterpretcast added the clang:diagnostics New/improved warning or error message in Clang, but not in clang-tidy or static analyzer label Jan 8, 2025
@hubert-reinterpretcast hubert-reinterpretcast self-assigned this Jan 8, 2025
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Jan 8, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 8, 2025

@llvm/pr-subscribers-clang

Author: Hubert Tong (hubert-reinterpretcast)

Changes

Following #120380,
err_pack_expansion_length_conflict has one close paren too many.

Remove the extra parenthesis.


Full diff: https://github.com/llvm/llvm-project/pull/122055.diff

1 Files Affected:

  • (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+1-1)
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 1a5541591a1608..2755d7bf579b7f 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -5878,7 +5878,7 @@ def err_pack_expansion_without_parameter_packs : Error<
   "pack expansion does not contain any unexpanded parameter packs">;
 def err_pack_expansion_length_conflict : Error<
   "pack expansion contains parameter packs %0 and %1 that have different "
-  "lengths (%2 vs. %select{|at least }3%4))">;
+  "lengths (%2 vs. %select{|at least }3%4)">;
 def err_pack_expansion_length_conflict_multilevel : Error<
   "pack expansion contains parameter pack %0 that has a different "
   "length (%1 vs. %select{|at least }2%3) from outer parameter packs">;

Copy link
Contributor

@zyn0217 zyn0217 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@hstk30-hw hstk30-hw merged commit de67ca1 into main Jan 8, 2025
12 checks passed
@hstk30-hw hstk30-hw deleted the users/hubert-reinterpretcast/ClangDiag-fixExtraCloseParen branch January 8, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:diagnostics New/improved warning or error message in Clang, but not in clang-tidy or static analyzer clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants