CPP: Another test case.

This commit is contained in:
Geoffrey White
2019-04-24 11:32:01 +01:00
parent 32b6e9bd3c
commit 6f2274aa5e
2 changed files with 3 additions and 0 deletions

View File

@@ -7,3 +7,4 @@
| test.cpp:107:16:107:16 | d | This parameter of type $@ is 4100 bytes - consider passing a const pointer/reference instead. | test.cpp:58:8:58:19 | MyLargeClass | MyLargeClass |
| test.cpp:108:16:108:16 | e | This parameter of type $@ is 4100 bytes - consider passing a const pointer/reference instead. | test.cpp:58:8:58:19 | MyLargeClass | MyLargeClass |
| test.cpp:109:16:109:16 | f | This parameter of type $@ is 4100 bytes - consider passing a const pointer/reference instead. | test.cpp:58:8:58:19 | MyLargeClass | MyLargeClass |
| test.cpp:149:31:149:31 | a | This parameter of type $@ is 4100 bytes - consider passing a const pointer/reference instead. | test.cpp:58:8:58:19 | MyLargeClass | MyLargeClass |

View File

@@ -145,3 +145,5 @@ MyArithmeticClass operator+(MyArithmeticClass lhs, const MyArithmeticClass &rhs)
lhs += rhs; // lhs is copied by design
return lhs;
}
void myFunction6(MyLargeClass a); // GOOD (no definition, so we can't tell what's done with `a`) [FALSE POSITIVE]