News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

using boost libraries cannot auto-complete

Started by rwxdfbb, December 05, 2013, 04:08:52 AM

Previous topic - Next topic

rwxdfbb

when I use boost's share_ptr library, Writing a intelligence pointer cannot auto display object's function or attribute. I attempt to add the <boost/shared_ptr.hpp> to "Editer->C/C++ parser->Headers ..." ,but It's also invalid.

ollydbg

Hi, rwxdfbb, thanks for the report.
The parser in our CodeCompletion plugin is not good at parsing template related code, so it failed on the issue your reported.
Two method:
1, make some effort to implement this feature in our parser.
2, use some modern parsers like Clang codecompletion, you can try the ClangCodeCompletion plugin(you need to search the forum to find it, download its source and build it).
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

stahta01

Quote from: ollydbg on December 05, 2013, 05:23:02 AM
2, use some modern parsers like Clang codecompletion, you can try the ClangCodeCompletion plugin(you need to search the forum to find it, download its source and build it).

http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]