summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodecompletion.cpp
Commit message (Collapse)AuthorAgeFilesLines
* completion: enable multiple completors for different use cases.hjk2011-02-211-2/+9
| | | | | | | | Introduce CompletionPolicy enum, use 'TextCompletion' for the new plain text completion, and 'SemanticCompletion' or 'QuickFixCompletion' for the existing cases. Reviewed-by: Erik Verbruggen
* Fixed argument completion for destructors.Erik Verbruggen2011-01-191-3/+17
| | | | Task-number: QTCREATORBUG-2854
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* C++ completion: Skip Q_PROPERTY and Q_ENUMS symbols.Christian Kamm2011-01-071-3/+6
| | | | Reviewed-by: Erik Verbruggen
* Sort the completion items when searching for common prefixes.Roberto Raggi2010-12-201-1/+1
| | | | Reviewed-by: Thorbjørn Lindeijer
* 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
| |
* | Avoid skipping the closing parenthesis when completing with '('Thorbjørn Lindeijer2010-12-161-1/+6
| | | | | | | | | | | | | | | | When the user types '(' then he'll likely also type the matching ')', in which case skipping the automatic closing parenthesis is annoying because you would end up with two of them. Reviewed-by: Roberto Raggi
* | Don't popup the automatic completion box when the identifier under cursor is ↵Roberto Raggi2010-12-141-0/+25
| | | | | | | | a complete valid word.
* | Snippets: Make it easier for plugins to add snippets groupsLeandro Melo2010-12-081-1/+3
| | | | | | | | Groups are no longer enum values but identified from snippet providers.
* | Snippets: Feature enhancement start...Leandro Melo2010-12-081-5/+6
|/ | | | Provide an interface so users can create/edit/remove snippets.
* C++ editor: Don't sort global completions for performance reasonsLeandro Melo2010-12-061-3/+1
| | | | Reviewed-by: Roberto Raggi
* Fixed regression when completing function templates.Roberto Raggi2010-11-081-4/+38
| | | | Reviewed-by: Erik Verbruggen
* Snippets: Show snippets after "corresponding" keywords.Leandro Melo2010-09-271-1/+1
| | | | | | In some cases snippets have a description. Due to the sorting this already places them after keywords. So this is just to be consistent for all cases.
* Add support for C++ snippets.Leandro Melo2010-09-241-9/+21
|
* Editor: cleanup special cases for snippets.Erik Verbruggen2010-09-241-3/+0
|
* Editor: don't leave snippet mode when user pasts/completes.Erik Verbruggen2010-09-241-0/+3
|
* Avoid function completion tootltip to go out of the screen.Leandro Melo2010-09-151-2/+21
| | | | | Task-number: QTCREATORBUG-2307 Reviewed-by: Thorbjorn Lindeijer
* Merge CPlusPlus::NameId and CPlusPlus::Identifier.Roberto Raggi2010-09-021-1/+1
|
* Renamed Symbol::scope() to Symbol::enclosingScope().Roberto Raggi2010-08-261-3/+3
|
* Renamed Symbol::identity() to Symbol::unqualifiedName().Roberto Raggi2010-08-261-2/+2
|
* Get rid of the #warning directives.Roberto Raggi2010-08-111-1/+1
|
* Removed TemplateParameters.Roberto Raggi2010-08-111-0/+3
|
* Merged ScopedSymbol and Scope.Roberto Raggi2010-08-111-28/+28
|
* Use Prototype instead of Function.Roberto Raggi2010-08-051-2/+2
|
* Refactored CPlusPlus::Function.Roberto Raggi2010-08-051-3/+3
|
* Show the predefined macros in the completion box.Roberto Raggi2010-08-041-0/+1
|
* Keep the current explicitly selected item.Roberto Raggi2010-08-031-0/+4
| | | | Done with: Thorbjørn Lindeijer
* Get rid of dangerous bool cast.Roberto Raggi2010-08-031-3/+5
|
* Get rid of the automatic completion box when its only entry is the symbol ↵Roberto Raggi2010-08-021-3/+2
| | | | under cursor.
* Delay the automatic completion.Roberto Raggi2010-07-191-1/+6
|
* Don't complete the current item when pressing special characters (e.g. `;') ↵Roberto Raggi2010-07-191-9/+13
| | | | if the completion is automatically triggered.
* Introduced helpers to rewrite types and names.Roberto Raggi2010-07-161-2/+4
| | | | Done-with: Erik Verbruggen
* Avoid opening completion box in some unwanted situationsThorbjørn Lindeijer2010-07-151-6/+24
| | | | | Don't automatically trigger the completion when editing a word or when in a comment or string.
* Trigger only on exactly 3 characters for C++ completionThorbjørn Lindeijer2010-07-151-2/+2
| | | | | | 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.
* Make the way completion is triggered configurableThorbjørn Lindeijer2010-07-151-1/+1
| | | | | Now it's possible to choose between having completion popup manually, when triggered or always.
* Automatically trigger completion for C++ editor after three charactersThorbjørn Lindeijer2010-07-151-3/+28
| | | | | | | | 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
* Recursive definition of CPlusPlus::QualifiedNameId.Roberto Raggi2010-07-121-1/+1
| | | | Done-with: Erik Verbruggen
* Allow certain characters to also trigger the completionThorbjørn Lindeijer2010-07-091-7/+63
| | | | | | | | 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
* Fixed completion for doxygen comments.Erik Verbruggen2010-07-061-2/+3
|
* Fixed scope calculation in code completion.Erik Verbruggen2010-07-061-24/+11
|
* Added ObjC completion for message-send expressions.Erik Verbruggen2010-07-061-0/+118
|
* Fixed function-like code completion.Roberto Raggi2010-07-051-17/+15
| | | | | | This was a regression introduced in 8e4fb678fd68cbb01d5548ba07dfcb2927868df4 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).
* Removing SimpleTokenErik Verbruggen2010-07-021-9/+9
|
* Removed the TokenCache.Erik Verbruggen2010-07-021-16/+16
|
* Added snippet expansion to the C++ code completion.Erik Verbruggen2010-06-181-2/+11
|
* Two more columnNumber() calls that should be positionInBlock()Thorbjørn Lindeijer2010-06-161-1/+1
| | | | | columnNumber() relies on text wrapping, and we're only interested in the position of the cursor in the block.
* Introduced token caching to prevent repetetive tokenizing.Erik Verbruggen2010-06-141-28/+24
| | | | | | Also removed TokenUnderCursor as it's functionality is in the token cache. Reviewed-by: ckamm
* Revert "Introduced a token cache for the C++ editor."Erik Verbruggen2010-06-041-25/+21
| | | | This reverts commit c2393df02332618c8cf6159d9d6f6a40041ced89.
* Introduced a token cache for the C++ editor.Erik Verbruggen2010-06-041-21/+25
| | | | | This should speed things up a bit, because before, the line was tokenized at least 3 times.