News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

modify codecompletion plugin to macro parser

Started by visualfc, November 10, 2009, 05:16:55 PM

Previous topic - Next topic

ollydbg

Quote from: oBFusCATed on November 12, 2009, 04:31:10 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.

MortenMacFly

Quote from: ollydbg on November 12, 2009, 04:36:00 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

eranif


ollydbg

Quote from: eranif on November 13, 2009, 12:28:40 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.

eranif

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

ollydbg

Quote from: eranif 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).

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.