Start using .clang-format
Used the one from docs/style/cpp.
Change-Id: I3bdc2b353bf18a437266b362d8205b8463a9ce2b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-supply/argument.cpp b/power-supply/argument.cpp
index a275c6a..342515c 100644
--- a/power-supply/argument.cpp
+++ b/power-supply/argument.cpp
@@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include <iostream>
-#include <iterator>
+#include "argument.hpp"
+
#include <algorithm>
#include <cassert>
-#include "argument.hpp"
+#include <iostream>
+#include <iterator>
namespace witherspoon
{
@@ -81,16 +82,15 @@
std::cerr << std::flush;
}
-const option ArgumentParser::options[] =
-{
- { "path", required_argument, NULL, 'p' },
- { "instance", required_argument, NULL, 'n' },
- { "inventory", required_argument, NULL, 'i' },
- { "num-history-records", required_argument, NULL, 'r' },
- { "sync-gpio-path", required_argument, NULL, 'a' },
- { "sync-gpio-num", required_argument, NULL, 'u' },
- { "help", no_argument, NULL, 'h' },
- { 0, 0, 0, 0},
+const option ArgumentParser::options[] = {
+ {"path", required_argument, NULL, 'p'},
+ {"instance", required_argument, NULL, 'n'},
+ {"inventory", required_argument, NULL, 'i'},
+ {"num-history-records", required_argument, NULL, 'r'},
+ {"sync-gpio-path", required_argument, NULL, 'a'},
+ {"sync-gpio-num", required_argument, NULL, 'u'},
+ {"help", no_argument, NULL, 'h'},
+ {0, 0, 0, 0},
};
const char* ArgumentParser::optionStr = "p:n:i:r:a:u:h";
@@ -98,5 +98,5 @@
const std::string ArgumentParser::trueString = "true";
const std::string ArgumentParser::emptyString = "";
-}
-}
+} // namespace power
+} // namespace witherspoon