cppsupport & codecompletion

Roberto Raggi raggi at cli.di.unipi.it
Fri Feb 15 11:22:03 UTC 2002


sorry :-) this fix a dummy bug.. 

please replace this line in the file simpleparser.cpp
QRegExp keywords( 
"\\b(public|protected|private|mutable|typename|case|new|delete|enum|class|virtual|const|extern|static|struct|if|else|return|while|for|do)\\b" 
); // etc..

with this
QRegExp keywords( 
"[^_\\w](public|protected|private|mutable|typename|case|new|delete|enum|class|virtual|const|extern|static|struct|if|else|return|while|for|do)[^_\\w]" 
); // etc..

my simpleparser returns all local variables declared in a block.. the idea of 
simpleparser is to remove not necessary text and the parse the block..
without this fix simpleparser removes the prefix 'new' in the identifier such 
'new_window'.. because '_' match with \\b

PS: now i'm working on support for pointer indirection level an namespaces

PS2: can you add QRegExp3 in kdevelop cvs?? .. so codecompletion can works 
with kde2.2 too

ciao robe

On Friday 15 February 2002 11:05, you wrote:
> hello daniel,
> many people ask me a version of codecompletion for kdev2.1.. so i post the
> patch.. i think that for gideon we need to use a better parser and your
> cool persistant class store.. for incremental parser i've an idea.. but for
> now is only an idea(i don't know if this work).. if you want we and thomas
> can chat on this issue on irc..
>
> ciao robe
>
> On Friday 15 February 2002 10:55, you wrote:
> > hello roberto,
> >
> > yesterday i discovered a qt3-bug (i think so, because writing files via
> > QDataStream that are > 16mb causes a SIGRT) and informed trolltech. so
> > the ccClassStore is only usable if the includes are smaller than 16mb
> > (qt2/kde2 for instance). so i'll integrate your changes and hope to
> > commit the stuff this weekend. then we'll have the same code- base for
> > further commits (your patch was against current cvs so i'll have to do
> > something by hand - no problem, really :)
> >
> > what's your current plan ? working on a incremental parser with or
> > without thomas schilling ? or improving the codecompletionparser /
> > nodeparser (your code) ?
> >
> > bye,
> > daniel





More information about the KDevelop-devel mailing list