- Jan 14, 2013
-
-
Erik Verbruggen authored
This was the indirect cause for "random" freezes when using code-completion. The direct cause was a while loop counting down to 0, but starting with a negative value. Both are fixed now. Task-number: QTCREATORBUG-8472 Task-number: QTCREATORBUG-8532 Change-Id: I782a46be3ac8282d7484d0bf0c6fd30be6b171c8 Reviewed-by:
Christian Kandeler <christian.kandeler@digia.com> Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- Jan 08, 2013
-
-
Orgad Shaneh authored
#!/usr/bin/env ruby Dir.glob('**/*.cpp') { |file| # skip ast (excluding paste, astpath, and canv'ast'imer) next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i s = File.read(file) next if s.include?('qlalr') orig = s.dup s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m| res = $& if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces res else res.gsub!('} else', 'else') res.gsub!(/\n +} *\n/m, "\n") res.gsub(/ *{$/, '') end } s.gsub!(/ *$/, '') File.open(file, 'wb').write(s) if s != orig } Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc Reviewed-by:
hjk <qthjk@ovi.com>
-
- Dec 04, 2012
-
-
Erik Verbruggen authored
Change-Id: Ibe4cc69eafd14dab7707862b1068ce1e21b1d8e0 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Nov 22, 2012
-
-
Orgad Shaneh authored
Change-Id: I31a6117c2b4be3f8603c16a9f98b6937a0b9aeb2 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com>
-
- Nov 20, 2012
-
-
Nikolai Kosjar authored
Change-Id: I06b4289460d623da4b70d324d0cdf53ff7c972e7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Oct 31, 2012
-
-
Christian Kamm authored
Fixes completion, highlighting and find usages. Change-Id: I1ea12c6a9c7a4f8ba0f9d55e31d6b7986233e7d8 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Oct 17, 2012
-
-
hjk authored
Feels less obfuscated. Change-Id: Ide0ec1f38762038ddbb1eddb4f70f7d6acdf1ff7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Oct 15, 2012
-
-
Christian Kamm authored
For example locals and function argument names appear early whereas macros and keywords are way down. That should move helpful items to the top of the list. Change-Id: Ibcfe973ebbac2e3bce9cafbe14dc4c71430ddca7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Oct 11, 2012
-
-
hjk authored
Change-Id: Ie09c1fc59dd54d2302a78cfc9769d5cda6012be7 Reviewed-by:
hjk <qthjk@ovi.com>
-
Erik Verbruggen authored
Task-number: QTCREATORBUG-7964 Change-Id: Icc7d87bb4f2d1ab0560a6c06187d9c23da9fe3e9 Reviewed-by:
David Schulz <david.schulz@digia.com>
-
- Oct 10, 2012
-
-
David Schulz authored
Task-number: QTCREATORBUG-7522 Change-Id: I1a6c165b968fcb0a4058e91f95ca70d8b77a8970 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
- Oct 05, 2012
-
-
hjk authored
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Jul 20, 2012
-
-
Christian Kamm authored
* You now get completion for std::vector<int>::[complete]. * Also added a test. Conflicts: src/plugins/cpptools/cppcompletion_test.cpp src/plugins/cpptools/cpptoolsplugin.h Change-Id: I596ebf6bd18ec9a347113f8d162cc124c8a0d6b4 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Jul 19, 2012
-
-
Eike Ziller authored
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- Jul 17, 2012
-
-
Sergey Shambir authored
Change-Id: Ic22b99e25159edfa4977e13c98f334ce75809af7 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Jun 29, 2012
-
-
Leandro Melo authored
Could be reproduced in code as below (cursor at |): QFormLayout|formLayout *fl = new QFormLayout(this); Change-Id: I7f5e9ac8ff8dfffbca63d7ab9f837333440c9810 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Jun 20, 2012
-
-
Leandro Melo authored
Taskn-number: QTCREATORBUG-7521 Change-Id: I7b8edb93d143f599c93a82c82bf2c0d49c8e49e9 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 29, 2012
-
-
Erik Verbruggen authored
This rewrite fixes a couple of issues with the pre-processor. It now supports: - macros in macro bodies - stringification of parameters [cpp.stringize] - the concatenation operator [cpp.concat] - #include MACRO_HERE - defined() inside macro bodies used in pp-conditions. Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 13, 2012
-
-
Francois Ferrand authored
When completing function name, scan text backwards to find if we are trying to dereference the function. Change-Id: I32cabecb651ff35d949600d9fdeb61c8e68ae98f Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
- Feb 23, 2012
-
-
Erik Verbruggen authored
Change-Id: I89634989a7f360a30f7ed1bde4e67c93551ddfe4 Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Feb 20, 2012
-
-
Eike Ziller authored
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by:
Bill King <bill.king@nokia.com> Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Feb 15, 2012
-
-
Erik Verbruggen authored
Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Feb 10, 2012
-
-
Leandro Melo authored
Now IGenericProposalModel::isSortable also takes the current prefix as a parameter. This is particularly useful for cases like in the C++ completion: For global completions it will only sort if there's already a content prefix - Notice, however, that the "sorting threshold" for a maximum number of items is still kept in IGenericProposalModel::sort. Task-number: QTCREATORBUG-6404 Change-Id: I3c2f282aa565287b8b4989930b6a27093862ef25 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Jan 26, 2012
-
-
hjk authored
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- Jan 24, 2012
-
-
hjk authored
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
Leandro Melo authored
Change-Id: I021074a78d90929b4e83b8aff9db1ae7995e8c6a Reviewed-by:
hjk <qthjk@ovi.com>
-
- Jan 13, 2012
-
-
Leandro Melo authored
Continuinng a previous commit... This is in order to make the interface clearer. Change-Id: Ic1b05217f878578bc84a064927507b75981c47d6 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
Leandro Melo authored
The model uses UTF-8 internally and it makes more sense to only convert when necessary. A following commit will rename the source/setSource methods in document for more clarity too. Change-Id: I960ea0754efabd1436ad4b4299a57faeb65a8bee Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Nov 10, 2011
-
-
hjk authored
Change-Id: I3720946ba5485696822976567d83b4d6cb1fb283 x Change-Id: Iab58bc34bc56371405d132315573b484a533b77c Reviewed-by:
hjk <qthjk@ovi.com>
-
- Nov 03, 2011
-
-
hjk authored
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Oct 17, 2011
-
-
Yuchen Deng authored
Avoid inserting characters that are already there. e.g. int testFly() {} te|Fly() When triggers a completion, the code will changed to: testFly()| But in before, the code will changed to: testFly()|Fly() Notice: Character of '|' show the cursor position. Change-Id: I6c111e30356b2549aebc6fbea05608e70d6ab41f Merge-request: 398 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
- Sep 12, 2011
-
-
Leandro Melo authored
One fix is in the runner, which is part of the completion engine itself. The other is specific for C++. Task-number: QTCREATORBUG-5947 Change-Id: Ib8fff1eb5adad1ffb2a11da66c50b545e1457df8 Reviewed-on: http://codereview.qt.nokia.com/4355 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com> (cherry picked from commit e15443e9)
-
Leandro Melo authored
In the old code completion engine items were created on the stack and passed around by value. With the refactoring of the code assist API they became heap objects manipulated through pointers. This patch fixes one reminiscence not caught during the refactoring in which the same actual pointer was being used more than once to be appended on the list. Change-Id: I2009fb0b6aa18df57aa5ca9bde0591536ca2cd74 Reviewed-on: http://codereview.qt-project.org/4444 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com> (cherry picked from commit a1fa1692)
-
- Sep 08, 2011
-
-
Leandro Melo authored
In the old code completion engine items were created on the stack and passed around by value. With the refactoring of the code assist API they became heap objects manipulated through pointers. This patch fixes one reminiscence not caught during the refactoring in which the same actual pointer was being used more than once to be appended on the list. Change-Id: I2009fb0b6aa18df57aa5ca9bde0591536ca2cd74 Reviewed-on: http://codereview.qt-project.org/4444 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com>
-
- Sep 07, 2011
-
-
Leandro Melo authored
One fix is in the runner, which is part of the completion engine itself. The other is specific for C++. Task-number: QTCREATORBUG-5947 Change-Id: Ib8fff1eb5adad1ffb2a11da66c50b545e1457df8 Reviewed-on: http://codereview.qt.nokia.com/4355 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com>
-
- Aug 08, 2011
-
-
Christian Kamm authored
Change-Id: I8e2c38e279952372b3e12f6ea8da18b75b39a5d4 Reviewed-on: http://codereview.qt.nokia.com/2733 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
- May 26, 2011
-
-
Leandro Melo authored
More than one proposal item could be accessed during an iteration. So they should not take ownershipt of the data, but simply share it. Change-Id: I7b81b8772cd8ad4d6c2332ba6b5bc320055cd5a2 Reviewed-on: http://codereview.qt.nokia.com/136 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
Leandro Melo authored
In addition to letters and numbers. Change-Id: I89ec68c50a62516cc0b91d267fd96bb908cbf8bc Reviewed-on: http://codereview.qt.nokia.com/131 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- May 20, 2011
-
-
Leandro Melo authored
This also generalizes some code previously specific to C++. Change-Id: I5774d04a45f28a4e276a0ef282ce0aa5a2f2e552 Reviewed-on: http://codereview.qt.nokia.com/48 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- May 19, 2011
-
-
Leandro Melo authored
There was still a problem in the previous change (that's why it was reverted) which should be fixed now. Task-number: QTCREATORBUG-4940 Change-Id: I8a0d993b9f313fc98494cf93fed1f87939a358b1 Reviewed-on: http://codereview.qt.nokia.com/27 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-