next iteration of preparing for clang-format

This commit is contained in:
Axel Kohlmeyer
2021-04-30 13:51:14 -04:00
parent 04ee87af0c
commit a1665fddc8
1259 changed files with 1486 additions and 1481 deletions

View File

@ -56,15 +56,17 @@ void WriteDump::command(int narg, char **arg)
for (int i = 2; i < modindex; ++i)
dumpargs[i+2] = arg[i];
if (0) return; // dummy line to enable else-if macro expansion
if (0) {
return; // dummy line to enable else-if macro expansion
#define DUMP_CLASS
#define DumpStyle(key,Class) \
else if (strcmp(arg[1],#key) == 0) dump = new Class(lmp,modindex+2,dumpargs);
} else if (strcmp(arg[1],#key) == 0) { \
dump = new Class(lmp,modindex+2,dumpargs);
#include "style_dump.h"
#undef DUMP_CLASS
else error->all(FLERR,utils::check_packages_for_style("dump",arg[1],lmp));
} else error->all(FLERR,utils::check_packages_for_style("dump",arg[1],lmp));
if (modindex < narg) dump->modify_params(narg-modindex-1,&arg[modindex+1]);