forked from qt-creator/qt-creator
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:
@@ -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]);
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user