Christian Kamm
b9f6f1bcf7
C++11: Allow uniform initialization in ctor init lists.
...
So
class C { C() : _x{12}, _y({12}) {} };
now parses correctly.
Change-Id: I4281dcb0541a86b550e74630cad6ae0a59fef1b4
Reviewed-by: hjk <qthjk@ovi.com >
2012-09-19 11:47:49 +02:00
Christian Kamm
903ba378c2
C++11: Don't fail on = default and = delete initializers.
...
These are converted to IdExpr(SimpleName(token)) initializers.
Change-Id: I1e85c4b261ca028dc75ffe6c00e1090630c2957c
Reviewed-by: hjk <qthjk@ovi.com >
2012-09-19 11:46:51 +02:00
Christian Kamm
0bdf1dc406
C++11: Allow brace initializers in return statements.
...
Like return {1, 2};
Change-Id: I7442da1866b0106bc075783653c95c16ebedb51a
Reviewed-by: hjk <qthjk@ovi.com >
2012-09-19 11:46:09 +02:00
Christian Kamm
9b7d1901ba
C++11: Allow brace initializers in assignment expressions.
...
Like:
var += {1, 2};
in a function context.
Change-Id: I3936c97c4fcb6b3dcac2979e0508d422d47fddfc
Reviewed-by: hjk <qthjk@ovi.com >
2012-09-17 15:31:40 +02:00
Christian Kamm
342709a9cc
C++11: Allow brace initializer lists in more places.
...
This allows them to be used in declarator initializers that expect
an expression list in parentheses. Like
T v({1, 2}, 3, 4);
Change-Id: I62e1ffd355ca88f7acbb8708c9b40c8310489ca3
Reviewed-by: hjk <qthjk@ovi.com >
2012-09-17 15:16:56 +02:00
Christian Kamm
813846232b
C++11: Allow for brace initializers like T v{1, 2}.
...
And add a basic test.
Change-Id: I3b8b87d51a9da154758d17380bba5922795f675c
Reviewed-by: hjk <qthjk@ovi.com >
2012-09-17 14:47:14 +02:00
Eike Ziller
e0e8cf3ada
Contact -> qt-project.org
...
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com >
2012-07-19 13:23:21 +02:00
Leandro Melo
809a4ed91a
C++: Also parse static_assert as top-level declaration
...
Add some checks for C++11 flag as well.
Change-Id: Ic5ee81d72bc88a22e71b324ef01014791b833604
Reviewed-by: hjk <qthjk@ovi.com >
2012-06-05 15:03:01 +02:00
Erik Verbruggen
3fa55b7ab9
Removed module names from #include directives.
...
Getting the #include directives ready for Qt5. This includes the
new-project wizards.
Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2012-02-15 16:24:46 +01:00
Erik Verbruggen
d679dc4d53
C++: Added tests for C++11 features.
...
Change-Id: Ifa0bc37916d3ac3a523580bec15a6685709e7810
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2012-02-10 08:30:48 +01:00
Roberto Raggi
5fb624b1db
Fix semantic of C++ 11 inline namespaces.
...
Add the declaring `inline' namespace to the `using list' of its
enclosing namespace symbol. This should be enough to ensure
the correct visibility of the symbols declarated in the inlined
namespace.
Change-Id: Id4de74577c498fe439a49709a306ef0deb145988
Reviewed-by: Leandro Melo <leandro.melo@nokia.com >
2012-02-03 15:37:17 +01:00