Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: 7sean68 on December 22, 2016, 02:30:09 pm

Title: code completion problems with mingw-32 gcc g++ 5.3.0-2
Post by: 7sean68 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
Title: Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
Post by: oBFusCATed 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.
Title: Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
Post by: 7sean68 on December 22, 2016, 06:59:15 pm
no I was wrong.
I have to type
Code
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
using namespace std;
Title: Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
Post by: oBFusCATed on December 22, 2016, 07:34:59 pm
Keep in mind that our parse is not c++11 capable!
Title: Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
Post by: 7sean68 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
Title: Re: code completion problems with mingw-32 gcc g++ 5.3.0-2
Post by: yvesdm3000 on December 23, 2016, 06:49:42 am
There is also the code-completion plugin based on clang.

Yves