format-code: Look for clang-format-6.0 as well

Otherwise we break the CI infrastructure. Also, fix up some errors that
v6.0 catches that v5.0 doesn't.

Change-Id: Idcbb102ebfda500f874a3e9f13d8ba2b72b6230d
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/format-code.sh b/format-code.sh
index a824ad1..bd5659c 100755
--- a/format-code.sh
+++ b/format-code.sh
@@ -6,7 +6,14 @@
 
 [ -f .clang-format ] && rm .clang-format
 
-CLANG_FORMAT="$(which clang-format-5.0)"
+for cf in clang-format-6.0 clang-format-5.0
+do
+    CLANG_FORMAT="$(which ${cf})"
+    if [ -n "${CLANG_FORMAT}" ]
+    then
+        break;
+    fi
+done
 
 # phosphor-mboxd is a fork of mboxbridge, the reference mbox daemon
 # implementation. mboxbridge is C written with the style of the Linux kernel.
diff --git a/vpnor/test/tmpd.cpp b/vpnor/test/tmpd.cpp
index 723bf56..1aaa1fb 100644
--- a/vpnor/test/tmpd.cpp
+++ b/vpnor/test/tmpd.cpp
@@ -37,6 +37,6 @@
     return len;
 }
 
-} // test
-} // virtual_pnor
-} // openpower
+} // namespace test
+} // namespace virtual_pnor
+} // namespace openpower
diff --git a/vpnor/test/tmpd.hpp b/vpnor/test/tmpd.hpp
index 45260ca..09d53ee 100644
--- a/vpnor/test/tmpd.hpp
+++ b/vpnor/test/tmpd.hpp
@@ -97,6 +97,6 @@
     const std::string attributes[4] = {"ro", "rw", "prsv", "patch"};
 };
 
-} // test
-} // virtual_pnor
-} // openpower
+} // namespace test
+} // namespace virtual_pnor
+} // namespace openpower