add .clang-format
Change-Id: I94ce26d595367e08d6fb3734535bcd855f1b1473
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/env.hpp b/env.hpp
index 56dd2aa..b3ddff5 100644
--- a/env.hpp
+++ b/env.hpp
@@ -1,10 +1,11 @@
#pragma once
-#include <string>
-
#include "sensorset.hpp"
-namespace env {
+#include <string>
+
+namespace env
+{
/** @brief Reads an environment variable
*
@@ -25,8 +26,7 @@
*
* @return string - the env var value
*/
-std::string getEnv(
- const char* prefix, const SensorSet::key_type& sensor);
+std::string getEnv(const char* prefix, const SensorSet::key_type& sensor);
/** @brief Reads an environment variable, and takes type and id separately
*
@@ -36,10 +36,8 @@
*
* @return string - the env var value
*/
-std::string getEnv(
- const char* prefix,
- const std::string& type,
- const std::string& id);
+std::string getEnv(const char* prefix, const std::string& type,
+ const std::string& id);
/** @brief Gets the ID for the sensor with a level of indirection
*
@@ -50,9 +48,7 @@
* @param[in] fileSuffix - The file suffix
* @param[in] sensor - Sensor details
*/
-std::string getIndirectID(
- std::string path,
- const std::string& fileSuffix,
- const SensorSet::key_type& sensor);
+std::string getIndirectID(std::string path, const std::string& fileSuffix,
+ const SensorSet::key_type& sensor);
-} // namespace env
+} // namespace env