Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] C++11 Features - Semantic Implementation (was: Extended API to add support for nullptr (C++11))

Thanks for the links. Actually, I meant whether there was a collection of C++11 features yielding problems visible in the editor (apart from Codan), i.e. those orange squares with a question mark in it.

Since everything has been implemented up to GCC 4.5, I don't expect to find there any liabilities visible in the editor.
Looking at the list for GCC 4.6 I expect the following:
* Generalized constant expressions - introduces new keyword (constexpr)
* Unrestricted unions - no additional syntax
* Allowing move constructors to throw - introduces new keyword (noexcept)
* Defining move special member functions - additions are already covered in previous extensions

Regarding GCC 4.7:
* Non-static data member initializers - already accepted by the parser syntactically
* Template aliases - syntax for alias declaration required (Ticket #374694)
* User-defined literals - Requires extensions to the lexer (literals) and the parser (literal operator)
* Extended friend declarations - Parser needs to accept type specifiers, after the friend keyword, additionally
* Explicit virtual overrides - new keywords (final, override), extended parser rules to accept them in place
* Delegating constructors - As far as I can see, are they already accepted syntactically.

Is it realistic to get all those features into Juno?



-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schorn, Markus
Sent: Mittwoch, 9. Mai 2012 11:20
To: CDT General developers list.
Subject: Re: [cdt-dev] Extended API to add support for nullptr (C++11)

Hi Thomas,
The c++11 support is tracked via bugzilla. There is one container bug per gcc-version:
gcc 4.3  https://bugs.eclipse.org/bugs/show_bug.cgi?id=294730
gcc 4.4  https://bugs.eclipse.org/bugs/show_bug.cgi?id=302282
gcc 4.5  https://bugs.eclipse.org/bugs/show_bug.cgi?id=316306
gcc 4.6: https://bugs.eclipse.org/bugs/show_bug.cgi?id=327297
gcc 4.7: https://bugs.eclipse.org/bugs/show_bug.cgi?id=363234

Markus.

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of tcorbat@xxxxxx
Sent: Wednesday, May 09, 2012 11:01 AM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Extended API to add support for nullptr (C++11)

Hello

To backup Nathans request, we (at IFS/HSR) would also really appreciate, if CDT would recognize C++11 syntactically. It would lessen the questions of our students learning C++11 next semester.
When I finish the alias declaration feature, I might have some time to support the work on that.
I guess there is no list of C++11 features not recognized syntactically yet, right?

Regards
Thomas 


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schorn, Markus
Sent: Montag, 7. Mai 2012 07:05
To: CDT General developers list.
Subject: Re: [cdt-dev] Extended API to add support for nullptr (C++11)

Hi,
I don't think it is realistic to add support for constexpr in the Juno time frame. In order to make constant expressions work, we need to deal with dependent expressions, which we have avoided until now (https://bugs.eclipse.org/bugs/show_bug.cgi?id=299911) . Also we need a (similar) concept of evaluating expressions for a specific parameter assignment.
I have a local branch where I work on the dependent expressions. Because I can't spend as much time on CDT as I used to, it takes its time to complete this task. Even if I finish it in the next weeks I will not commit it to Juno, it'd be too risky at this point in the development cycle.

Adding support for the syntax only, could be done for Juno.  I will concentrate on the dependent expressions, though.
Markus.

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Nathan Ridge
Sent: Friday, May 04, 2012 7:57 PM
To: CDT Mailing List
Subject: Re: [cdt-dev] Extended API to add support for nullptr (C++11)


> On Fri, May 4, 2012 at 12:50 AM, Schorn, Markus 
> <Markus.Schorn@xxxxxxxxxxxxx<mailto:Markus.Schorn@xxxxxxxxxxxxx>>
> wrote: 
>  
> Hi,
>  
> I have added support for the null pointer constant
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=327298)

Nice - thanks Markus!

> From: eclipse.sprigogin@xxxxxxxxx
>  
> Is constexpr also in your plans for Juno? 
>  
> -sergey

+1

Even if complete support for constexpr (such as being evaluate to evaluate constexpr functions) is too much work for Juno, perhaps it would be possible to add just syntax-level support (i.e. have the parser recognize constexpr in the contexts where it can appear, and then just ignore it)? I think that should be sufficient to allow CDT to parse GCC 4.6 standard library headers, which would be nice progress for Juno.

Regards,
Nate
 		 	   		  
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top