clang-format

This commit is contained in:
Erik Frojdh
2020-11-18 18:01:39 +01:00
parent 8565ac6cf2
commit 06dbf82e93
39 changed files with 57 additions and 59 deletions

3
slsSupportLib/include/sls/string_utils.h Executable file → Normal file
View File

@ -52,6 +52,5 @@ std::vector<std::string> split(const std::string &strToSplit, char delimeter);
std::string RemoveUnit(std::string &str);
bool is_int(const std::string& s);
bool is_int(const std::string &s);
} // namespace sls

View File

@ -1,12 +1,12 @@
/** API versions */
#define GITBRANCH "5.0.0"
#define APICTB 0x201117
#define APIGOTTHARD 0x201117
#define GITBRANCH "5.0.0"
#define APICTB 0x201117
#define APIGOTTHARD 0x201117
#define APIGOTTHARD2 0x201117
#define APIJUNGFRAU 0x201117
#define APIMYTHEN3 0x201117
#define APIMOENCH 0x201117
#define APIEIGER 0x201117
#define APILIB 0x201118
#define APIRECEIVER 0x201118
#define APIGUI 0x201118
#define APIJUNGFRAU 0x201117
#define APIMYTHEN3 0x201117
#define APIMOENCH 0x201117
#define APIEIGER 0x201117
#define APILIB 0x201118
#define APIRECEIVER 0x201118
#define APIGUI 0x201118

View File

@ -1,6 +1,6 @@
#include "catch.hpp"
#include "sls/ClientSocket.h"
#include "sls/ServerSocket.h"
#include "catch.hpp"
#include <chrono>
#include <future>
#include <iostream>

View File

@ -1,6 +1,6 @@
#include "catch.hpp"
#include "sls/StaticVector.h"
#include "sls/TypeTraits.h"
#include "catch.hpp"
#include <array>
#include <sstream>

2
slsSupportLib/tests/test-Timer.cpp Executable file → Normal file
View File

@ -1,5 +1,5 @@
#include "sls/Timer.h"
#include "catch.hpp"
#include "sls/Timer.h"
#include <chrono>
#include <thread>

View File

@ -1,6 +1,6 @@
#include "catch.hpp"
#include "sls/TimeHelper.h"
#include "sls/ToString.h"
#include "catch.hpp"
#include "sls/network_utils.h"
#include "sls/sls_detector_defs.h"
#include <array>

View File

@ -1,5 +1,5 @@
#include "sls/TypeTraits.h"
#include "catch.hpp"
#include "sls/TypeTraits.h"
#include <array>
#include <chrono>
#include <initializer_list>

View File

@ -1,5 +1,5 @@
#include "sls/UdpRxSocket.h"
#include "catch.hpp"
#include "sls/UdpRxSocket.h"
#include "sls/sls_detector_exceptions.h"
#include <cstdint>
#include <errno.h>

View File

@ -1,5 +1,5 @@
#include "sls/ZmqSocket.h"
#include "catch.hpp"
#include "sls/ZmqSocket.h"
TEST_CASE("Throws when cannot create socket") {
REQUIRE_THROWS(ZmqSocket("sdiasodjajpvv", 5076001));

View File

@ -1,5 +1,5 @@
#include "sls/bit_utils.h"
#include "catch.hpp"
#include "sls/bit_utils.h"
#include <vector>
TEST_CASE("Get set bits from 0") {

View File

@ -66,7 +66,7 @@ TEST_CASE("Many characters in a row") {
REQUIRE(std::string(str) == "someeequite::ongstring");
}
TEST_CASE("Check is string is integer"){
TEST_CASE("Check is string is integer") {
REQUIRE(sls::is_int("75"));
REQUIRE(sls::is_int("11675"));