Fix code style

Format
This commit is contained in:
c.bachhuber 2020-03-22 22:35:51 +01:00 committed by Henry Schreiner
parent a1ef417b8d
commit 7432ab264d
4 changed files with 33 additions and 11 deletions

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include "app_helper.hpp" #include "app_helper.hpp"
#include <boost/container/flat_map.hpp> #include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp> #include <boost/container/flat_set.hpp>
@ -11,13 +17,14 @@
#include "gmock/gmock.h" #include "gmock/gmock.h"
using namespace boost::container; namespace boost {
namespace container {
template <class T> class TApp_container_single_boost : public TApp { template <class T> class TApp_container_single_boost : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_single_boost() : TApp(){}; TApp_container_single_boost() : TApp() {}
}; };
using containerTypes_single_boost = using containerTypes_single_boost =
@ -47,7 +54,7 @@ template <class T> class TApp_container_pair_boost : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_pair_boost() : TApp(){}; TApp_container_pair_boost() : TApp() {}
}; };
using isp = std::pair<int, std::string>; using isp = std::pair<int, std::string>;
@ -75,7 +82,7 @@ template <class T> class TApp_container_tuple_boost : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_tuple_boost() : TApp(){}; TApp_container_tuple_boost() : TApp() {}
}; };
using tup_obj = std::tuple<int, std::string, double>; using tup_obj = std::tuple<int, std::string, double>;
@ -119,7 +126,7 @@ template <class T> class TApp_container_container_boost : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_container_boost() : TApp(){}; TApp_container_container_boost() : TApp() {}
}; };
TYPED_TEST_SUITE(TApp_container_container_boost, containerTypes_container_boost, ); TYPED_TEST_SUITE(TApp_container_container_boost, containerTypes_container_boost, );
@ -139,3 +146,6 @@ TYPED_TEST(TApp_container_container_boost, containerContainer_boost) {
TApp::run(); TApp::run();
EXPECT_EQ(cv.size(), 4u); EXPECT_EQ(cv.size(), 4u);
} }
} // namespace container
} // namespace boost

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include "app_helper.hpp" #include "app_helper.hpp"
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include <complex> #include <complex>

View File

@ -532,7 +532,7 @@ template <class T> class SimpleWrapper {
public: public:
SimpleWrapper() : val_{} {}; SimpleWrapper() : val_{} {};
explicit SimpleWrapper(const T &initial) : val_{initial} {}; explicit SimpleWrapper(const T &initial) : val_{initial} {};
T &getRef() { return val_; }; T &getRef() { return val_; }
using value_type = T; using value_type = T;
private: private:

View File

@ -1,3 +1,9 @@
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include "app_helper.hpp" #include "app_helper.hpp"
#include <complex> #include <complex>
#include <cstdint> #include <cstdint>
@ -644,7 +650,7 @@ template <class T> class TApp_container_single : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_single() : TApp(){}; TApp_container_single() : TApp() {}
}; };
using containerTypes_single = using containerTypes_single =
@ -674,7 +680,7 @@ template <class T> class TApp_container_pair : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_pair() : TApp(){}; TApp_container_pair() : TApp() {}
}; };
using isp = std::pair<int, std::string>; using isp = std::pair<int, std::string>;
@ -706,7 +712,7 @@ template <class T> class TApp_container_tuple : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_tuple() : TApp(){}; TApp_container_tuple() : TApp() {}
}; };
using tup_obj = std::tuple<int, std::string, double>; using tup_obj = std::tuple<int, std::string, double>;
@ -756,7 +762,7 @@ template <class T> class TApp_container_container : public TApp {
public: public:
using container_type = T; using container_type = T;
container_type cval{}; container_type cval{};
TApp_container_container() : TApp(){}; TApp_container_container() : TApp() {}
}; };
TYPED_TEST_SUITE(TApp_container_container, containerTypes_container, ); TYPED_TEST_SUITE(TApp_container_container, containerTypes_container, );
@ -798,7 +804,7 @@ TEST_F(TApp, unknownContainerWrapper) {
class vopt { class vopt {
public: public:
vopt() = default; vopt() = default;
vopt(const std::vector<double> &vdub) : val_{vdub} {}; explicit vopt(const std::vector<double> &vdub) : val_{vdub} {};
std::vector<double> val_{}; std::vector<double> val_{};
}; };