clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Ia331c9a5b040e1a3c45a0ebf1b8d776d93b05ae5
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/argument.cpp b/argument.cpp
index 6d4bb1a..bcd5a13 100644
--- a/argument.cpp
+++ b/argument.cpp
@@ -70,23 +70,23 @@
std::cerr << " --help Print this menu.\n";
std::cerr << " --info=<info> Retrieve info about NCSI topology.\n";
std::cerr << " --set=<set> Set a specific package/channel.\n";
- std::cerr << " --clear=<clear> Clear all the settings on the interface.\n";
+ std::cerr
+ << " --clear=<clear> Clear all the settings on the interface.\n";
std::cerr << " --package=<package> Specify a package.\n";
std::cerr << " --channel=<channel> Specify a channel.\n";
std::cerr << " --index=<device index> Specify device ifindex.\n";
std::cerr << std::flush;
}
-const option ArgumentParser::options[] =
-{
- { "info", no_argument, NULL, 'i' },
- { "set", no_argument, NULL, 's' },
- { "clear", no_argument, NULL, 'r' },
- { "package", required_argument, NULL, 'p' },
- { "channel", required_argument, NULL, 'c' },
- { "index", required_argument, NULL, 'x' },
- { "help", no_argument, NULL, 'h' },
- { 0, 0, 0, 0},
+const option ArgumentParser::options[] = {
+ {"info", no_argument, NULL, 'i'},
+ {"set", no_argument, NULL, 's'},
+ {"clear", no_argument, NULL, 'r'},
+ {"package", required_argument, NULL, 'p'},
+ {"channel", required_argument, NULL, 'c'},
+ {"index", required_argument, NULL, 'x'},
+ {"help", no_argument, NULL, 'h'},
+ {0, 0, 0, 0},
};
const char* ArgumentParser::optionStr = "i:s:r:p:c:x:h?";
@@ -94,7 +94,6 @@
const std::string ArgumentParser::trueString = "true";
const std::string ArgumentParser::emptyString = "";
-} //namespace ncsi
-} //namespace network
-} //namespece phosphor
-
+} // namespace ncsi
+} // namespace network
+} // namespace phosphor