Author Topic: No IDE-Support for C++11 initialization syntax?  (Read 2830 times)

ZaHaDum1984

  • Guest
No IDE-Support for C++11 initialization syntax?
« on: January 26, 2017, 02:51:10 pm »
Hello Coders,

If I write C++ code, I use features of the C++11 standard.

Unfortunately Code::Blocks seems to be unable to handle the C++11 initialization syntax for variables.

Code
// old syntax
int i = 0;

// C++11 syntax
int i {0};

Whenever I want to use a variable which I have initialized by using the C++11 syntax, I don't get any help/completion/suggestion from the IDE. That is very unfortunate. >:(

How can I fix this issue?

Greetings

ZaHaDum1984
« Last Edit: January 26, 2017, 02:52:46 pm by ZaHaDum1984 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: No IDE-Support for C++11 initialization syntax?
« Reply #1 on: January 26, 2017, 08:13:01 pm »
How can I fix this issue?
Use the clang code completion plugin (requires manual compilation) or provide a patch for our parser.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]