Commit Graph

596 Commits

Author SHA1 Message Date
Christian Kamm
27026af2e3 C++ indenter: Fix indent of block statements in substatement blocks.
Task-number: QTCREATORBUG-1919
2010-07-28 12:39:27 +02:00
con
2bda8675e5 C++ symbols find filter for advanced find.
Required refactoring of the search result window to show real trees of
search results.

The backend is the backend from the Locator filter, which is a bit
outdated now.
2010-07-23 16:34:22 +02:00
con
80d85e2887 Locator Cpp filters can jump to a column too. 2010-07-23 16:22:13 +02:00
ck
46f537e56a Quickfix: Convert underscore notation to camel case.
Reviewed-by: Roberto Raggi
2010-07-20 11:07:14 +02:00
Roberto Raggi
a0faf279d5 Delay the automatic completion. 2010-07-19 14:06:19 +02:00
Roberto Raggi
7de836bf85 Don't complete the current item when pressing special characters (e.g. `;') if the completion is automatically triggered. 2010-07-19 10:32:25 +02:00
Roberto Raggi
fff4203a46 Introduced helpers to rewrite types and names.
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Christian Kamm
d292eca5f6 C++ indenter: Indent member initializer lists correctly.
Without requiring ',' to be an electric character.

Task-number: QTCREATORBUG-1866
Reviewed-by: Roberto Raggi
2010-07-16 10:30:14 +02:00
Thorbjørn Lindeijer
2e56fe23af Avoid opening completion box in some unwanted situations
Don't automatically trigger the completion when editing a word or when
in a comment or string.
2010-07-15 18:22:56 +02:00
Thorbjørn Lindeijer
9bdb97e27d Trigger only on exactly 3 characters for C++ completion
Allowing any length more than 2 is too slow at the moment. We'd first
need to find a way to avoid recalculating the complete list of items
for every character while the key isn't matching anything.
2010-07-15 16:24:01 +02:00
Thorbjørn Lindeijer
e101d8eccc Make the way completion is triggered configurable
Now it's possible to choose between having completion popup manually,
when triggered or always.
2010-07-15 16:24:01 +02:00
Thorbjørn Lindeijer
2c51e0c9da Automatically trigger completion for C++ editor after three characters
Similar behaviour as for the QML editor. However, for now without
removing the completion box when you have typed the whole word, since it
could still be useful for automatically inserting other characters.

Task-number: QTCREATORBUG-67
2010-07-15 16:24:01 +02:00
Christian Kamm
1a61ae01cb C++ indenter: Respect user indent with stream operators.
Reviewed-by: Erik Verbruggen
2010-07-15 16:15:09 +02:00
con
b3dbc4b4e4 Add flag to IPlugin::aboutToShutdown that allows asynchronous shutdown.
If a plugin requests asyncronous shutdown, the shutdown sequence does
not continue to deleting the plugins before it has sent a
asynchronousShutdownFinished signal. During that time an event loop
is running.
2010-07-13 15:25:21 +02:00
con
214e0bf35b Add a instance() method to the search result window singleton. 2010-07-12 16:17:31 +02:00
Roberto Raggi
adfdb51660 Recursive definition of CPlusPlus::QualifiedNameId.
Done-with: Erik Verbruggen
2010-07-12 15:10:00 +02:00
mae
ab8a8c018d Fix brace states
The lexer needs its own lexerState, before it was using
the syntax highlighter user state. This breaks the brace
depth calculation of the highlighter.

Reviewed-by: Roberto Raggi
2010-07-12 11:18:31 +02:00
Thorbjørn Lindeijer
b4cecd6ec8 Allow certain characters to also trigger the completion
Now you can type characters like ., ( and : to complete the selected
item, depending on the type of the completion item.

Task-number: QTCREATORBUG-271
Reviewed-by: Roberto Raggi
2010-07-09 15:52:09 +02:00
Christian Kamm
6ee1027eaa Add missing license headers. 2010-07-09 15:47:25 +02:00
Christian Kamm
c8fae11222 C++ indenter: Fix for extending if conditions.
Task-number: QTCREATORBUG-1825
2010-07-08 13:08:03 +02:00
Christian Kamm
574afeb551 C++ indenter: Build fix for windows.
Done-with: Tobias Hunger
2010-07-08 12:31:52 +02:00
Christian Kamm
a8c5d1f84c C++ indenter: Be more careful when comparing states.
Task-number: QTCREATORBUG-1818
2010-07-08 10:18:24 +02:00
Christian Kamm
7ae3fd5a10 C++ indenter: Refactor to be independent of BaseTextDocumentLayout.
Done-with: Thomas Hartmann
2010-07-08 10:16:17 +02:00
Christian Kamm
486b23b8ef C++ indenter: Don't add continuation indent after function return type.
Task-number: QTCREATORBUG-1816
2010-07-08 08:48:36 +02:00
Christian Kamm
6078b36c9c C++ indenter: Enable class, struct, enum, namespace, using in functions.
Fixes incorrect indentation we got previously when they were used in a
statement context.
2010-07-08 08:36:34 +02:00
Christian Kamm
74ed3e8a11 C++ indenter: Add more functions to manage the indenter state. 2010-07-06 14:53:54 +02:00
Roberto Raggi
7528b2c63a Compute the dependecy table on demand. 2010-07-06 14:35:23 +02:00
Christian Kamm
bf7613d2e7 C++ indenter: Add special case rule for indenting enums.
So you now get
enum A { a = 2,
         b = 3,
       };
2010-07-06 13:54:21 +02:00
Christian Kamm
8dbbf9be92 C++ indenter: Require explicit state update requests.
This will allow much faster indenting of selected areas as the state
doesn't have to be checked again for every line.
2010-07-06 13:52:49 +02:00
Erik Verbruggen
69a74abf26 Fixed completion for doxygen comments. 2010-07-06 10:57:56 +02:00
Christian Kamm
793ef6a694 C++ indenter: Fix 'else' indentation in GNU style. 2010-07-06 09:44:35 +02:00
Erik Verbruggen
45e12ccb42 Fixed scope calculation in code completion. 2010-07-06 09:19:20 +02:00
Erik Verbruggen
5d888caeb9 Added ObjC completion for message-send expressions. 2010-07-06 09:19:20 +02:00
Bill King
c9710052bb Fix autotests so that they're compiling again. 2010-07-06 14:37:45 +10:00
Roberto Raggi
84ebb1048d Moved CheckUndefinedSymbols to the cpptools plug-in. 2010-07-05 17:35:54 +02:00
Christian Kamm
27578a6c2c C++: Use the new indenter.
Reviewed-by: Roberto Raggi
2010-07-05 13:49:12 +02:00
Christian Kamm
e48864684e C++ indenter: Store tab size and use it to calculate the column position 2010-07-05 13:49:12 +02:00
Christian Kamm
19db6c9826 C++ indenter: Make building custom styles easier, fix style issues.
Keep more information by using enter() instead of turnInto() when moving
from a *_start to *_open.
2010-07-05 13:49:12 +02:00
Christian Kamm
3100fc0b7e C++ indenter: Add support for other brace styles. 2010-07-05 13:49:12 +02:00
Roberto Raggi
3a88dc624f Fixed function-like code completion.
This was a regression introduced in 8e4fb678fd
triggersCompletion should return `true' when the token at the left of the T_LPAREN
is an identifier, a SIGNAL, a SLOT or T_GREATER (for template functions).
2010-07-05 11:06:15 +02:00
Christian Kamm
88f2e340bd C++: Introduce the new CodeFormatter.
Done-with: Erik Verbruggen
2010-07-02 16:13:12 +02:00
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
hjk
2f5f358ff4 Core::Context: compile hot fix for Windows. 2010-06-25 17:38:25 +02:00
hjk
c7e8b51d37 core: use a class derived from QList<int> instead of a QList<int> for Core::Context
A mostly mechanical change.

Reviewed-By: con
2010-06-25 12:58:07 +02:00
Roberto Raggi
91eff02007 Moved CppRefactoringChanges. 2010-06-22 12:13:30 +02:00
Roberto Raggi
a19f802529 Preprocess the source file. 2010-06-22 12:13:29 +02:00
Erik Verbruggen
491675559d Added snippet expansion to the C++ code completion. 2010-06-18 10:58:35 +02:00
Thorbjørn Lindeijer
a1a565b9c5 Two more columnNumber() calls that should be positionInBlock()
columnNumber() relies on text wrapping, and we're only interested in the
position of the cursor in the block.
2010-06-16 18:03:43 +02:00
Erik Verbruggen
297b281ced Added infrastructure to change multiple files at once. 2010-06-14 15:03:10 +02:00