• Stephan Bergmann's avatar
    loplugin:deletedspecial to help add SAL_DELETED_FUNCTION annotations · d2e9b222
    Stephan Bergmann yazdı
    ...to special member function declarations that were left undefined.  Helps
    compilers do a better job at identifiying unused class members.  This plugin
    uses heuristics and whitelists do identify applicable declarations, but is not
    appropriate for "unattended" use so is placed into store/.
    
    The following commits contain the results of running this plugin, per module:
    
    * Declarations of undefined special member functions are mmarked
      SAL_DELETED_FUNCTION (aka "= delete", which is deemed superior to deriving the
      class from boost::noncopyable, cf. Howard Hinnant's reply to
      <http://stackoverflow.com/questions/7823990/what-are-the-advantages-of-boostnoncopyable>.
    
    * Any redundant "explicit" or SAL_DLLPRIVATE markers are removed from the
      deleted definitions.
    
    * Some redundant declarations of undefined default ctors are simply removed;
      smelled like clueless cargo-cult to have them declared at all.
    
    * Some declarations of undefined operator == etc. are left in (and marked
      SAL_DELETED_FUNCTION) for now, to be on the safe side, though they are likely
      clueless cargo-cult, too.
    
    * Most "static-only" classes are replaced with namespaces (and some where that
      would be non-trivial due to private members are marked TODO for later).
    
    * Newly identified unused class members are removed.
    
    Change-Id: Ibeaae4fd579d7a0971a2c2a654a2263acd13414a
    d2e9b222
Adı
Son kayıt (commit)
Son güncelleme
..
store Loading commit data...
bodynotinblock.cxx Loading commit data...
bodynotinblock.hxx Loading commit data...
checkconfigmacros.cxx Loading commit data...
compat.hxx Loading commit data...
cstylecast.cxx Loading commit data...
derefnullptr.cxx Loading commit data...
externandnotdefined.cxx Loading commit data...
implicitboolconversion.cxx Loading commit data...
inlinesimplememberfunctions.cxx Loading commit data...
inlinevisible.cxx Loading commit data...
literaltoboolconversion.cxx Loading commit data...
passstuffbyref.cxx Loading commit data...
plugin.cxx Loading commit data...
plugin.hxx Loading commit data...
pluginhandler.cxx Loading commit data...
pluginhandler.hxx Loading commit data...
pointertobool.cxx Loading commit data...
redundantcast.cxx Loading commit data...
returnbyref.cxx Loading commit data...
salbool.cxx Loading commit data...
saloverride.cxx Loading commit data...
staticcall.cxx Loading commit data...
stringconcat.cxx Loading commit data...
stringconstant.cxx Loading commit data...
unreffun.cxx Loading commit data...
unusedvariablecheck.cxx Loading commit data...
unusedvariablecheck.hxx Loading commit data...