summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodecompletion.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Check the type of the token that triggered the completion.Roberto Raggi2010-06-021-2/+4
|
* Fixed the global completion to include the injected class name and user types.Roberto Raggi2010-06-021-1/+3
|
* Always remove the duplicates from the completion, even when the items are ↵Roberto Raggi2010-05-281-31/+21
| | | | not sorted.
* Speedup global completion.Roberto Raggi2010-05-271-19/+29
| | | | | | Don't sort the global completion items when we have too many of them, instead populate the completion box in a way where local symbols are showed before global symbols.
* Changed C++ code completion to use the new LookupContext.Erik Verbruggen2010-05-261-22/+14
|
* Revert "Sort the items lazily."Roberto Raggi2010-05-261-24/+5
| | | | This reverts commit 13a721d985aa04de3ded3c3049179512469ec0f7.
* Revert "Clear the completion."Roberto Raggi2010-05-261-2/+0
| | | | This reverts commit bb35b4d0811b0b4a3f198af0ae749f32950bfd28.
* Clear the completion.Roberto Raggi2010-05-261-0/+2
|
* Sort the items lazily.Roberto Raggi2010-05-261-5/+24
|
* Sort the completion items as soon as we have them.Roberto Raggi2010-05-261-8/+8
|
* There's no need to sort after filtering the completion.Roberto Raggi2010-05-261-1/+7
|
* Ported global completion to use the new LookupContext.Roberto Raggi2010-05-261-19/+69
|
* Tuned the automatic preprocessor competion.Erik Verbruggen2010-05-191-0/+10
| | | | To only run if the pound/hash sign is at the start of the line.
* Added #preprocessor directive completion.Erik Verbruggen2010-05-181-0/+42
|
* Use the context created by TypeOfExpression.Roberto Raggi2010-05-181-30/+28
|
* Renamed Document::findSymbolAt().Roberto Raggi2010-05-171-2/+2
|
* Get rid off of typeid() and <typeinfo>.Roberto Raggi2010-05-171-3/+1
|
* Compile fix.ck2010-05-171-0/+1
|
* Renamed classOrNamespace() and lookup/findClassOrNamespace().Roberto Raggi2010-05-141-5/+5
|
* Instiate overloads of operator->().Roberto Raggi2010-05-141-0/+5
|
* Reimplemented resolve base expression.Roberto Raggi2010-05-141-36/+30
|
* Improved LookupItem and get rid of some deprecated code.Roberto Raggi2010-05-141-18/+21
|
* Merge remote branch 'origin/2.0'con2010-05-121-50/+9
|\ | | | | | | | | Conflicts: src/plugins/cpptools/cppcodecompletion.cpp
| * Fixed completion settings to also apply to the QML code completionThorbjørn Lindeijer2010-05-111-49/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-34/+1
| |
* | Removed debug info.Roberto Raggi2010-05-101-2/+0
| |
* | More work on template instantiation.Roberto Raggi2010-05-101-0/+2
| |
* | Search for a valid class.Roberto Raggi2010-05-061-1/+9
| |
* | Try to use the new LookupContext.Roberto Raggi2010-05-051-49/+44
| |
* | Ported completeScope(), completeNamespace() and completeClass() to use the ↵Roberto Raggi2010-05-051-43/+126
| | | | | | | | new LookupContext.
* | Deprecated the current LookupContext.Roberto Raggi2010-05-051-12/+12
|/
* Unified the three fake tooltip copiesThorbjørn Lindeijer2010-04-151-47/+5
| | | | Reviewed-by: mae
* if a tooltip, do as tooltip domae2010-04-091-1/+2
| | | | The fake tooltip duplication is not nice.
* Add "insert space after function name" option for GNU indentingAlexey Semenko2010-04-081-0/+13
| | | | | Reviewed-by: mae Merge-request: 133
* Make sure the BackwardScanner has tokenized before asking for a string.Christian Kamm2010-03-111-1/+5
| | | | | | | | | | | | | | | | | The problem was that for Foo::Foo (|) when the user triggers completion at |, startOfLine() returns a token that's not on the current line and not yet tokenized by that instance of the BackwardScanner. As a fix I explicitly ask the instance to tokenize up to the given index. Task-number: QTCREATORBUG-673 Reviewed-by: Roberto Raggi
* Don't add the default arguments when completing function definitions.Christian Kamm2010-03-051-0/+1
| | | | | | Fixes QTCREATORBUG-787 Reviewed-by: Erik Verbruggen
* Long live the king!hjk2010-03-051-1/+1
|
* Fixed QTCREATORBUG-743Erik Verbruggen2010-02-221-1/+1
|
* Revert "Split Objective-C keyword parsing to handle the '@' separately."Erik Verbruggen2010-02-151-26/+9
| | | | This reverts commit 2a59d2ae0c889fe6e4ac50a3f110b0103f880c15.
* Split Objective-C keyword parsing to handle the '@' separately.Erik Verbruggen2010-02-151-9/+26
| | | | | | | | | | | | | | | | | | | | | | 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".
* Fix some code scanning issues.Friedemann Kleint2010-02-011-2/+2
| | | | foreach()-Loops.
* Generalized the filtering of completion items.Roberto Raggi2010-01-261-69/+10
|
* Fixed compile warningThorbjørn Lindeijer2010-01-201-1/+1
|
* Reuse local snapshot referenceThorbjørn Lindeijer2010-01-141-1/+1
|
* Merge remote branch 'origin/1.3'con2010-01-121-2/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/qtcreator.qdoc doc/qtcreator.qdocconf src/app/Info.plist src/plugins/bineditor/BinEditor.pluginspec src/plugins/bookmarks/Bookmarks.pluginspec src/plugins/cmakeprojectmanager/CMakeProjectManager.pluginspec src/plugins/coreplugin/Core.pluginspec src/plugins/coreplugin/coreconstants.h src/plugins/cpaster/CodePaster.pluginspec src/plugins/cppeditor/CppEditor.pluginspec src/plugins/cppeditor/cppeditor.cpp src/plugins/cpptools/CppTools.pluginspec src/plugins/cvs/CVS.pluginspec src/plugins/debugger/Debugger.pluginspec src/plugins/debugger/debuggeragents.cpp src/plugins/debugger/gdb/gdbengine.cpp src/plugins/designer/Designer.pluginspec src/plugins/fakevim/FakeVim.pluginspec src/plugins/find/Find.pluginspec src/plugins/genericprojectmanager/GenericProjectManager.pluginspec src/plugins/git/ScmGit.pluginspec src/plugins/helloworld/HelloWorld.pluginspec src/plugins/help/Help.pluginspec src/plugins/locator/Locator.pluginspec src/plugins/perforce/Perforce.pluginspec src/plugins/projectexplorer/ProjectExplorer.pluginspec src/plugins/qmleditor/QmlEditor.pluginspec src/plugins/qmleditor/idcollector.cpp src/plugins/qmleditor/idcollector.h src/plugins/qmleditor/parser/qmljsglobal_p.h src/plugins/qmleditor/qmlcodecompletion.cpp src/plugins/qmleditor/qmlcodeformatter.cpp src/plugins/qmleditor/qmlcodeformatter.h src/plugins/qmleditor/qmlexpressionundercursor.cpp src/plugins/qmleditor/qmllookupcontext.cpp src/plugins/qmleditor/qmlresolveexpression.cpp src/plugins/qmleditor/qmlsymbol.cpp src/plugins/qmleditor/qmlsymbol.h src/plugins/qmlprojectmanager/QmlProjectManager.pluginspec src/plugins/qt4projectmanager/Qt4ProjectManager.pluginspec src/plugins/qtscripteditor/QtScriptEditor.pluginspec src/plugins/regexp/RegExp.pluginspec src/plugins/resourceeditor/ResourceEditor.pluginspec src/plugins/snippets/Snippets.pluginspec src/plugins/subversion/Subversion.pluginspec src/plugins/texteditor/TextEditor.pluginspec src/plugins/vcsbase/VCSBase.pluginspec src/plugins/welcome/Welcome.pluginspec src/shared/qml/parser/qmljsast.cpp src/shared/qml/parser/qmljsast_p.h src/shared/qml/parser/qmljsastfwd_p.h src/shared/qml/parser/qmljsastvisitor.cpp src/shared/qml/parser/qmljsastvisitor_p.h src/shared/qml/parser/qmljsengine_p.cpp src/shared/qml/parser/qmljsengine_p.h src/shared/qml/parser/qmljsgrammar.cpp src/shared/qml/parser/qmljsgrammar_p.h src/shared/qml/parser/qmljslexer.cpp src/shared/qml/parser/qmljslexer_p.h src/shared/qml/parser/qmljsmemorypool_p.h src/shared/qml/parser/qmljsnodepool_p.h src/shared/qml/parser/qmljsparser.cpp src/shared/qml/parser/qmljsparser_p.h
| * Use the completion case sensitivity settings also for relevanceThorbjørn Lindeijer2010-01-071-2/+9
| | | | | | | | | | | | | | | | | | | | | | Avoids some annoyance for people using case-sensitive completion, when unrelated completions items would get higher relevance because they start with the typed string when matched case-insensitively. In case-insensitive mode, a case-sensitive prefix match now does get a higher relevance than a case-insensitive match. Reviewed-by: con