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 {
7171 not this instanceof ClassTemplateInstantiation and
7272 // compiler inferred parameters have name of p#0
7373 not this .( Parameter ) .getName ( ) = "p#0"
74+ and not this instanceof Type
7475 }
7576}
7677
Original file line number Diff line number Diff line change 11| test.cpp:4:5:4:7 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
22| 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 |
43| test.cpp:20:7:20:9 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
54| test.cpp:23:13:23:15 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
65| test.cpp:26:12:26:14 | id1 | Declaration is hiding declaration $@. | test.cpp:1:5:1:7 | id1 | id1 |
109| test.cpp:70:12:70:12 | i | Declaration is hiding declaration $@. | test.cpp:61:7:61:7 | i | i |
1110| test.cpp:75:16:75:16 | i | Declaration is hiding declaration $@. | test.cpp:61:7:61:7 | i | i |
1211| 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
8282} // namespace b
8383
8484namespace b1 {
85- typedef int a; // NON_COMPLIANT
85+ typedef int a; // COMPLIANT - do not consider types
8686}
8787
8888namespace ns_exception1_outer {
You can’t perform that action at this time.
0 commit comments