CppParser, CodeCompletion and ClassView Problem

Andras Mantia amantia at kde.org
Wed May 31 09:37:16 UTC 2006


On Wednesday 31 May 2006 11:53, Robert Gruber wrote:
> On Wed May 31 09:58:59 amantia at kde.org wrote:
> > 1) Why don't you use gcc instead of g++?
>
> Actually the *.c files get compiled by gcc.
> *.cc Files get compiled by g++ because even if there are just
> function (and no class definitions) they might be using the STL or
> some of our own C++ libraries.
>
> > 2) Why don't you use g++ -x c (man g++ to see what I mean)?
>
> We use the extern "C" to disable the C++ name-mangling for function
> which resides in a file for the C++ compiler but in fact are ANSI-C
> functions. Besides that g++ has a much stricter type check and so on.

So you mix C and C++ files? 

> But nevertheless, why is there a difference between the ClassView and
> the "Functions in file" combobox. Don't they both get their data from
> the CppParser?

Of course, this is a question. ;-) I just wanted to know if you can 
workaround the behavior.

Andras


-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20060531/10ff75e7/attachment.sig>


More information about the KDevelop-devel mailing list