Apply clang-format to source tree
[alexxy/gromacs.git] / src / testutils / stdiohelper.cpp
index 60b95cf6eb43049b16224f8e7a389b158475aa59..4afb9ba460474ca45a246152c50a7e6713697177 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2013,2014,2015,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2017,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -60,16 +60,13 @@ namespace test
  * StdioTestHelper
  */
 
-void
-StdioTestHelper::redirectStringToStdin(const char *theString)
+void StdioTestHelper::redirectStringToStdin(const char* theString)
 {
     const std::string fakeStdin = fileManager_.getTemporaryFilePath(".stdin");
     gmx::TextWriter::writeFileFromString(fakeStdin, theString);
     if (nullptr == std::freopen(fakeStdin.c_str(), "r", stdin))
     {
-        GMX_THROW_WITH_ERRNO(FileIOError("Failed to redirect a string to stdin"),
-                             "freopen",
-                             errno);
+        GMX_THROW_WITH_ERRNO(FileIOError("Failed to redirect a string to stdin"), "freopen", errno);
     }
 }