Stephan Bergmann
bb24492c76
More loplugin::TypeCheck use
...
Change-Id: I2f4a26a918134568f541cd45bdcf5a12b1f1d2ee
2015-12-08 22:56:02 +01:00
Jan Holesovsky
4c4999d944
tdf#96042: 'std::string::find("something") == 0' means "startsWith()".
...
This should fix a regression from 3bdd176731
,
apparently the cppcheck's advice is misleading.
Change-Id: I427ecaa1eb3c9841cb6112997b9b51feda4583d0
2015-12-08 12:12:53 +01:00
Noel Grandin
3bdd176731
cppcheck:stlIfStrFind
...
"Inefficient usage of string::find() in condition; string::compare() would be faster."
Change-Id: I90403b1d05eff6499c10be33068e5fd4fed30b62
Reviewed-on: https://gerrit.libreoffice.org/19966
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-15 06:46:07 +00:00
Stephan Bergmann
24a89b2772
Improve loplugin:passstuffbyref
...
Change-Id: I88ab4c51ff59312127681d3087d22b9c79192b94
2015-03-03 08:56:01 +01:00
Stephan Bergmann
92db2f17b3
Adapt loplugin:passstuffbyref to Clang 3.2
...
Change-Id: I24d0b7531feba32f86f761daf18170397cfe5d2f
2015-02-09 10:40:19 +01:00
Stephan Bergmann
0a1c6d4554
Extend loplugin:passstuffbyref to handle lambdas
...
...even if it is known to be dangerous
Change-Id: Ied96284e33b966bf072d0961054479ec7f891dea
2015-02-05 16:54:10 +01:00
Noel Grandin
c03efa7c6c
loplugin-passbyref: ignore non-base declarations
...
Only consider base declarations, not overriden ones, or we warn on methods that
are overriding stuff from external libraries.
Change-Id: I08791c96f7adba5997ad237a98e7c08a759042ad
2014-05-22 07:54:54 +02:00
Noel Grandin
8d54796bf1
enhance pass-by-ref plugin to detect large arguments
...
Detect arguments larger than 64 chars passed by value.
Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2014-05-20 11:17:22 +02:00
Noel Grandin
97d50c425f
combine the pass-by-ref clang plugins
...
Change-Id: Idac24afb7cb67fa2d539553fb9fa049c2d61ecf0
2014-05-16 11:18:45 +02:00