Roberto Raggi
d9527680a9
Try to use the new LookupContext.
2010-05-05 16:36:46 +02:00
Roberto Raggi
66a9ef0725
Ported completeScope(), completeNamespace() and completeClass() to use the new LookupContext.
2010-05-05 16:36:45 +02:00
Roberto Raggi
32a84df5c0
Deprecated the current LookupContext.
2010-05-05 16:36:44 +02:00
Alexey Semenko
793ca97016
Add "insert space after function name" option for GNU indenting
...
Reviewed-by: mae
Merge-request: 133
2010-04-08 17:06:23 +02:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
Erik Verbruggen
8de6ccc775
Revert "Split Objective-C keyword parsing to handle the '@' separately."
...
This reverts commit 2a59d2ae0c .
2010-02-15 12:24:31 +01:00
Erik Verbruggen
2a59d2ae0c
Split Objective-C keyword parsing to handle the '@' separately.
...
Because apparently, while designing the Objective-C language, somebody
thought it was a world-class idea to allow any white-space between the
'@' character and the subsequent keyword. With this fix, we now
correctly parse:
@ dynamic
and:
@
selector
and:
@"foo"
"bar"
@"mooze"
(This last one is 1 single string split over multiple lines.)
Wonderful, isn't it?
What we (and Clang) do not support, but what GCC supports is something
like:
@"foo"@@ "bar" @"mooze" @@
which is equivalent to @"foobarmooze".
2010-02-15 09:27:00 +01:00
Roberto Raggi
1ba889a1bf
Generalized the filtering of completion items.
2010-01-26 11:44:45 +01:00
Roberto Raggi
421f5323f1
Split CppCodeCompletion::startCompletion().
2010-01-11 14:08:15 +01:00
Thorbjørn Lindeijer
3f1b45b057
Implemented first-letter case-sensitive for completion as default
...
By default now only the first letter is case-sensitive. It is still
possible to choose full or no case-sensitivity as well.
Task-number: QTCREATORBUG-236
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com >
2009-12-09 19:26:34 +01:00
Roberto Raggi
f3bebd7f1b
Moved Completion::getCompletion() in ICompletionCollector and made the filtering of completion items more C++ friendly.
2009-12-02 12:18:12 +01:00
Roberto Raggi
ecf40d2426
Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead.
2009-11-17 14:24:09 +01:00
Roberto Raggi
c13b8697d2
Introduced the quick fix engine
2009-11-13 16:14:38 +01:00
con
36d0d8500e
Merge commit 'origin/1.3'
2009-11-09 11:36:19 +01:00
Christian Kamm
a253a69980
Do never offer signature autocompletion for constructor calls.
...
They should always use the function parameter tooltip.
This fixes a bug where you were offered completion for
C foo( -> C foo(int x)
if C had a constructor taking int x.
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-11-09 10:13:17 +01:00
con
441ece365a
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/cpptools/cppcodecompletion.h
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/qmleditor/QmlEditor.pluginspec
2009-10-26 13:51:56 +01:00
Roberto Raggi
996866814a
Initialize all the members of CppCodeCompletion
2009-10-21 17:05:36 +02:00
Christian Kamm
e3479d9942
Add completion for function signatures.
...
You now get the function parameters as a completion suggestion when
declaring or defining a function. The tooltip for function calls
is unchanged.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
(cherry picked from commit 202fef42ca )
2009-10-20 12:55:14 +02:00
Christian Kamm
202fef42ca
Add completion for function signatures.
...
You now get the function parameters as a completion suggestion when
declaring or defining a function. The tooltip for function calls
is unchanged.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2009-10-19 14:19:28 +02:00
con
525ef4cc85
Merge remote branch 'origin/1.3'
...
Conflicts:
src/plugins/cpptools/CppTools.pluginspec
src/plugins/help/Help.pluginspec
src/plugins/locator/Locator.pluginspec
src/plugins/projectexplorer/ProjectExplorer.pluginspec
src/plugins/texteditor/TextEditor.pluginspec
2009-10-16 14:40:40 +02:00
Roberto Raggi
8b514657cc
Added support to complete function-call operators.
2009-10-16 12:23:16 +02:00
Erik Verbruggen
4b44fa5f4a
Added Objective-C @-keywords to the completion.
2009-10-09 15:22:57 +02:00
Roberto Raggi
d43cbfbb15
Renamed `awesome' :)
2009-10-05 18:43:23 +02:00
Roberto Raggi
2d51d0b633
Removed the m_ prefix used in the public members of CompletionItem
2009-10-05 18:32:45 +02:00
hjk
93cbef8724
long live the king
2009-08-14 09:30:56 +02:00
Thorbjørn Lindeijer
47a2097341
Implemented include completion
...
Done-with: danimo
2009-07-23 16:49:36 +02:00
Jason McDonald
884b7af769
Update license headers and sales contact details.
...
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Roberto Raggi
132258753a
More work on `Quick Fix'.
2009-06-09 13:52:52 +02:00
Thorbjørn Lindeijer
31dada8d92
Renamed braces to brackets
...
Since we're automatically inserting several kinds of brackets, but not
braces ({ }).
2009-05-26 12:05:05 +02:00
Thorbjørn Lindeijer
6d0f973f75
Better name for method to pick the completion collector
...
isValid -> supportsEditor
2009-04-07 16:02:51 +02:00
Roberto Raggi
6635ddbde5
Introduced ICompletionCollector::isValid(editor).
2009-04-02 10:41:37 +02:00
hjk
8ca887aae2
Fixes: change file license headers to include LGPL
2009-02-25 09:15:00 +01:00
Roberto Raggi
7044809139
Cleanup
2009-02-17 12:12:14 +01:00
Thorbjørn Lindeijer
a26bef5ff4
Ignore undefined macros in macro completion
...
Done with Roberto Raggi
2009-02-17 11:25:58 +01:00
Thorbjørn Lindeijer
100a6254f6
More intelligent function argument widget
...
Now it shows immediately when there is only a single signature of a
given method/constructor.
(cherry picked from commit 8b9dd766c8 )
Conflicts:
src/plugins/cpptools/cppcodecompletion.cpp
2009-02-16 15:15:43 +01:00
Thorbjørn Lindeijer
9aa86f9135
Completion for constructors used on initialization
...
Deals with cases like "QString s(", but for the moment doesn't handle
yet "QString const s(".
Done with Roberto Raggi.
(cherry picked from commit fca3ec1f32 )
2009-02-16 15:08:38 +01:00
hjk
1969b2ebc0
Fixes: some less caching of the ICore singleton pointer
2009-01-28 13:56:10 +01:00
Daniel Molkentin
59affcfffc
Bump year in licence header.
2009-01-13 19:22:14 +01:00
Roberto Raggi
12ee869eda
Simple typedef support for T_ARROW member access.
2008-12-30 11:45:41 +01:00
Roberto Raggi
f6f0c81021
Improved CppCodeCompletion::completeScope(). Added simple support for typedefs.
2008-12-30 11:35:30 +01:00
dt
3ba192af7e
Merge branch '0.9.1-beta'
2008-12-17 14:21:03 +01:00
hjk
da3cb14483
chancge Nokia GPL exception version from 1.2 to 1.3
2008-12-16 17:20:00 +01:00
Thorbjørn Lindeijer
9cf4074504
Added option to disable completion of common prefix
...
Some people don't like this.
2008-12-16 16:58:29 +01:00
Thorbjørn Lindeijer
78f1fca9aa
Added configuration options for code completion
...
It is now possible to choose between case-sensitive or case-insensitive
completion. Also, you can now disable the automatic insertion of braces.
2008-12-15 11:42:43 +01:00
hjk
df7aacd637
more file cosmetics
2008-12-02 15:08:31 +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