Roberto Raggi
eb749ec3a2
Generalized the changeset operations.
2010-06-22 12:13:30 +02:00
Roberto Raggi
b13d6ae362
Removed CppQuickFixOperation::cppRefactoringChanges().
2010-06-22 12:13:30 +02:00
Roberto Raggi
91eff02007
Moved CppRefactoringChanges.
2010-06-22 12:13:30 +02:00
Erik Verbruggen
f3faf34db9
Removed implicit change set and related utility methods.
2010-06-14 17:16:45 +02:00
Erik Verbruggen
297b281ced
Added infrastructure to change multiple files at once.
2010-06-14 15:03:10 +02:00
Roberto Raggi
f5dae8bc9f
Refactored the quickfix engine.
2010-06-07 12:16:45 +02:00
Erik Verbruggen
0877e56d97
Fixed possible unsigned overflow.
2010-06-04 11:15:38 +02:00
Roberto Raggi
bcf50a0a49
Generalized the quickfix collector.
2010-06-03 15:15:11 +02:00
Roberto Raggi
3d81ae8574
Reduced the usage of CppQuickFixOperation.
2010-06-03 14:45:55 +02:00
Roberto Raggi
a40349c09b
Reimplemented the C++ quick fix operations using TextEditor::QuickFixOperation.
2010-06-03 14:24:12 +02:00
Erik Verbruggen
3eee397abd
Moved ASTPath to its own header/source files.
2010-05-28 16:29:53 +02:00
Roberto Raggi
49c75444bd
Removed obsolete code.
2010-05-26 13:55:10 +02:00
con
38f6379f39
Merge remote branch 'origin/2.0'
...
Conflicts:
doc/qtcreator.qdoc
src/plugins/find/currentdocumentfind.cpp
src/plugins/qt4projectmanager/qt-s60/s60createpackagestep.cpp
2010-05-17 17:40:40 +02:00
Robert Loehning
896f474511
String fixes
...
Reviewed-by: Leena Miettinen
2010-05-17 15:50:33 +02:00
Roberto Raggi
d9527680a9
Try to use the new LookupContext.
2010-05-05 16:36:46 +02:00
Roberto Raggi
32a84df5c0
Deprecated the current LookupContext.
2010-05-05 16:36:44 +02:00
Thorbjørn Lindeijer
41ab8fbbf1
Moved TextEditDocumentLayout and related classes to their own file
...
The Parentheses, TextBlockUserData and TextEditDocumentLayout classes
and their member function implementations were spread around the
BaseTextEditor class. Moving them to their own file to make the code a
bit better organized.
Reviewed-by: mae
2010-04-26 14:42:11 +02:00
Erik Verbruggen
318bb4c398
Only show ObjC-quickfix when the editor has the appropriate mime-type.
...
Reviewed-by: Thorbjørn Lindeijer
2010-03-24 15:01:19 +01:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
Oswald Buddenhagen
75b42f18d8
Merge remote branch 'origin/1.3'
...
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Roberto Raggi
1ba889a1bf
Generalized the filtering of completion items.
2010-01-26 11:44:45 +01:00
Christian Kamm
a298759def
Quickfix: Add one that replaces + with % for strings.
...
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2010-01-08 15:24:23 +01:00
Erik Verbruggen
cc79467d00
Added CString->NSString quick-fix.
2010-01-06 17:39:36 +01:00
Erik Verbruggen
59a4b03b17
ifdeffed out a debug-utility method.
2010-01-06 17:39:36 +01:00
Erik Verbruggen
99bc0bc672
Added a dump method to the ASTPath.
2010-01-06 17:39:35 +01:00
Erik Verbruggen
8d8312a427
Fix to include the last character of a node into the position calculation.
2010-01-06 17:39:35 +01:00
Erik Verbruggen
c50172e201
Changed string-wrapping quickfix to handle @"strings".
2010-01-06 17:39:35 +01:00
Christian Kamm
f463f3ab07
Quickfix: Use a LookupContext instead of TypeOfExpression to get type.
...
There's no need to reparse something we already got the AST of.
2009-12-23 14:54:02 +01:00
Christian Kamm
0daf22c7a0
Quickfix: Add a typeOf helper to conveniently get the type of an expr.
...
Reviewed-by: Erik Verbruggen
2009-12-23 12:56:51 +01:00
Christian Kamm
37df3ae5e7
Quickfix: Wrap string literal in QLatin1String(...)
2009-12-22 12:24:06 +01:00
Roberto Raggi
51de95c497
Use the text editor revision to ignore outdated parse results.
2009-12-15 15:52:55 +01:00
Christian Kamm
8269be2ab9
Quickfix: Don't crash on ifstmts with a null statement member.
2009-12-15 10:12:50 +01:00
Christian Kamm
d8427157b2
Quickfix: Disallow semantically invalid splits of if statements.
2009-11-27 14:43:50 +01:00
Christian Kamm
cf975fc308
Quickfix: Use existing parentheses and negate by removing ! if possible.
2009-11-27 11:00:24 +01:00
Christian Kamm
f1af5fb4ef
Quickfix: Add two new refactorings for logical binary expressions.
...
a op b -> !(a invop b)
and
a op b -> b flipop a
2009-11-26 16:04:11 +01:00
Christian Kamm
4c427aec82
Quickfix: Be more efficient when looking up token start/end positions.
2009-11-26 15:00:54 +01:00
Christian Kamm
43129a2928
Quickfix: Add flip helpers.
2009-11-26 14:48:53 +01:00
Christian Kamm
36913baf94
Quickfix: Rewrite existing code to use the new edit operations.
2009-11-26 14:01:08 +01:00
Christian Kamm
80b52e589d
Improve ChangeSet to support more rewriting operations.
2009-11-26 12:24:18 +01:00
Roberto Raggi
efdd8ceaa0
Rename applyChangeSet() to apply()
2009-11-25 12:28:22 +01:00
Roberto Raggi
3e93c5eff7
Some more cleanup
2009-11-25 12:22:55 +01:00
Roberto Raggi
d6fa4e2079
Get rid off translationUnit
2009-11-25 12:10:01 +01:00
Roberto Raggi
7edb110e45
Check for valid paths
...
Reviewed-By: Christian Kamm <christian.d.kamm@nokia.com >
2009-11-25 10:41:11 +01:00
Christian Kamm
d2e7f8e4e6
Quickfix: Don't crash when the AST path is empty.
2009-11-25 10:01:05 +01:00
Roberto Raggi
8545851927
Split create/apply change set.
2009-11-24 12:48:36 +01:00
Roberto Raggi
6594f7a267
Added getters
2009-11-24 12:39:34 +01:00
Roberto Raggi
4abd0aeff3
Removed the extra QTextCursor formal argument from QuickFixOperator::match().
2009-11-24 11:49:56 +01:00
Roberto Raggi
bab8c94f13
Show the quickfixes in the context menu.
2009-11-23 16:55:25 +01:00
Christian Kamm
67e2ecb663
QuickFix: rename contains->isCursorOn, remove selectNode,selectToken
...
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2009-11-23 16:18:34 +01:00
Roberto Raggi
ebfe9905ef
Quickfix: Added move declaration out of while conditions.
2009-11-23 15:54:24 +01:00