Roberto Raggi
5d7def6d2a
Refactored the AST visitors.
...
Now, the ASTVisitor constructor takes a valid reference to a TranslationUnit.
2009-11-17 13:30:39 +01:00
Roberto Raggi
c13b8697d2
Introduced the quick fix engine
2009-11-13 16:14:38 +01:00
Roberto Raggi
0ae2d96a9b
Fixed the AST field names.
2009-11-10 16:47:16 +01:00
Roberto Raggi
e5eb88a31f
Ported the accept methods.
2009-11-10 16:20:13 +01:00
Roberto Raggi
380bce4527
Cleanup nested name specifiers
2009-11-10 16:20:12 +01:00
Roberto Raggi
a7219736b6
Cleanup Postfix operators.
2009-11-10 16:20:12 +01:00
Roberto Raggi
8efb73f5d2
Removed TemplateArgumentListAST
...
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
66a353067d
Don't show the warning message (about the dangerous world of code refactoring) if the user pressed the "Yes, I know I am doing" button.
2009-11-05 16:52:56 +01:00
Robert Loehning
e68753b48b
Fixed index out of range.
...
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-11-02 19:14:40 +01:00
mae
c035290602
add standard cut/copy/paste actions (if available) to the cpp editor's context menu
...
at a later stage we will look into harmonizing context menu among different editors.
The cpp editor had the biggest need, because its context menu features all sorts of
extra refactoring operations, thus the standard Qt context menu became too large.
2009-11-02 14:03:38 +01:00
Roberto Raggi
a2b5184123
Activate the completion only when the canonical symbol has a valid name.
2009-10-26 13:45:27 +01:00
Roberto Raggi
24bcbaefe9
Don't use modality to inform the user about the dangerous world of code refactoring.
2009-10-15 13:59:04 +02:00
Roberto Raggi
f92b1428f3
Fixed the refactoring engine.
...
It was not working for files opened while indexing the project.
2009-10-15 12:31:40 +02:00
dt
ceaa92ecbb
Set correct mime type for C++ files.
2009-10-13 17:18:23 +02:00
Roberto Raggi
88f3fa09be
Removed deprecated PrettyPrinter. We need a way to generate the pretty printer from the C++ parser.
2009-10-09 11:44:12 +02:00
Roberto Raggi
97c6671ea8
Mark the usages of a symbol using the semantic highlighter.
2009-10-09 11:33:31 +02:00
Roberto Raggi
659a231a04
Don't highlight local symbols in ambiguous nodes.
2009-10-09 11:21:29 +02:00
Roberto Raggi
edcbb6a119
Removed obsolete code.
2009-10-09 11:06:40 +02:00
Erik Verbruggen
5852cc805d
Fixed refactoring when the cursor is at the end of a symbol.
...
Reviewed by: Roberto Raggi
2009-10-08 14:26:54 +02:00
Roberto Raggi
7e0e62cb25
Find the canonical virtual method.
2009-10-07 16:12:33 +02:00
Roberto Raggi
77aa306478
Removed the MacroResolver
...
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
2009-10-07 13:57:45 +02:00
Roberto Raggi
ef0e1a64dc
Show a warning message when using global renaming.
2009-10-06 16:00:55 +02:00
Roberto Raggi
319a0e2ad1
Search for possible uses of local symbols in template arguments and removed some deprecated code.
2009-10-06 11:56:29 +02:00
Roberto Raggi
73320a43d1
Added `Find Usages' of a Symbol.
2009-10-05 15:17:48 +02:00
Roberto Raggi
db9a390ef6
Highlight unused symbols.
2009-10-05 14:08:24 +02:00
Friedemann Kleint
5948e284bb
Rename namespace Core::Utils into Utils
...
Also move Designer::Internal::FormWindowEditor ->
Designer::FormWindowEditor.
2009-10-05 11:06:05 +02:00
mae
3a2974b3f9
some action cleanup for the qml editor
...
done with Erik Verbruggen
2009-10-01 13:34:02 +02:00
Roberto Raggi
ae43149c97
Cache the macros.
2009-09-30 18:52:42 +02:00
Roberto Raggi
9a21143384
Implemented a simple(fast?) strategy to resolve macro references.
2009-09-30 17:17:11 +02:00
mae
dadefeaf97
tune auto-parentheses
...
do not close braces automatically on enter if the next line's indentation
is deeper than the current line's
2009-09-30 17:11:53 +02:00
Roberto Raggi
ace380ec28
Make the symbols used in the current editors.
2009-09-30 13:25:59 +02:00
Roberto Raggi
a52df417c4
Activate the find references when renaming non local members.
2009-09-29 16:40:49 +02:00
Roberto Raggi
e40cd82f8c
Introduced T_CPP_COMMENT and T_CPP_DOXY_COMMENT to handle C++-style comments and improved CPPEditor::isInComment to handle the newly introduced tokens.
...
As side effect,this change should fix the regression we introduced in the "automagically" quote/brace insertion.
2009-09-29 11:35:43 +02:00
Erik Verbruggen
377ed944e5
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
2009-09-28 11:46:20 +02:00
Erik Verbruggen
478e94748f
Added type declarations for forward declared ObjC protocols and classes.
2009-09-28 11:46:00 +02:00
Roberto Raggi
b3cf5ae50a
Some work on `find references of a symbol'.
2009-09-25 14:20:02 +02:00
mae
efed56c49e
Improve auto-inserting or deleting of parentheses and brackets
...
When inserting or deleting ( or [, we now check wether this will improve
the block's parentheses balancing, and only fix it if it doesn't. Same
applies to skipping of ) or ].
2009-09-25 13:52:16 +02:00
Roberto Raggi
e7b96347f1
Revert "Introduced our own document revision."
...
This reverts commit 6b510cb487 .
2009-09-24 16:34:18 +02:00
mae
7d72996fa3
fix cppeditor occurance extra selections
...
only set the background, we do not want to modify foreground properties
set by the syntax highlighter or the link
2009-09-24 15:19:45 +02:00
mae
600fc9b218
cpp editor actions
...
remove some standard actions from the cpp editor context menu,
and enhance the advanced menu instead.
2009-09-24 14:51:40 +02:00
Erik Verbruggen
a98db7b096
Fixed a crasher.
2009-09-24 12:19:54 +02:00
Roberto Raggi
6b510cb487
Introduced our own document revision.
2009-09-24 10:12:33 +02:00
Roberto Raggi
6051584cfd
Don't create selections for unused symbols
2009-09-24 10:05:33 +02:00
Roberto Raggi
7cf7683052
Mark unused symbols.
2009-09-23 18:07:17 +02:00
Roberto Raggi
8848be4caa
Find references
2009-09-23 16:52:41 +02:00
Roberto Raggi
e4ff0c8b36
Added CPPEditor::isInComment() and used it to remove the inserted quote characters.
...
CPPEditor::isInComment() returns if the text cursor is in a comment.
2009-09-22 18:06:41 +02:00
Thorbjørn Lindeijer
bf74d21d6c
Avoid completing a closing parenthesis in the wrong place
...
Need to check the character to the right of the cursor.
2009-09-22 16:54:16 +02:00
Roberto Raggi
8290563cd2
Allow auto matching of string/char literals.
2009-09-22 11:25:29 +02:00
Roberto Raggi
b9ce92ec4d
Remove all the synthesized characters when matching curly braces
2009-09-21 18:19:09 +02:00
Roberto Raggi
29f03c7526
Removed obsolete code.
2009-09-21 17:41:48 +02:00