Reformatted using clang-format

Please use clang-format before submitting code, e.g via the pre-commit
supplied in the repo (thanks AndiDog)
This commit is contained in:
rbock
2015-09-13 21:33:19 +02:00
parent 46c565c5c5
commit 09f23cea0a
168 changed files with 11984 additions and 11583 deletions

View File

@@ -32,7 +32,7 @@ MockDb db;
int main()
{
test::TabBar t;
test::TabBar t;
count(count(t.alpha));
count(count(t.alpha));
}

View File

@@ -32,7 +32,7 @@ MockDb db;
int main()
{
test::TabBar t;
test::TabBar t;
max(max(t.alpha));
max(max(t.alpha));
}

View File

@@ -32,7 +32,7 @@ MockDb db;
int main()
{
test::TabBar t;
test::TabBar t;
insert_into(t).set(t.alpha = 7, t.gamma = false, t.beta = "alpha must not be set");
insert_into(t).set(t.alpha = 7, t.gamma = false, t.beta = "alpha must not be set");
}

View File

@@ -31,7 +31,7 @@ MockDb db;
int main()
{
test::TabBar t;
test::TabBar t;
update(t).set(t.alpha = 7, t.gamma = false, t.beta = "alpha must not be set");
update(t).set(t.alpha = 7, t.gamma = false, t.beta = "alpha must not be set");
}

View File

@@ -27,22 +27,23 @@
#include "MockDb.h"
#include <sqlpp11/sqlpp11.h>
EnforceDb edb {};
EnforceDb edb{};
int main()
{
test::TabBar t;
test::TabBar t;
static_assert(sqlpp::can_be_null_t<decltype(t.alpha)>::value, "t.alpha can be null");
static_assert(not sqlpp::null_is_trivial_value_t<decltype(t.alpha)>::value, "t.alpha does not say null_is_trivial");
static_assert(sqlpp::can_be_null_t<decltype(t.alpha)>::value, "t.alpha can be null");
static_assert(not sqlpp::null_is_trivial_value_t<decltype(t.alpha)>::value, "t.alpha does not say null_is_trivial");
for (const auto& row : edb(select(all_of(t)).from(t).where(true)))
{
static_assert(sqlpp::can_be_null_t<decltype(row.alpha)>::value, "row.alpha can be null");
static_assert(not sqlpp::null_is_trivial_value_t<decltype(row.alpha)>::value, "row.alpha does not interpret null_is_trivial");
for (const auto& row : edb(select(all_of(t)).from(t).where(true)))
{
static_assert(sqlpp::can_be_null_t<decltype(row.alpha)>::value, "row.alpha can be null");
static_assert(not sqlpp::null_is_trivial_value_t<decltype(row.alpha)>::value,
"row.alpha does not interpret null_is_trivial");
int i = row.alpha;
}
int i = row.alpha;
}
return 0;
return 0;
}

View File

@@ -32,7 +32,7 @@ MockDb db;
int main()
{
test::TabBar t;
test::TabBar t;
insert_into(t).set(t.beta = "need also to insert gamma");
insert_into(t).set(t.beta = "need also to insert gamma");
}