Commit Graph

31 Commits

Author SHA1 Message Date
Erik Verbruggen
8e4fb678fd Removing SimpleToken 2010-07-02 11:18:51 +02:00
Erik Verbruggen
e3e8b1a5c0 Removed the TokenCache. 2010-07-02 11:18:51 +02:00
Erik Verbruggen
e42ca194c5 Introduced token caching to prevent repetetive tokenizing.
Also removed TokenUnderCursor as it's functionality is in the token cache.

Reviewed-by: ckamm
2010-06-14 10:10:05 +02:00
Erik Verbruggen
424b9724d6 Revert "Introduced a token cache for the C++ editor."
This reverts commit c2393df023.
2010-06-04 12:37:26 +02:00
Erik Verbruggen
c2393df023 Introduced a token cache for the C++ editor.
This should speed things up a bit, because before, the line was tokenized at
least 3 times.
2010-06-04 09:36:05 +02:00
Erik Verbruggen
3082395c14 Disabled invalid ObjC++ discovery code.
Task-number: QTCREATORBUG-1501
Reviewed-by: Roberto Raggi
2010-05-28 12:15:54 +02:00
Erik Verbruggen
a2ded1e8ea Added boundary check. 2010-03-12 11:32:43 +01:00
Erik Verbruggen
933ef8cff0 Added bounds check. 2010-03-12 11:32:42 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Roberto Raggi
55175c149c Fixed scope completion after a template-id. For example, when completing std::list<int>::i... 2009-12-07 15:33:08 +01:00
Erik Verbruggen
2d2d0b59c8 Changed ExpressionUnderCursor to handle Objective-C send-message operations. 2009-11-11 09:35:42 +01:00
Erik Verbruggen
72d4493fc2 Added scope calculation for Objective-C classes. 2009-11-11 09:21:06 +01:00
Roberto Raggi
50d60e712c Initialize ExpressionUnderCursor's _jumpedComma. 2009-10-21 17:05:36 +02:00
Roberto Raggi
8ccc07a10b Stop at the T_COMMA when searching backward for an expression. 2009-10-12 12:25:22 +02:00
Roberto Raggi
ac4f53ef40 Search for `complete' expressions followed by a T_COMMA
As a side-effect, we can finally complete things like connect(&a, SIGNAL(
2009-10-08 14:51:30 +02:00
Roberto Raggi
42c676d19a Added BackwardsScanner::mid(tokenIndex). Mid() returns a substring starting from the position of the given token. 2009-09-21 17:38:25 +02:00
Roberto Raggi
a49395a0ea Made the indenter more Qt friendly. Added support for moc keywords. 2009-09-21 16:10:17 +02:00
Roberto Raggi
82b80b9e39 Automagically insert matching characters. 2009-09-17 17:58:00 +02:00
Roberto Raggi
dfa6be721d Added the helper class MatchingText and use it to automagically insert text for curly braces. 2009-09-17 15:51:15 +02:00
Roberto Raggi
71c46fbc54 Added BackwardsScanner 2009-09-17 12:29:22 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Thorbjørn Lindeijer
878bc07201 Introduced a backwards scanner for finding expression under cursor
The backwards scanner lazily tokenizes strings. This optimizes the
common case where scanning one or two lines is enough while at the same
time we extended the limit from 5 to 10 lines.

Reviewed-by: Roberto Raggi
2009-05-27 16:00:10 +02:00
Thorbjørn Lindeijer
cb75dd05ea Prevent endless loop when no matching brace is found
Would show up when typing ")," where the closing brace doesn't have a
matching opening brace, for example.

Done with Roberto Raggi.
2009-04-09 11:16:24 +02:00
Thorbjørn Lindeijer
86e400c9dc Trigger function argument widget on comma
Done with Roberto Raggi.
2009-03-26 13:01:39 +01:00
hjk
8ca887aae2 Fixes: change file license headers to include LGPL 2009-02-25 09:15:00 +01:00
Daniel Molkentin
59affcfffc Bump year in licence header. 2009-01-13 19:22:14 +01:00
hjk
da3cb14483 chancge Nokia GPL exception version from 1.2 to 1.3 2008-12-16 17:20:00 +01:00
hjk
ab83dcd87c off-by-one in headers 2008-12-02 14:20:25 +01:00
hjk
8a43d9b9f3 end-of-line whitespace correction of the new headers 2008-12-02 14:17:16 +01:00
con
05c35356ab Initial import 2008-12-02 12:01:29 +01:00