Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / gromacs / fileio / readinp.cpp
index 5d497b8cd740c9a518dda0eb1eff25bbfb12770e..1da9fd268afd3f4cf98d5ce676ffdbb536370872 100644 (file)
@@ -225,7 +225,8 @@ void write_inpfile(gmx::TextOutputStream*  stream,
             }
             else
             {
-                writer.writeLine(formatString("%-24s = %s", local.name_.c_str(),
+                writer.writeLine(formatString("%-24s = %s",
+                                              local.name_.c_str(),
                                               !local.value_.empty() ? local.value_.c_str() : ""));
             }
         }
@@ -263,7 +264,8 @@ void replace_inp_entry(gmx::ArrayRef<t_inpfile> inp, const char* old_entry, cons
                     gmx_fatal(FARGS,
                               "A parameter is present with both the old name '%s' and the new name "
                               "'%s'.",
-                              local.name_.c_str(), inp[foundIndex].name_.c_str());
+                              local.name_.c_str(),
+                              inp[foundIndex].name_.c_str());
                 }
 
                 local.name_.assign(new_entry);
@@ -363,7 +365,8 @@ int get_eint(std::vector<t_inpfile>* inp, const char* name, int def, warninp_t w
             sprintf(warn_buf,
                     "Right hand side '%s' for parameter '%s' in parameter file is not an integer "
                     "value\n",
-                    inpRef[ii].value_.c_str(), inpRef[ii].name_.c_str());
+                    inpRef[ii].value_.c_str(),
+                    inpRef[ii].name_.c_str());
             warning_error(wi, warn_buf);
         }
 
@@ -399,7 +402,8 @@ int64_t get_eint64(std::vector<t_inpfile>* inp, const char* name, int64_t def, w
             sprintf(warn_buf,
                     "Right hand side '%s' for parameter '%s' in parameter file is not an integer "
                     "value\n",
-                    inpRef[ii].value_.c_str(), inpRef[ii].name_.c_str());
+                    inpRef[ii].value_.c_str(),
+                    inpRef[ii].name_.c_str());
             warning_error(wi, warn_buf);
         }
 
@@ -435,7 +439,8 @@ double get_ereal(std::vector<t_inpfile>* inp, const char* name, double def, warn
             sprintf(warn_buf,
                     "Right hand side '%s' for parameter '%s' in parameter file is not a real "
                     "value\n",
-                    inpRef[ii].value_.c_str(), inpRef[ii].name_.c_str());
+                    inpRef[ii].value_.c_str(),
+                    inpRef[ii].name_.c_str());
             warning_error(wi, warn_buf);
         }
 
@@ -505,8 +510,11 @@ int get_eeenum(std::vector<t_inpfile>* inp, const char* name, const char** defs,
 
     if (defs[i] == nullptr)
     {
-        n += sprintf(buf, "Invalid enum '%s' for variable %s, using '%s'\n",
-                     inpRef[ii].value_.c_str(), name, defs[0]);
+        n += sprintf(buf,
+                     "Invalid enum '%s' for variable %s, using '%s'\n",
+                     inpRef[ii].value_.c_str(),
+                     name,
+                     defs[0]);
         n += sprintf(buf + n, "Next time use one of:");
         int j = 0;
         while (defs[j])