Merge branch release-2021
[alexxy/gromacs.git] / src / gromacs / utility / keyvaluetree.cpp
index adc754772e1e19dc39f2dd9948f623d9e8b49c4c..24fa2b3fd4845e5323f91a667bfc352da10c5ac0 100644 (file)
@@ -114,7 +114,8 @@ void dumpKeyValueTree(TextWriter* writer, const KeyValueTreeObject& tree)
             writer->wrapperSettings().setIndent(oldIndent);
         }
         else if (value.isArray()
-                 && std::all_of(value.asArray().values().begin(), value.asArray().values().end(),
+                 && std::all_of(value.asArray().values().begin(),
+                                value.asArray().values().end(),
                                 [](const auto& elem) { return elem.isObject(); }))
         {
             // Array containing only objects
@@ -216,7 +217,8 @@ private:
             else if (!areSimpleValuesOfSameTypeEqual(value1, value2))
             {
                 writer_->writeString(currentPath_.toString());
-                writer_->writeLine(formatString(" (%s - %s)", simpleValueToString(value1).c_str(),
+                writer_->writeLine(formatString(" (%s - %s)",
+                                                simpleValueToString(value1).c_str(),
                                                 simpleValueToString(value2).c_str()));
             }
         }
@@ -281,13 +283,15 @@ private:
 
     void handleMissingKeyInFirstObject(const KeyValueTreeValue& value)
     {
-        const std::string message = formatString("%s (missing - %s)", currentPath_.toString().c_str(),
+        const std::string message = formatString("%s (missing - %s)",
+                                                 currentPath_.toString().c_str(),
                                                  formatValueForMissingMessage(value).c_str());
         writer_->writeLine(message);
     }
     void handleMissingKeyInSecondObject(const KeyValueTreeValue& value)
     {
-        const std::string message = formatString("%s (%s - missing)", currentPath_.toString().c_str(),
+        const std::string message = formatString("%s (%s - missing)",
+                                                 currentPath_.toString().c_str(),
                                                  formatValueForMissingMessage(value).c_str());
         writer_->writeLine(message);
     }