Author Topic: modify codecompletion plugin to macro parser  (Read 13763 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5238
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: modify codecompletion plugin to macro parser
« Reply #15 on: November 12, 2009, 04:36:00 pm »
Kdevelop4 should have the best c++ parser of all OSS IDEs, look their svn for the source:)
But in my opinion the only path for CB's code-completion is using the clang's libs.


hi, what does "clang's libs" mean? I have googled that, but can't find the resource. Can you explain a little? Thanks.
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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: modify codecompletion plugin to macro parser
« Reply #16 on: November 13, 2009, 12:12:24 pm »
hi, what does "clang's libs" mean? I have googled that, but can't find the resource. Can you explain a little? Thanks.
I guess he meant ctags.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline eranif

  • Regular
  • ***
  • Posts: 254
Re: modify codecompletion plugin to macro parser
« Reply #17 on: November 13, 2009, 12:28:40 pm »
He meant this:

http://clang.llvm.org/

Eran

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5238
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: modify codecompletion plugin to macro parser
« Reply #18 on: November 13, 2009, 01:12:19 pm »
He meant this:

http://clang.llvm.org/

Eran
Thanks for the hint.
It seems it is a strong compiler which can give more details than the normal compiler. I'm not sure it can replace the CC plugin.

It is just like the Intel compiler, which can give the caret position to the error statement position.
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 eranif

  • Regular
  • ***
  • Posts: 254
Re: modify codecompletion plugin to macro parser
« Reply #19 on: November 13, 2009, 02:17:30 pm »
llvm seems like a nice project, but it does not fully support C++ atm (actually I think C::B parser supports more than clang does).

The problem with c-lang is that it is sponsored by big corporates like Apple and they will push it towards they directions (Objective-C/++) so dont expect to get a full CodeCompletion on silver plate ;)

Here is the C++ status of that project:

http://clang.llvm.org/cxx_status.html  - scroll down and see how in-complete it is atm

Eran
 

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5238
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: modify codecompletion plugin to macro parser
« Reply #20 on: October 25, 2010, 07:47:04 am »
llvm seems like a nice project, but it does not fully support C++ atm (actually I think C::B parser supports more than clang does).

just a reminder:

http://clang.llvm.org/cxx_status.html

seems Clang now fully support C++ in the Parser stage.

Maybe, we could use it to support code-completion. :D
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.