summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodecompletion.h
Commit message (Collapse)AuthorAgeFilesLines
* New code assist APILeandro Melo2011-05-181-175/+0
| | | | | | | | | | | This is a re-work of our completion engine. Primary goals are: - Allow the computation to run in a separate thread so the GUI is not locked. - Support a model-based approach. QStrings are still needed (filtering, etc), but internal structures are free to use more efficient representations. - Unifiy all kinds of *assist* into a more reusable and extensible framework. - Remove unnecessary dependencies on the text editor so we have more generic and easily "plugable" components (still things to be resolved).
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Update license.hjk2011-04-131-14/+13
|
* texteditor: merge ITextEditable into ITextEditorhjk2011-02-221-9/+9
| | | | | | | | rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor rename BaseTextEditor{,Widget} subclasses rename editableInterface->editorInterface rename createEditableInterface->createEditor minor cleanups after renamings
* completion: enable multiple completors for different use cases.hjk2011-02-211-1/+2
| | | | | | | | Introduce CompletionPolicy enum, use 'TextCompletion' for the new plain text completion, and 'SemanticCompletion' or 'QuickFixCompletion' for the existing cases. Reviewed-by: Erik Verbruggen
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* Merge branch '2.1'con2010-12-171-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/basemode.cpp src/plugins/coreplugin/basemode.h src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp src/plugins/debugger/debuggeragents.cpp src/plugins/debugger/debuggeruiswitcher.cpp src/plugins/debugger/debuggeruiswitcher.h src/plugins/projectexplorer/buildconfigdialog.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.h src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h src/plugins/qmldesigner/designercore/include/modelutilities.h src/plugins/qmldesigner/designercore/include/nodeinstance.h src/plugins/qmldesigner/designercore/include/propertymetainfo.h src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp src/plugins/qmldesigner/designercore/model/modelutilities.cpp src/plugins/snippets/inputwidget.cpp src/plugins/snippets/snippetscompletion.cpp src/plugins/snippets/snippetscompletion.h src/plugins/snippets/snippetspec.cpp src/plugins/snippets/snippetsplugin.cpp src/plugins/snippets/snippetswindow.cpp src/plugins/snippets/snippetswindow.h src/plugins/texteditor/snippetsparser.cpp src/tools/qml/qmldom/main.cpp tests/manual/trk/runner.cpp tests/manual/trk/trkolddevice.cpp tests/manual/trk/trkolddevice.h tests/manual/trk/trkserver.cpp
| * License headers.con2010-12-171-7/+11
| |
* | Snippets: Make it easier for plugins to add snippets groupsLeandro Melo2010-12-081-2/+2
| | | | | | | | Groups are no longer enum values but identified from snippet providers.
* | Snippets: Feature enhancement start...Leandro Melo2010-12-081-2/+2
|/ | | | Provide an interface so users can create/edit/remove snippets.
* Add support for C++ snippets.Leandro Melo2010-09-241-0/+4
|
* Don't complete the current item when pressing special characters (e.g. `;') ↵Roberto Raggi2010-07-191-1/+1
| | | | if the completion is automatically triggered.
* Automatically trigger completion for C++ editor after three charactersThorbjørn Lindeijer2010-07-151-0/+2
| | | | | | | | 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
* Allow certain characters to also trigger the completionThorbjørn Lindeijer2010-07-091-1/+2
| | | | | | | | 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
* Added ObjC completion for message-send expressions.Erik Verbruggen2010-07-061-0/+3
|
* Always remove the duplicates from the completion, even when the items are ↵Roberto Raggi2010-05-281-0/+2
| | | | not sorted.
* Revert "Sort the items lazily."Roberto Raggi2010-05-261-2/+0
| | | | This reverts commit 13a721d985aa04de3ded3c3049179512469ec0f7.
* Sort the items lazily.Roberto Raggi2010-05-261-0/+2
|
* Sort the completion items as soon as we have them.Roberto Raggi2010-05-261-1/+2
|
* There's no need to sort after filtering the completion.Roberto Raggi2010-05-261-0/+1
|
* Ported global completion to use the new LookupContext.Roberto Raggi2010-05-261-3/+1
|
* Added #preprocessor directive completion.Erik Verbruggen2010-05-181-0/+3
|
* Use the context created by TypeOfExpression.Roberto Raggi2010-05-181-19/+8
|
* Merge remote branch 'origin/2.0'con2010-05-121-16/+0
|\ | | | | | | | | Conflicts: src/plugins/cpptools/cppcodecompletion.cpp
| * Fixed completion settings to also apply to the QML code completionThorbjørn Lindeijer2010-05-111-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By moving the completion settings into the TextEditor plugin, so that both the CppTools and the QmlJSEditor plugins can access the settings. The user-interface to edit the settings is still in the CppTools plugin, since we're in string freeze at the moment. It should be moved to the TextEditor plugin later. For now the QML completion only supports the case-sensitivity and partial completion options, since there is no automatic insertion of brackets. Task-number: QTCREATORBUG-1327 Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
* | Introduced Symbol::copy(otherSymbol) and removed some deprecated code.Roberto Raggi2010-05-101-7/+0
| |
* | Fixed compile with g++ 4.4.3Thorbjørn Lindeijer2010-05-051-1/+1
| |
* | Try to use the new LookupContext.Roberto Raggi2010-05-051-7/+7
| |
* | Ported completeScope(), completeNamespace() and completeClass() to use the ↵Roberto Raggi2010-05-051-0/+14
| | | | | | | | new LookupContext.
* | Deprecated the current LookupContext.Roberto Raggi2010-05-051-8/+8
|/
* Add "insert space after function name" option for GNU indentingAlexey Semenko2010-04-081-0/+4
| | | | | Reviewed-by: mae Merge-request: 133
* Long live the king!hjk2010-03-051-1/+1
|
* Revert "Split Objective-C keyword parsing to handle the '@' separately."Erik Verbruggen2010-02-151-1/+0
| | | | This reverts commit 2a59d2ae0c889fe6e4ac50a3f110b0103f880c15.
* Split Objective-C keyword parsing to handle the '@' separately.Erik Verbruggen2010-02-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | 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".
* Generalized the filtering of completion items.Roberto Raggi2010-01-261-6/+2
|
* Split CppCodeCompletion::startCompletion().Roberto Raggi2010-01-111-2/+13
|
* Implemented first-letter case-sensitive for completion as defaultThorbjørn Lindeijer2009-12-091-3/+9
| | | | | | | | 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>
* Moved Completion::getCompletion() in ICompletionCollector and made the ↵Roberto Raggi2009-12-021-0/+1
| | | | filtering of completion items more C++ friendly.
* Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead.Roberto Raggi2009-11-171-6/+6
|
* Introduced the quick fix engineRoberto Raggi2009-11-131-21/+0
|
* Merge commit 'origin/1.3'con2009-11-091-1/+1
|\
| * Do never offer signature autocompletion for constructor calls.Christian Kamm2009-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | 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>
* | Merge commit 'origin/1.3'con2009-10-261-8/+6
|\ \ | |/ | | | | | | | | | | Conflicts: src/plugins/cpptools/cppcodecompletion.h src/plugins/debugger/gdb/gdbengine.cpp src/plugins/qmleditor/QmlEditor.pluginspec
| * Initialize all the members of CppCodeCompletionRoberto Raggi2009-10-211-7/+4
| |
| * Add completion for function signatures.Christian Kamm2009-10-201-1/+2
| | | | | | | | | | | | | | | | | | 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 202fef42ca2104a7113958c0cbfbdf1cce2024f8)
* | Add completion for function signatures.Christian Kamm2009-10-191-1/+2
| | | | | | | | | | | | | | | | 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>
* | Merge remote branch 'origin/1.3'con2009-10-161-1/+2
|\ \ | |/ | | | | | | | | | | | | | | 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
| * Added support to complete function-call operators.Roberto Raggi2009-10-161-1/+2
| |
| * Renamed `awesome' :)Roberto Raggi2009-10-051-1/+1
| |
| * Removed the m_ prefix used in the public members of CompletionItemRoberto Raggi2009-10-051-1/+1
| |