Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 169cbe7

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

File tree

Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed
+2-1Lines 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

Copy file name to clipboardExpand all lines: cpp/common/test/rules/identifierhidden/test.cpp
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.