forked from qt-creator/qt-creator
C++11: Make expression-list expand to initializer-list.
This will fix a couple more places where brace-init-lists and pack expansions are allowed but are not currently accepted by the parser. For example: foo(abc...); now parses correctly. Change-Id: I93710cef35154fea8437329f3174e4a2d56637b8 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
template <class ... Args>
|
||||
int foo(Args args...) {
|
||||
bar(args..., {args...}, e, f);
|
||||
}
|
||||
@@ -145,6 +145,7 @@ void tst_cxx11::parse_data()
|
||||
QTest::newRow("aliasDecl.1") << "aliasDecl.1.cpp" << "";
|
||||
QTest::newRow("enums.1") << "enums.1.cpp" << "";
|
||||
QTest::newRow("templateGreaterGreater.1") << "templateGreaterGreater.1.cpp" << "";
|
||||
QTest::newRow("packExpansion.1") << "packExpansion.1.cpp" << "";
|
||||
}
|
||||
|
||||
void tst_cxx11::parse()
|
||||
|
||||
Reference in New Issue
Block a user