• Stephan Bergmann's avatar
    New loplugin:selfinit · 05a0c51c
    Stephan Bergmann yazdı
    ...to find more bugs like the one addressed in
    6340daac "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 884ad0d1 "Split
    localProcessFactory function into class with setter and getter") and five true
    positives (addressed with e0ccbe72 "Fix use of
    variable before its lifetime begins" and
    0e335af4 "Fix uses of variables before their
    lifetimes begin").
    Change-Id: I4c45cceaa042e93b37ad24a54784c027f6ca1f87
    Reviewed-on: https://gerrit.libreoffice.org/70897
    Tested-by: Jenkins
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
selfinit.cxx 1.07 KB