News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

autocompletion for C++11 new features

Started by koala01, March 06, 2013, 12:43:43 PM

Previous topic - Next topic

koala01

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
typedef /*<const | volatile>*/ OrignalType /* <template information> <& | *> */ TypeAlias;
but with C++11  it is recommanded to write something like
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 ?

hdastwb

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:

  • Brace/Uniform Initializers (the recommended way of initializing variables): type var{value};
  • Type Aliases (the recommended way of renaming types): using type = type;
  • Enum Classes (the recommended way of using enumerations): enum class name [: type] {...};

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!