Skip to content

Commit

Permalink
Modify rule S1172 Fix FP for Objective-C block definitions CPP-5916
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-joly-sonarsource authored Dec 10, 2024
1 parent 92e1462 commit 0cc91b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/S1172/cfamily/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void f([[maybe_unused]] int i) {
}
----

In case of Objective-C, it is acceptable to have unused parameters if the method is supposed to be overridden.
In case of Objective-C, it is acceptable to have unused parameters if the method is supposed to be overridden. Additionally, since Objective-C blocks don't allow unnamed parameters while they are typically used as callbacks, it is acceptable to have unused parameters in blocks.

== How to fix it

Expand Down

0 comments on commit 0cc91b7

Please sign in to comment.