Qt4 c++ parser patch for kdevelop [final]

Tobias Erbsland terbsland at printsoft.ch
Fri May 20 14:22:04 UTC 2005


Hello

You find the final version of the Qt4 c++ parser patch attached to this 
message. I already tested the changes with the current version of KDevelop 
without any problems. Please test this patch, and report any errors. I will 
commit the changes at 27. or 28. May if nobody has any doubts.

Changes:

- Replaced static hash table in lexer by a QMap
  I found no performance impacts by this replacement, but the code
  was getting much smaller and cleaner.

- Added Q_DECLARE_FLAGS and Q_DECLARE_OPERATORS_FOR_FLAGS macros
  that are used in Qt4 for the special QFlags template.

- Added the keyword (macro) "foreach" to the lexer and parser that
  is introduced by Qt4.

  In a later step I will add the correct parsing, that the initial
  variable is identified by the parser that code completion works.

best regards
Tobias

[resent with compressed attachement]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt4_foreach_final.patch.bz2
Type: application/x-bzip2
Size: 6150 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050520/c5759fc2/attachment.bin>


More information about the KDevelop-devel mailing list