- Apr 14, 2014
-
-
Nikolai Kosjar authored
Addresses the following findings of QTCREATORBUG-12030: * qtc.helgrind.plugintests.txt#2 * qtc.helgrind.usingEditors1.txt#1 Helgrind report (truncated): Possible data race during write of size 4 at 0x23679618 by thread #1 Locks held: none at 0x6819003: ??? by 0x681D713: ??? by 0x68200DE: ??? by 0x684B8F8: QTextCursor::insertText(QString const&, QTextCharFormat const&) by 0x684BCB9: QTextCursor::insertText(QString const&) by 0x139DA06C: TextEditor::BaseTextEditorWidget::keyPressEvent(QKeyEvent*) (basetexteditor.cpp:1866) by 0x184C999F: CppEditor::Internal::CPPEditorWidget::keyPressEvent(QKeyEvent*) (cppeditor.cpp:1416) This conflicts with a previous read of size 4 by thread #18 Locks held: none at 0x680BC54: QTextDocument::revision() const by 0x159047F3: CppTools::CppEditorSupport::editorRevision() const (cpptoolseditorsupport.cpp:198) by 0x158E39BF: CppTools::Internal::CppModelManager::buildWorkingCopyList() (cppmodelmanager.cpp:525) by 0x158E3D5B: CppTools::Internal::CppModelManager::workingCopy() const (cppmodelmanager.cpp:544) by 0x1589FF6F: CppTools::Internal::CppCompletionAssistInterface::getCppSpecifics() const (cppcompletionassist.cpp:1957) by 0x158A1158: CppTools::Internal::CppCompletionAssistInterface::snapshot() const (cppcompletionassist.h:200) by 0x1589707C: CppTools::Internal::CppCompletionAssistProcessor::startCompletionInternal(QString, unsigned int, unsigned int, QString const&, int) (cppcompletionassist.cpp:1212) by 0x15893CC7: CppTools::Internal::CppCompletionAssistProcessor::startCompletionHelper() (cppcompletionassist.cpp:970) --- Possible data race during write of size 4 at 0x24C8AD18 by thread #1 Locks held: none at 0x684AF23: QTextCursor::beginEditBlock() by 0x139D7D05: TextEditor::BaseTextEditorWidget::keyPressEvent(QKeyEvent*) (basetexteditor.cpp:1578) by 0x184C999F: CppEditor::Internal::CPPEditorWidget::keyPressEvent(QKeyEvent*) (cppeditor.cpp:1416) ... by 0x40F15A: main (main.cpp:533) This conflicts with a previous read of size 4 by thread #11 Locks held: none at 0x680BC54: QTextDocument::revision() const by 0x159048D3: CppTools::CppEditorSupport::editorRevision() const (cpptoolseditorsupport.cpp:198) by 0x158E3A9F: CppTools::Internal::CppModelManager::buildWorkingCopyList() (cppmodelmanager.cpp:525) by 0x158E3E3B: CppTools::Internal::CppModelManager::workingCopy() const (cppmodelmanager.cpp:544) by 0x1590741E: parse(QFutureInterface<void>&, QSharedPointer<CppTools::SnapshotUpdater>) (cpptoolseditorsupport.cpp:299) Task-number: QTCREATORBUG-12030 Change-Id: Idf0aa47f1f6bfd6814a961fe39d3b19b98f934f5 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
The optimization in question could lead to an empty source and thus to no highlighting. Checking for 'force' and the revisions is at this point not enough since later the semantic info calculcation can be aborted, so that a subsequent recalculation would get an empty document. contents() itself is already optimized (uses caching). Task-number: QTCREATORBUG-11367 Change-Id: If31a8ab0c848e4babd38104961fb9812f077a2be Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
...when collecting data for the semantic highlighting recalculation. Task-number: QTCREATORBUG-11037 Change-Id: Ibed73a2916df0a91aedef166de2c8c6bb5df309c Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Apr 11, 2014
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-11367 Change-Id: I8b02c30a43a57c547bc07d796f4b29725beca793 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com> Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Apr 09, 2014
-
-
Nikolai Kosjar authored
This reverts commit 5d76b433 since it might lead to an infinite loop. Task-number: QTCREATORBUG-11999 Change-Id: I12c7f3afc4aa53a83ddc2bf2d33eb76c29b747ee Reviewed-by:
Eike Ziller <eike.ziller@digia.com> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- Apr 04, 2014
-
-
Nikolai Kosjar authored
...where applicable. Change-Id: Ie42e1012598adf124e5f66b6a53eda01724dfb71 Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Przemyslaw Gorszkowski authored
The parent of instantiation of nested class of template class should be the instantiation of enclosing template class. Task-number: QTCREATORBUG-11752 Change-Id: I8875c738848b85731f5ea88a60da190b4b0ad18f Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
Przemyslaw Gorszkowski authored
Fix a case: struct A { int a; }; typedef A B; typedef B* Bptr; Bptr b; b-> Task-number: QTCREATORBUG-10021 Change-Id: Ibf5ca801dbdb72744416924c0b8fc03daad5948a Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Apr 03, 2014
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-11748 Change-Id: I4d773528bd749510041d71411cf125879cfd3080 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@digia.com>
-
- Mar 31, 2014
-
-
Orgad Shaneh authored
Change-Id: I6405c4dfa07eba1ea09ba23fe20667769eaca748 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Orgad Shaneh authored
Change-Id: I801a56804e7873be75a9ebc085dc3f4a2d64ea35 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Mar 27, 2014
-
-
Nikolai Kosjar authored
...since we can always provide the contents for such files. This fixes the soft assert SOFT ASSERT: "document()" in file src/plugins/cpptools/cppsnapshotupdater.cpp, line 199 that occurs if you Follow Symbol on an include directive of the type "ui_*.h" file that is not yet generated on disk. Change-Id: I1e40db95a648a0570c6ccbcf5475691094097e18 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Editor revisions start with 1, not 0. There are some more problems in that area which are not addressed by this patch. E.g. the synchronization of the AbstractEditorSupport revision and the QTextDocument revision. Task-number: QTCREATORBUG-11774 Change-Id: I4b0f41b2436ecedcd10dc0e3e39e5f185f990e05 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Christian Kandeler authored
Change-Id: Iaf68f0c9b491454faebd7a232189152d97064c42 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Mar 26, 2014
-
-
Nikolai Kosjar authored
Among others the timestamp and if provided, some extra id. Change-Id: I017c2af197023347c88f2547e7bda8f22b3d00c4 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
...if dumping from updateProjectInfo(). Change-Id: I0db5f29605e5cae30e339f246fe2b67e5949fb2d Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: I6a167b47363fb14452bd8ba3dc9d4242d17c25b6 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: I58acfb2d049dd4239a3f41b0a5795bfaab7b4f2f Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Format: QTC_*=(1|0). Now it's easier to change them in the Run Configuration of Qt Creator. Change-Id: Ifc45cecb89b33a31942b4c3e2d03851a1d72d0bf Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Przemyslaw Gorszkowski authored
The case when anonymous class is inside function. Fixed: * highlighting * completion Task-number: QTCREATORBUG-11711 Change-Id: Ic8fc5fdfb1aed62a74bf148ab7ed449d08214dda Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Mar 25, 2014
-
-
Przemyslaw Gorszkowski authored
Case when nested class declaration contains object name for this class. Example: void fun() { struct S { int i; } s; s.i; } Fixes: * highlighting * completion * tests Task-number: QTCREATORBUG-11710 Change-Id: I32e234f57655c388a87a199edc8be750d7bf823f Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Dave Lewis authored
Add case for ">>" token in declaration_start state to prevent falling through to stream_op. Task-number: QTCREATORBUG-9199 Change-Id: I53710be55eff4574de89f9159e95bbc1de2ba34e Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Dave Lewis authored
Add case for ">>" token when in template_param state. Task-number: QTCREATORBUG-9640 Change-Id: Icc5fc868202d6503d2afd954aa739cd2634cdff1 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Przemyslaw Gorszkowski authored
The binding in a block should not be used as an instantiationOrigin, because it will be deleted if it does not contain any blocks or namespaces or classes or enums. Instead of that we should look for first enclosing class or namespace. Task-number: QTCREATORBUG-11424 Change-Id: I0fc6e935495478f71372b0fe6f611887f45b2eda Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Mar 17, 2014
-
-
Nikolai Kosjar authored
...so we can rehighlight if it's requested by the editor. This is e.g. necessary if the font size changes. Task-number: QTCREATORBUG-11502 Change-Id: I608921899fc37fcf1394db9ff041e6b378196bdd Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
...in order to be able to full-rehighlight on the next turn. The following sequence was problematic: 1. recalculateSemanticInfoDetached(true) * e.g. triggered by opening the document 2. recalculateSemanticInfoDetached(false) * e.g. triggered by moving the cursor * cancels 1. and leads to incompletely parsed/checked document - OK 3. startHighlighting() * triggered by 1.; starts highlighting on incomplete document - OK 4. startHighlighting() * gets a completely parsed/checked document - OK * not forced, so just compare revisions; they are the same, so skip/return - a partly highlighted document is left behind. Task-number: QTCREATORBUG-11367 Change-Id: Ic56e00e862ec4a1ffa197b2fc8b48be56a3562de Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
e.g. changing cursor position or editing text. CPPEditorWidget::updateUses() does not depend on the highlighter, but only on the semantic info update. Task-number: QTCREATORBUG-11367 Change-Id: Ia9f5ed7c2adc6899995a5d966a20e45b2f87d9e3 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Mar 13, 2014
-
-
Nikolai Kosjar authored
As the name function name suggests, true should be returned if the declaration should be processed. Otherwise false. Change-Id: I8d266d99c579b331fee8772bde47aa1a466dae9c Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
...since it's aligned away anyway. Change-Id: Id8a3c6feeb53f5d6f4f4338ea9031d7c57f312d0 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Nikolai Kosjar authored
Change-Id: I24b6f6d698051d1ccfe3f0d83078c26d8de193fb Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Jarek Kobus authored
Change-Id: Id54a11b6868d5033fd1ecfd6324b7e50b94e305c Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@digia.com>
-
- Mar 12, 2014
-
-
Nikolai Kosjar authored
..while initial parsing. Change-Id: I202da3f4f9e445a28e9726352fc005488efe2893 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
...since it does not make sense for symbols. Task-number: QTCREATORBUG-11669 Change-Id: Ic249cb15cdb3b324a9b215323acd802a33797100 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
Przemyslaw Gorszkowski authored
A member of nested anonymous class should be visible as a member of enclosing class(if there is no declaration of this nested anonymous class). Fix: * marking * find usage * follow symbol * completion Task-number: QTCREATORBUG-10876 Task-number: QTCREATORBUG-11170 Change-Id: If5b4d198e9075f2a8aa899ae59190f2c05f7b1ff Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Mar 11, 2014
-
-
Joerg Bornemann authored
Change-Id: Iecf32122df41f304ec6df538bb0dd8a263238a86 Reviewed-by:
Jake Petroules <jake.petroules@petroules.com> Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com>
-
- Mar 10, 2014
-
-
Nikolai Kosjar authored
Change-Id: Ia60d3e1907f9238f873f016d844095084b76ad6b Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: I9a05a92c1adc37db0c918127715714d1f6d2a78d Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
...of type 'No such file or directory' to the CPlusPlus::Document. Only the first one was added and as a result, the editor only wavely underlined that one. Add also diagnostic messages if it's not possible to get the file contents. Change-Id: I8389d8e6af9480ea6712759ce5e130e1dd8912f1 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Mar 06, 2014
-
-
Leena Miettinen authored
Change-Id: I422cd3ea2573a7530d1de504852cac4ac3637d9d Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Mar 05, 2014
-
-
Sergio Ahumada authored
Change-Id: I3be73c2a4d256a0d28e863fd2517a4d7442b34d8 Reviewed-by:
Mitch Curtis <mitch.curtis@digia.com> Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@digia.com>
-