Use clang-tidy to wrap single-line blocks into {}

This commit is contained in:
rbock
2017-09-10 15:05:34 +02:00
parent f4612061d7
commit 6a9715b59d
24 changed files with 90 additions and 0 deletions

View File

@@ -108,10 +108,14 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
if (requires_braces_t<Table>::value)
{
context << "(";
}
serialize(t._table, context);
if (requires_braces_t<Table>::value)
{
context << ")";
}
context << " AS " << name_of<T>::char_ptr();
return context;
}