• Stephan Bergmann's avatar
    loplugin:nullptr · 5a9a3da7
    Stephan Bergmann yazdı
    A plugin to warn about and rewrite null pointer constants that are not written
    as nullptr (in C++11 code) resp. NULL (in C and C++03 code).  It is not
    activated for the following reasons:
    
    * At least the call to
    
      pImpl->aFmtNms.insert(pImpl->aFmtNms.begin() + nPos, nullptr);
    
      in svx/source/items/clipfmtitem.cxx would require
      <https://svn.boost.org/trac/boost/ticket/10540> "missing std::nullptr_t
      support in boost/type_traits/is_pointer.hpp" to be fixed first.
    
    * Additions of code that violate the plugin would probably be frequent, causing
      unnecessary grief for those building with plugins enabled.
    
    * It did not find anything interesting, apart from the above Boost bug and the
      mildly interesting 1da153b6 "Consistently use
      APP_WRITER as an integer, never as a nullptr."
    
    Anyway,
    
      until make -O -j4 -k check; do make -O -j1 -k check \
        COMPILER_PLUGIN_TOOL=nullptr UPDATE_FILES=all; done
    
    sucessfully executed on a recent master and resulted in
    
      6798 files changed, 60919 insertions(+), 60919 deletions(-)
    
    Change-Id: I1260227949868e73fcb63fda13d83e79fde685d7
    5a9a3da7
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...
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...
literalalternative.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...
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...
unreffun.cxx Loading commit data...
unusedvariablecheck.cxx Loading commit data...
unusedvariablecheck.hxx Loading commit data...