Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: koala01 on March 06, 2013, 12:43:43 pm

Title: autocompletion for C++11 new features
Post by: koala01 on March 06, 2013, 12:43:43 pm
Hello,

I don't know if such think have alllready been discussed, but C++ offers some new features which may change autocompletion.

I think eg to the new use of using which tend to make typedef obsolete:

To make a type alias in C++03, you have to write something like
Code
typedef /*<const | volatile>*/ OrignalType /* <template information> <& | *> */ TypeAlias;

but with C++11  it is recommanded to write something like
Code
using TypeAlias  = /* <const | volatile>*/ OriginalType  /* <template information> <& |*> */ ;
It should be great if the second syntax was recognised by auto completion like a typedef.

Is such recognition planed for development ?
Title: Re: autocompletion for C++11 new features
Post by: hdastwb on June 26, 2013, 03:24:00 am
Can I bump this thread? it never got a reply and (as of svn9162) some these expressions still aren't implemented in code completion.

Specifically, the ones that I think are the most important are:

Until these are implemented, they provide an active reinforcement to outdated C++ programming practice. I've tried figuring out how to add these to ParserThread, but I think it would be better if someone else who knows what they are doing takes care of it…

However, I see that ranged-for does work correctly; keep it up!