Skip to content

Commit 9396451

Browse files
rak3-shlcartey
andauthored
Apply suggestions from code review
Co-authored-by: Luke Cartey <[email protected]>
1 parent 4f9fb82 commit 9396451

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

change_notes/2023-06-28-unused-local-function-use-cases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
- The operand of an expression in an unevaluated context
44
- Functions marked with [[maybe_unused]]
55
- Explicitly deleted functions e.g. =delete
6-
- Use of any overload of a function in an overload set constitute a use of all members of the set. An overload set is a set of functions with the same name that differ in the number, type and/or qualifiers of their parameters.
6+
- Use of any overload of a function in an overload set constitute a use of all members of the set. An overload set is a set of functions with the same name that differ in the number, type and/or qualifiers of their parameters, and, for the purpose of this query, are limited to functions which are declared in the same scope (namespace or class).

rule_packages/cpp/DeadCode.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"maintainability"
7070
],
7171
"implementation_scope": {
72-
"description": "Functions defined in anonymous (unnamed) namespaces and global namespaces are not considered to be part of the same overload set."
72+
"description": "Use of any overload of a function in an overload set constitute a use of all members of the set. An overload set is a set of functions with the same name that differ in the number, type and/or qualifiers of their parameters, and, for the purpose of this query, are limited to functions which are declared in the same scope (namespace or class). Functions defined in anonymous (unnamed) namespaces and global namespaces are therefore not currently considered to be part of the same overload set."
7373
}
7474
}
7575
],

0 commit comments

Comments
 (0)