User forums > Using Code::Blocks
why isn't showed in Intellegence list?
cambalinho:
--- Quote from: cacb on October 08, 2014, 03:07:44 pm ---
--- Quote from: cambalinho on October 08, 2014, 09:21:49 am ---why the Mousehover and TabStop aren't showed in Intelligence List?(when we write the dot, a list is showed)
--- End quote ---
Is your comma-notation and functions without retyrn type proper C++ syntax? I am guessing this would confuse C::B
you have
property <int> Mousehover
{
Get(int)
{
return intMouseHover;
},
Set(int mousehover)
{
intMouseHover = mousehover;
}
};
I would guess you need something like (observe comma removed, return types added)
property <int> Mousehover
{
int Get()
{
return intMouseHover;
}
void Set(int mousehover)
{
intMouseHover = mousehover;
}
};
--- End quote ---
if you can give me the right macro.. i accept ;)
heres the Get and Set macros:
--- Code: ---#define Get(x) [this]()->x
#define Set(...) [this](__VA_ARGS__)->void
--- End code ---
cambalinho:
--- Quote from: ollydbg on October 08, 2014, 03:28:37 pm ---
--- Quote from: cambalinho on October 08, 2014, 09:21:49 am ---i have these property class:
**snip**
**snip**
why the Mousehover and TabStop aren't showed in Intelligence List?(when we write the dot, a list is showed)
--- End quote ---
Hi, cambalinho.
Our CodeCompletion's parser currently doesn't have the ability to parse the new C++ grammar like "[this]()->x". (I don't understand those grammar too :)), so you code are not parsed correctly. Two solutions:
1, help us to improve, if you have ability to read the CodeCompletion's source code, you will see that we have very limited C++ semantic check when parsing, in-fact, C++ language is very hard to parse, see: Why is C++ grammar so hard to parse? - Quora or many other related discussions.
2, you can use some external tools currently like Clang codecompletion, our developer Alpha have implement such plugin, see: Clang based CC, new CC interface. Note Clang is a full compiler suite, so it has the ability to parse very complex C++ source code and give your very precise code suggestion. I'm not use Clang quite often, maybe, its speed is not very good, you can follow that thread for more informations.
--- End quote ---
sorry i don't know how CodeCompletion works...
edison:
The parsing speed of Clang CC plug-in is very very slow, but it works.
The build-in CC of CB sometimes need to re-open the file and sometimes can not provide correct hint when enabled the std=c++11 switch with MinGW (http://forums.codeblocks.org/index.php/topic,19611.0.html).
cambalinho:
edison: how can i found it and download it?
stahta01:
--- Quote from: cambalinho on October 09, 2014, 03:42:41 pm ---edison: how can i found it and download it?
--- End quote ---
I would start here in the CB Wiki
http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches
But, going to here would likely be faster
http://forums.codeblocks.org/index.php/topic,18785.0.html
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version