Skip to content

Commit 169cbe7

Browse files
committed
identifierhidden: update testcase for overload omission, update changenote
1 parent 20d9dd6 commit 169cbe7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
- `A2-10-1`, `RULE-5-3` - `IdentifierHiding.ql`, `IdentifierHidingC.ql`:
2-
- Address FN reported in #118. Rule was missing detection of functions and types.
2+
- Address FN reported in #118. Rule was missing detection of functions. Additionally omitted class template instantiations.
3+
- Fix FP for identifiers in nested namespaces.

cpp/common/test/rules/identifierhidden/test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,6 @@ void f4() {
103103
// variable b
104104
};
105105
}
106+
107+
void f5(int i) {} // COMPLIANT - exception - assume purposefully overloaded
108+
void f5(double d) {} // COMPLIANT - exception - assume purposefully overloaded

0 commit comments

Comments
 (0)