T2345: Replace instances of NULL with nullptr

The following changes have been applied to src and lib folders:
regex replace: ([^"_])NULL ⇒ \1nullptr (8968 chgs in src, 1153 in lib)
Manually find/change: (void \*) nullptr ⇒ nullptr (1 case)
regex find: ".*?nullptr.*?"
  Manually ~14 cases back to "NULL" in src, ~2 in lib
  regex finds a few false positive where nullptr appears between two
  strings in a function call
This commit is contained in:
Anne Gunn
2020-09-11 07:39:46 -06:00
parent 101d39142e
commit f1ef7d85a8
1217 changed files with 8531 additions and 8531 deletions

View File

@ -69,7 +69,7 @@ void Error::universe_all(const std::string &file, int line, const std::string &s
#ifdef LAMMPS_EXCEPTIONS
// allow commands if an exception was caught in a run
// update may be NULL when catching command line errors
// update may be nullptr when catching command line errors
if (update) update->whichflag = 0;
@ -95,7 +95,7 @@ void Error::universe_one(const std::string &file, int line, const std::string &s
#ifdef LAMMPS_EXCEPTIONS
// allow commands if an exception was caught in a run
// update may be NULL when catching command line errors
// update may be nullptr when catching command line errors
if (update) update->whichflag = 0;
@ -143,7 +143,7 @@ void Error::all(const std::string &file, int line, const std::string &str)
#ifdef LAMMPS_EXCEPTIONS
// allow commands if an exception was caught in a run
// update may be NULL when catching command line errors
// update may be nullptr when catching command line errors
if (update) update->whichflag = 0;
@ -169,7 +169,7 @@ void Error::all(const std::string &file, int line, const std::string &str)
/* ----------------------------------------------------------------------
called by one proc in world
write to world screen only if non-NULL on this proc
write to world screen only if non-nullptr on this proc
always write to universe screen
forces abort of entire world (and universe) if any proc in world calls
------------------------------------------------------------------------- */
@ -192,7 +192,7 @@ void Error::one(const std::string &file, int line, const std::string &str)
#ifdef LAMMPS_EXCEPTIONS
// allow commands if an exception was caught in a run
// update may be NULL when catching command line errors
// update may be nullptr when catching command line errors
if (update) update->whichflag = 0;
@ -207,7 +207,7 @@ void Error::one(const std::string &file, int line, const std::string &str)
/* ----------------------------------------------------------------------
called by one proc in world
only write to screen if non-NULL on this proc since could be file
only write to screen if non-nullptr on this proc since could be file
------------------------------------------------------------------------- */
void Error::warning(const std::string &file, int line, const std::string &str, int logflag)