File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
test/rules/identifierhidden Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ class UserDeclaration extends Declaration {
71
71
not this instanceof ClassTemplateInstantiation and
72
72
// compiler inferred parameters have name of p#0
73
73
not this .( Parameter ) .getName ( ) = "p#0"
74
+ and not this instanceof Type
74
75
}
75
76
}
76
77
Original file line number Diff line number Diff line change 1
1
| test.cpp:4:5:4:7 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
2
2
| test.cpp:8:5:8:7 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
3
- | test.cpp:11:5:11:7 | id1 | Declaration is hiding declaration $@. | test.cpp:8:5:8:7 | id1 | id1 |
4
3
| test.cpp:20:7:20:9 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
5
4
| test.cpp:23:13:23:15 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
6
5
| test.cpp:26:12:26:14 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
10
9
| test.cpp:70:12:70:12 | i | Declaration is hiding declaration $@. | test.cpp:61:7:61:7 | i | i |
11
10
| test.cpp:75:16:75:16 | i | Declaration is hiding declaration $@. | test.cpp:61:7:61:7 | i | i |
12
11
| test.cpp:81:5:81:5 | a | Declaration is hiding declaration $@. | test.cpp:79:5:79:5 | a | a |
13
- | test.cpp:85:13:85:13 | a | Declaration is hiding declaration $@. | test.cpp:79:5:79:5 | a | a |
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ int a() {} // NON_COMPLIANT
82
82
} // namespace b
83
83
84
84
namespace b1 {
85
- typedef int a; // NON_COMPLIANT
85
+ typedef int a; // COMPLIANT - do not consider types
86
86
}
87
87
88
88
namespace ns_exception1_outer {
You can’t perform that action at this time.
0 commit comments