add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/notimpl/readonly.cpp b/notimpl/readonly.cpp
index f6ddad3..1ae2b30 100644
--- a/notimpl/readonly.cpp
+++ b/notimpl/readonly.cpp
@@ -14,10 +14,9 @@
* limitations under the License.
*/
-#include <stdexcept>
-
#include "readonly.hpp"
+#include <stdexcept>
void ReadOnly::write(double value)
{
diff --git a/notimpl/readonly.hpp b/notimpl/readonly.hpp
index a609e22..2929b75 100644
--- a/notimpl/readonly.hpp
+++ b/notimpl/readonly.hpp
@@ -4,23 +4,22 @@
#include "interfaces.hpp"
-
-class ReadOnly: public WriteInterface
+class ReadOnly : public WriteInterface
{
- public:
- ReadOnly()
- : WriteInterface(0, 0)
- { }
+ public:
+ ReadOnly() : WriteInterface(0, 0)
+ {
+ }
- void write(double value) override;
+ void write(double value) override;
};
-class ReadOnlyNoExcept: public WriteInterface
+class ReadOnlyNoExcept : public WriteInterface
{
- public:
- ReadOnlyNoExcept()
- : WriteInterface(0, 0)
- { }
+ public:
+ ReadOnlyNoExcept() : WriteInterface(0, 0)
+ {
+ }
- void write(double value) override;
+ void write(double value) override;
};
diff --git a/notimpl/writeonly.cpp b/notimpl/writeonly.cpp
index a465ecf..9fc99fd 100644
--- a/notimpl/writeonly.cpp
+++ b/notimpl/writeonly.cpp
@@ -14,13 +14,11 @@
* limitations under the License.
*/
-#include <stdexcept>
-
#include "writeonly.hpp"
+#include <stdexcept>
ReadReturn WriteOnly::read(void)
{
throw std::runtime_error("Not supported.");
}
-
diff --git a/notimpl/writeonly.hpp b/notimpl/writeonly.hpp
index 4c26fbd..6dc7afd 100644
--- a/notimpl/writeonly.hpp
+++ b/notimpl/writeonly.hpp
@@ -3,13 +3,12 @@
#include "interfaces.hpp"
-
-class WriteOnly: public ReadInterface
+class WriteOnly : public ReadInterface
{
- public:
- WriteOnly()
- : ReadInterface()
- { }
+ public:
+ WriteOnly() : ReadInterface()
+ {
+ }
- ReadReturn read(void) override;
+ ReadReturn read(void) override;
};