From 4796d4317f8463315518b7f46110fab13c5f125c Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Wed, 18 Aug 2021 09:53:48 +0200 Subject: [PATCH] STY: Formatting --- include/caosdb/data_type.h | 7 ++++--- include/caosdb/entity.h | 4 ++-- test/test_entity.cpp | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/include/caosdb/data_type.h b/include/caosdb/data_type.h index cd141d6..7afc694 100644 --- a/include/caosdb/data_type.h +++ b/include/caosdb/data_type.h @@ -20,9 +20,10 @@ */ /** - * DataTypes have 2 dimensions: They may be atomic or reference typed, and they may be scalar or - * list valued. If they are atomic, they have an AtomicDataType. If they are reference typed, the - * reference name can be obtained with GetName(). + * DataTypes have 2 dimensions: They may be atomic or reference typed, and they + * may be scalar or list valued. If they are atomic, they have an + * AtomicDataType. If they are reference typed, the reference name can be + * obtained with GetName(). */ #ifndef CAOSDB_DATA_TYPE_H diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index 8d3aeb9..b66a0d2 100644 --- a/include/caosdb/entity.h +++ b/include/caosdb/entity.h @@ -559,8 +559,8 @@ private: * * Should only be instantiated and write-accessed by the owning entity. * - * Note that iterating over the Property contents only works via references, since the Property copy - * constructor is deliberately disabled: + * Note that iterating over the Property contents only works via references, + * since the Property copy constructor is deliberately disabled: * * \code * // Accessing single properties as reference diff --git a/test/test_entity.cpp b/test/test_entity.cpp index e7d3ef5..0726bec 100644 --- a/test/test_entity.cpp +++ b/test/test_entity.cpp @@ -31,10 +31,10 @@ #include "caosdb/transaction.h" // for Transaction #include "caosdb/value.h" // for Value #include <exception> -#include <google/protobuf/arena.h> // for Arena -#include <gtest/gtest-message.h> // for Message -#include <gtest/gtest-test-part.h> // for TestPartResult, Sui... -#include <gtest/gtest_pred_impl.h> // for Test, EXPECT_EQ +#include <google/protobuf/arena.h> // for Arena +#include <gtest/gtest-message.h> // for Message +#include <gtest/gtest-test-part.h> // for TestPartResult, Sui... +#include <gtest/gtest_pred_impl.h> // for Test, EXPECT_EQ #include <iostream> #include <memory> // for allocator, shared_ptr #include <stdexcept> @@ -398,7 +398,7 @@ TEST(test_entity, test_property_iterator) { ASSERT_EQ(entity.GetProperties().size(), 5); int counter = 0; for (auto &property : entity.GetProperties()) { - // TODO Copy constructor was deleted + // TODO(tf) Copy constructor was deleted // auto nonref_property = entity.GetProperties().at(counter); auto name = "PROPERTY-" + std::to_string(counter); EXPECT_EQ(property.GetName(), name); -- GitLab