Remove spaces in initializer lists

Format initializer lists code style like.

Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tim Jenssen
2017-02-22 15:09:35 +01:00
parent 005ca71cac
commit 2631ffabd5
207 changed files with 1689 additions and 1689 deletions

View File

@@ -81,7 +81,7 @@ class tst_c99: public QObject
if (! errors)
return;
static const char *const pretty[] = { "warning", "error", "fatal" };
static const char *const pretty[] = {"warning", "error", "fatal"};
QString str;
str.sprintf("%s:%d:%d: %s: ", fileName->chars(), line, column, pretty[level]);

View File

@@ -83,7 +83,7 @@ class tst_cxx11: public QObject
if (! errors)
return;
static const char *const pretty[] = { "warning", "error", "fatal" };
static const char *const pretty[] = {"warning", "error", "fatal"};
QString str;
str.sprintf("%s:%d:%d: %s: ", fileName->chars(), line, column, pretty[level]);

View File

@@ -233,7 +233,7 @@ void tst_Misc::astPathOnGeneratedTokens()
QVERIFY(paths.at(4)->asSimpleName());
// Check end
for (auto i : { 7, 8, 9 }) {
for (auto i : {7, 8, 9}) {
paths = astPath(3, i);
QCOMPARE(paths.size(), 2);
QVERIFY(paths.at(0)->asTranslationUnit());

View File

@@ -612,7 +612,7 @@ void tst_Semantic::template_instance_1()
Declaration *decl = templ->memberAt(1)->asClass()->memberAt(0)->asDeclaration();
QVERIFY(decl);
FullySpecifiedType templArgs[] = { control->integerType(IntegerType::Int) };
FullySpecifiedType templArgs[] = {control->integerType(IntegerType::Int)};
const Name *templId = control->templateNameId(control->identifier("QList"), false, templArgs, 1);
FullySpecifiedType genTy = DeprecatedGenTemplateInstance::instantiate(templId, decl, control);