Commit Graph

1 Commits

Author SHA1 Message Date
Stephan Bergmann
05a0c51ced New loplugin:selfinit
...to find more bugs like the one addressed in
6340daac7b "Revert broken
loplugin:sequentialassign change".  What it does is:  "Warn when a variable is
referenced from its own initializer.  This is not invalid in general (see C++17
[basic.life]), but is at least suspicious."  It found one false positive
(addressed with 884ad0d1af "Split
localProcessFactory function into class with setter and getter") and five true
positives (addressed with e0ccbe72ed "Fix use of
variable before its lifetime begins" and
0e335af4d3 "Fix uses of variables before their
lifetimes begin").

Change-Id: I4c45cceaa042e93b37ad24a54784c027f6ca1f87
Reviewed-on: https://gerrit.libreoffice.org/70897
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-04-17 21:59:53 +02:00