diff options
| author | Patrick Venture <venture@google.com> | 2018-08-31 09:42:48 -0700 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2018-08-31 09:53:59 -0700 |
| commit | da4a5dd133b88ebfeb69e89d05b381f81ba70e50 (patch) | |
| tree | aa1b8dcd7ce1432491e20d8a110fe2f762b59908 /notimpl | |
| parent | 40be36ac31a4756498a1f297324129fe1271b726 (diff) | |
| download | phosphor-pid-control-da4a5dd133b88ebfeb69e89d05b381f81ba70e50.tar.gz phosphor-pid-control-da4a5dd133b88ebfeb69e89d05b381f81ba70e50.zip | |
add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'notimpl')
| -rw-r--r-- | notimpl/readonly.cpp | 3 | ||||
| -rw-r--r-- | notimpl/readonly.hpp | 25 | ||||
| -rw-r--r-- | notimpl/writeonly.cpp | 4 | ||||
| -rw-r--r-- | notimpl/writeonly.hpp | 13 |
4 files changed, 20 insertions, 25 deletions
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; }; |

