Commit Graph

612 Commits

Author SHA1 Message Date
Roberto Raggi
0540aa362d Get rid of the old Semantic pass. 2010-08-13 16:55:43 +02:00
Christian Kamm
538f611503 Indenters: Move style setup into the QtStyleCodeFormatter constructors.
This makes sure styles are consistent for the editor and the quick fix
engine.
2010-08-12 14:21:35 +02:00
Roberto Raggi
2ebaf3fe5b Get rid of the #warning directives. 2010-08-11 15:48:40 +02:00
Roberto Raggi
6618a3cd67 Removed TemplateParameters. 2010-08-11 15:25:19 +02:00
Roberto Raggi
354b9712e4 Merged ScopedSymbol and Scope. 2010-08-11 15:25:18 +02:00
Roberto Raggi
0f301f8679 New implementation of CPlusPlus::FindUsages 2010-08-10 15:19:32 +02:00
Friedemann Kleint
7ab30d8a63 C++-Settings/License template: Add %FILENAME%, %CLASS% placeholders.
... for doxygen. Change logic for known empty keywords to be replaced
by an empty string.

Task-number: QTCREATORBUG-1854
2010-08-09 12:26:48 +02:00
Roberto Raggi
4ff3ee2ff0 Use Prototype instead of Function. 2010-08-05 17:53:14 +02:00
Roberto Raggi
9aa991d636 Refactored CPlusPlus::Function. 2010-08-05 17:53:14 +02:00
Roberto Raggi
672274378b Use the most recent snapshot when searching for the usages of a symbol. 2010-08-05 13:59:09 +02:00
Roberto Raggi
f87236de39 Look at the symbol's visibility. 2010-08-05 13:00:15 +02:00
Roberto Raggi
12ecb527ac Simplified FindUsages. 2010-08-05 12:49:29 +02:00
Roberto Raggi
70f605065f Show the predefined macros in the completion box. 2010-08-04 13:10:41 +02:00
Roberto Raggi
baf10259a3 Keep the current explicitly selected item.
Done with: Thorbjørn Lindeijer
2010-08-03 16:14:24 +02:00
Roberto Raggi
d7164a01d1 Get rid of dangerous bool cast. 2010-08-03 14:45:11 +02:00
Roberto Raggi
34c1c10cc0 Get rid of the automatic completion box when its only entry is the symbol under cursor. 2010-08-02 11:41:05 +02:00
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