Author Topic: using boost libraries cannot auto-complete  (Read 4405 times)

Offline rwxdfbb

  • Single posting newcomer
  • *
  • Posts: 2
using boost libraries cannot auto-complete
« on: December 05, 2013, 04:08:52 am »
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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: using boost libraries cannot auto-complete
« Reply #1 on: December 05, 2013, 05:23:02 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: using boost libraries cannot auto-complete
« Reply #2 on: December 05, 2013, 05:28:16 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org