Skip to content

Commit 671069e

Browse files
committed
Formatted with clangformat
1 parent 0842378 commit 671069e

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

src/mtconnect/entity/data_set.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace mtconnect::entity {
4848
{
4949
return std::holds_alternative<T2>(v1) && std::get<T2>(v1) == v2;
5050
}
51-
51+
5252
/// @brief One entry in a data set. Has necessary interface to be work with maps.
5353
/// @tparam T The type of the underlying variant data
5454
template <typename T>
@@ -109,8 +109,8 @@ namespace mtconnect::entity {
109109
/// @param other the other value to compare against `m_value`
110110
/// @returns `true` if the values are the same
111111
///
112-
/// Compares using the `SameValue` free function in the `data_set` namespace. It must be overloaded
113-
/// for any special types required by the variant type T.
112+
/// Compares using the `SameValue` free function in the `data_set` namespace. It must be
113+
/// overloaded for any special types required by the variant type T.
114114
bool sameValue(const Entry &other) const
115115
{
116116
const auto &ov = other.m_value;

src/mtconnect/source/adapter/adapter_pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ namespace mtconnect {
152152
// Validate Values
153153
if (IsOptionSet(m_options, configuration::Validation))
154154
next = next->bind(make_shared<Validator>(m_context));
155-
155+
156156
// Deliver
157157
std::optional<string> obsMetrics;
158158
obsMetrics = m_identity + "_observation_update_rate";

src/mtconnect/utilities.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,12 @@ namespace mtconnect {
689689
std::string::const_iterator end)
690690
{
691691
using namespace std;
692-
692+
693693
// Exceptions to the rule
694694
const static std::unordered_map<std::string_view, std::string_view> exceptions = {
695-
{"AC", "AC"}, {"DC", "DC"}, {"PH", "PH"},
696-
{"IP", "IP"}, {"URI", "URI"}, {"MTCONNECT", "MTConnect"}};
697-
695+
{"AC", "AC"}, {"DC", "DC"}, {"PH", "PH"},
696+
{"IP", "IP"}, {"URI", "URI"}, {"MTCONNECT", "MTConnect"}};
697+
698698
std::string_view s(&*start, distance(start, end));
699699
const auto &w = exceptions.find(s);
700700
ostream_iterator<char> out(camel);
@@ -724,10 +724,10 @@ namespace mtconnect {
724724
return "";
725725

726726
ostringstream camel;
727-
727+
728728
auto start = type.begin();
729729
decltype(start) end;
730-
730+
731731
auto colon = type.find(':');
732732

733733
if (colon != string::npos)

test_package/data_item_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ TEST_F(DataItemTest, GetCamel)
164164
ASSERT_EQ((string) "ABCc", pascalize("A_B_CC", prefix));
165165

166166
ASSERT_EQ((string) "ThreeHumpCamelCase", pascalize("THREE_HUMP_CAMEL_CASE", prefix));
167-
167+
168168
prefix.reset();
169169
ASSERT_EQ((string) "CamelCase", pascalize("x:CAMEL_CASE", prefix));
170170
ASSERT_EQ((string) "x", *prefix);

test_package/json_printer_stream_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ TEST_F(JsonPrinterStreamTest, should_use_array_for_empty_version_1_stream)
179179
ObservationList list;
180180
checkpoint.getObservations(list);
181181
auto doc = m_printer->printSample(123, 131072, 10254805, 10123733, 10123800, list);
182-
182+
183183
auto jdoc = json::parse(doc);
184184
json stream = jdoc.at("/MTConnectStreams/Streams"_json_pointer);
185185
ASSERT_TRUE(stream.is_array());
@@ -194,14 +194,13 @@ TEST_F(JsonPrinterStreamTest, should_use_object_for_empty_version_2_stream)
194194
ObservationList list;
195195
checkpoint.getObservations(list);
196196
auto doc = m_printer->printSample(123, 131072, 10254805, 10123733, 10123800, list);
197-
197+
198198
auto jdoc = json::parse(doc);
199199
json stream = jdoc.at("/MTConnectStreams/Streams"_json_pointer);
200200
ASSERT_TRUE(stream.is_object());
201201
ASSERT_EQ(0, stream.size());
202202
}
203203

204-
205204
TEST_F(JsonPrinterStreamTest, DeviceStream_version_2_one_device)
206205
{
207206
m_printer = std::make_unique<printer::JsonPrinter>(2, true);

0 commit comments

Comments
 (0)