Author Topic: code completion problems with mingw-32 gcc g++ 5.3.0-2  (Read 1038 times)

Offline 7sean68

  • Single posting newcomer
  • *
  • Posts: 3
code completion problems with mingw-32 gcc g++ 5.3.0-2
« on: December 22, 2016, 02:30:09 pm »
code completion has some problems with mingw-32 gcc g++ 5.3.0-2 for example it won't show any suggestions for string functions (ie when u have a string s then try to type "s." it won't show any suggestions.) same for begin() and end() functions for all classes. I  think it has something to do with the #if surrounding these functions in g++ 5.3.0-2 I tried to declare a variable inside a #if, as expected the plugin didn't see the variable  :'(



so does anyone here have experience in the development of this plugin ... I think it won't be much work. I intend to do it but I need someone experienced

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
« Reply #1 on: December 22, 2016, 02:54:54 pm »
Do you have a minimal example that reproduces the problem?
Make sure there are no include directives inside it.
<debugger plugin maintainer>
(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!]

Offline 7sean68

  • Single posting newcomer
  • *
  • Posts: 3
Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
« Reply #2 on: December 22, 2016, 06:59:15 pm »
no I was wrong.
I have to type
Code: [Select]
using namespace std::__cxx11; for the code completion to see string methods but that line is not necessary to run string methods it only needs
Code: [Select]
using namespace std;

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
« Reply #3 on: December 22, 2016, 07:34:59 pm »
Keep in mind that our parse is not c++11 capable!
<debugger plugin maintainer>
(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!]

Offline 7sean68

  • Single posting newcomer
  • *
  • Posts: 3
Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
« Reply #4 on: December 22, 2016, 10:38:52 pm »
so, is there any plans for improving it to be c++11 capable as the default mode for C is now -std=gnu11.
If so I'd like to participate.   :D

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
« Reply #5 on: December 23, 2016, 06:49:42 am »
There is also the code-completion plugin based on clang.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib