Qt4 c++ parser patch for kdevelop [final]

Tobias Erbsland terbsland at printsoft.ch
Fri May 20 15:24:44 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt4_foreach_final.patch
Type: text/x-diff
Size: 27975 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050520/db7eb0b7/attachment.bin>


More information about the KDevelop-devel mailing list