Stephan Bergmann
9663341f92
Bump --enable-compiler-plugins to Clang 3.8.0
...
<https://lists.freedesktop.org/archives/libreoffice/2017-December/079107.html >
"Clang baseline bump"
Change-Id: I18fca8794ea34118fc6308458064d0c28cf5caf7
Reviewed-on: https://gerrit.libreoffice.org/46557
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-19 22:08:38 +01:00
Stephan Bergmann
b35bb38f18
Clean away temporarily added using declarations
...
Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
2017-11-07 11:50:47 +01:00
Noel Grandin
569c7da252
extract some common code for checking if a functions address was taken
...
Change-Id: I292b4e9bf17c83f83ff43ac4c5870d33092d0c71
2017-10-27 13:55:43 +02:00
Noel Grandin
8136a87d9a
loplugin:constantparam was not always using canonical location for function
...
Change-Id: I8a15da534ba2cf9968cba0ee1f1bb74d7e3a0d54
2017-10-27 10:31:42 +02:00
Noel Grandin
4c0198b02c
reformat some loplugin code
...
to match our more normal conventions.
Also drop the 'using std' and some other cruft
Change-Id: I02ef81c5427188bc03a20b157a57a900a9d7bf0d
2017-06-20 10:26:46 +02:00
Stephan Bergmann
df8d092c3a
Adapt pathname checks to mixed usage of \ and / on Windows
...
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
2017-05-18 09:56:01 +02:00
Noel Grandin
4c0fb07f34
add some some empty string names to constantparam loplugin
...
Change-Id: I8f67212271a798d544b7aad46f08890122cd5e18
2017-05-10 09:17:41 +02:00
Noel Grandin
12191a4f30
make loplugin constantparam smarter about string params
...
Change-Id: Id3df69b38fd35f46735246a6d307a89aa10d4294
Reviewed-on: https://gerrit.libreoffice.org/37426
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-09 13:52:30 +02:00
Noel Grandin
185ed3ddb8
teach loplugin:constantparam about simple constructor calls
...
Change-Id: I7d2a28ab5951fbdb5a427c84e9ac4c1e32ecf9f9
Reviewed-on: https://gerrit.libreoffice.org/37280
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08 08:29:03 +02:00
Noel Grandin
f762a7772b
loplugin constantparam, ignore variadic methods
...
Change-Id: Ieabb020406d5a381dd9cbace3b1e4cc434857d54
2017-04-11 13:08:19 +02:00
Noel Grandin
40fd53a238
loplugins: extract some common functionality
...
Change-Id: If470e1d9b481c9eda0829aa985152baf8fb46d7a
2016-10-18 08:51:07 +02:00
Andrea Gelmini
c0bcdde2a0
Fix typos
...
Change-Id: I6aeda978911b25caa45d4e459e581fc743e93d2c
Reviewed-on: https://gerrit.libreoffice.org/29442
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-01 20:10:06 +00:00
Noel Grandin
3468dab9ff
clang plugins: do "dotdot" normalisation
...
which fixes some false positives
Change-Id: I555349180b5ca819f29695789f1545ba2177bd09
Reviewed-on: https://gerrit.libreoffice.org/29320
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-27 12:08:52 +00:00
Noel Grandin
20a9e101d9
loplugin:constantparam
...
clean up the plugin a little, and try to catch params which are default
constructed, which doesn't seem to be working yet
Change-Id: Ife45f18502a45cd26306424b7432c55fcbb0fd12
Reviewed-on: https://gerrit.libreoffice.org/28861
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-14 08:47:06 +00:00
Noel Grandin
b1164b07f9
loplugin:constantparam in sd
...
Change-Id: I2bc989802c12b379a1ba4202f54ecfef1f339c8c
Reviewed-on: https://gerrit.libreoffice.org/28774
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-09-10 11:28:16 +00:00
Noel Grandin
d2143eacaf
teach loplugin constantparam about default param values
...
Change-Id: I334622bd34d8349f5b3988122d282b1062b225bb
2016-09-06 12:59:13 +02:00
Noel Grandin
98c90acdfc
loplugins: more consistent naming of output files
...
Change-Id: Ia26f697cb16078f235c94e4cff449a60c1bbd74e
2016-07-25 13:23:10 +02:00
Stephan Bergmann
f8a18a464e
Adpat to < https://llvm.org/svn/llvm-project/cfe/trunk@273647 >
...
"Use more ArrayRefs"
Change-Id: Ied0ab11dd9366b3f499100b2627f4919cca52c9c
2016-06-24 16:46:55 +02:00
Noel Grandin
8d861bd702
new loplugin: singlevalfields
...
look for fields that only have a single constant value assigned to them
Change-Id: Iafcd37fdb8a8119bbc00f92981a1a01badf9c5a2
2016-06-23 13:13:57 +02:00
Noel Grandin
2c8fe2e737
update unusedmethods plugin to deal with constructors
...
and fix the operator< implementations in some of the other
plugins too.
Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-18 10:03:44 +00:00
Noel Grandin
f0f973da85
loplugin:constantparams in vcl/
...
also some improvements to the plugin
Change-Id: I0e3a519d70756e577fcb1bd47dd66864b5b4c871
Reviewed-on: https://gerrit.libreoffice.org/23289
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-16 08:42:37 +00:00
Noel Grandin
b47cb646ff
loplugin:constantparam
...
Change-Id: I270e068b3c83e966e741b0a072fecce9d92d53f5
2016-03-15 08:27:25 +02:00
Noel Grandin
b4fda7b3f9
new loplugin:constantparam
...
finds parameters that are only ever being called with a single value
Change-Id: Ibd0c9b6e6dbc1d1b5d5a005eaa19959560a6e50f
2016-03-08 09:04:47 +02:00