• 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
..
clang Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
Makefile-clang.mk Loading commit data...
Makefile.mk Loading commit data...
README Loading commit data...