- 13 Jan, 2016 4 commits
-
-
Marco Bubke authored
Change-Id: I503ffd72a98db6668f6449ce95e695e035a79a29 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
Change-Id: I0aa65ec6c80dcd437f13ff70021388b0da57ccfd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
Change-Id: I0fc4c73553a29585d4ff7c8d6593acb6975d1607 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
Also extracting inline HeaderPath class and change projects list in vector because the size is larger than a pointer. Change-Id: I885fdff3fe9bccc877634d1615249755f5b674fd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 12 Jan, 2016 2 commits
-
-
Marco Bubke authored
We broke the dependency of BaseEditorDocumentProcessor *BaseEditorDocumentProcessor::get(const QString &filePath) It's hiding static calls and it is much easier to do it that way than to provide a reference to every user. It's also possible to exchange it with different implementations for different test cases. Change-Id: Ic74699b45948e8b48f7efb6a1b295ba2641b8951 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
BaseEditorDocumentProcessor was holding a TextEditor::TextDocument but only used the QTextDocument and the file path. Change-Id: I349cc95d973adeaf9f94638d84333f592c14e7f9 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 11 Jan, 2016 4 commits
-
-
Tobias Hunger authored
Add setRootProjectNode method and a default implementation of rootProjectNode to Project. Use that in all derived classes. Change-Id: Id28cde04457a20a8963d43020785ef9d77fea57c Reviewed-by:
Niels Weber <niels.weber@theqtcompany.com> Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
Tobias Hunger authored
Change-Id: I23960c61676e96c429b59ad8f8247e1b88606b1a Reviewed-by:
Niels Weber <niels.weber@theqtcompany.com> Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
Tobias Hunger authored
Implement default projectManager method in Project and use these two everywhere. Change-Id: I27e011e6fdc17b36aff1b8b931527307320e347c Reviewed-by:
Niels Weber <niels.weber@theqtcompany.com>
-
Tobias Hunger authored
Add setDocument method, implement document method, use this in all projects. Change-Id: I5018bf7c2739665c13eee340184ce7c41fd319bb Reviewed-by:
Niels Weber <niels.weber@theqtcompany.com>
-
- 07 Jan, 2016 1 commit
-
-
Tobias Hunger authored
Change-Id: I5e03ef5a9fee03473152f8a7511d75a1818c3e05 Reviewed-by:
hjk <hjk@theqtcompany.com>
-
- 16 Dec, 2015 4 commits
-
-
Nikolai Kosjar authored
...nowadays we only need the working copy. Change-Id: I30924b3c5dc68b428d6c10f6ba015b0640b476d2 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
It's only needed there. Change-Id: Id12aa9d0fdf50b3292316426587677f79a09a9e9 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
Change-Id: I0ba340dcf0ee23e61588f17262d07e7088751836 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
This removes also the need to close editor documents. Change-Id: I96c68105bceb37841053f3dbd8a264e059a02cb8 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 15 Dec, 2015 1 commit
-
-
Nikolai Kosjar authored
...so the built-in parser can handle them. Change-Id: Iff69638f8939c3c4dced99699a3357dd94b23c71 Task-number: QTCREATORBUG-15431 Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 09 Dec, 2015 2 commits
-
-
Nikolai Kosjar authored
...and not on document reload. Change-Id: Idb6a9ba640a573c153aeab304dd280b6f6cf8ea0 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Marco Bubke authored
Change-Id: Id51d03a46b4403d9224508ff3c7647b829ee69cd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 02 Dec, 2015 2 commits
-
-
Nikolai Kosjar authored
The translation unit was updated, but not re-registered. Handle the editor documents this way: 1. Reset all ClangEditorDocumentProcessors (this will send an unregister message, but that's not problematic). 2. For the visible editor documents, run their processors so that the translation units will be re-registered. 3. For the invisible editor documents, mark them dirty. Once the user makes an invisible document visible again, the processor will run and also re-register the translation unit. Change-Id: I23693ac197bd34a183f3a0020eb5372268636599 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Tobias Hunger authored
Fix fallout of this in KitInformation/Kit/KitManager and the wizards. Change-Id: I5cb88cc381dc04409401909b810940ab6dccf86a Reviewed-by:
Tim Jenssen <tim.jenssen@theqtcompany.com>
-
- 01 Dec, 2015 1 commit
-
-
Marco Bubke authored
We reparse first the current and then the visible translation units before we reparse all other units. The signals connections are queued to wait for the visible editor update. Change-Id: I5e2b8bc80568450268ca24e26720b3f5af640995 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 26 Nov, 2015 2 commits
-
-
Marco Bubke authored
Change-Id: I2c3fb69aabfe075bde76d63eafc2ca370f17493c Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
Having a dllexport in the sources for a TEMPLATE=app project (e.g. unittest.pro) will create a library on Windows, which is not needed. Change-Id: I0d454cdb7e3eb862200766ea101d41cef2758986 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 23 Nov, 2015 1 commit
-
-
Nikolai Kosjar authored
Change-Id: If183b6d2210028f74dae839db782114ce79911c4 Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 19 Nov, 2015 1 commit
-
-
Nikolai Kosjar authored
...which was least buggy. The bugs fixed by the changes we revert here (highlighting/completion for code involving templates) were minor compared to ones we currently have. Those bugs will be addressed by the clang code model anyway. Relevant commits were collected via: $ cd ${QTC}/src/libs/cplusplus $ git log \ --no-merges \ --format=oneline \ v3.4.2..HEAD \ -- LookupContext.* ResolveExpression.* TypeResolver.* TypeOfExpression.* \ ../../plugins/cpptools/cppcompletion_test.cpp From this list the following were skipped due to irrelevance: 88c5b47e # CppTools: Minor cleanup in completion tests e5255a1f # CppTools: Add a test for ObjC not replacing dot with arrow 5b12c8d6 # CppTools: Support ObjC in member access operator tests 9fef4fb9 # CPlusPlus: Fix warnings about overriding visit(...) methods There were only minor conflicts while reverting those. This changes touches so many files because there were quite some cleanups and renames after the 3.4.2 release. Task-number: QTCREATORBUG-14889 Task-number: QTCREATORBUG-15211 Task-number: QTCREATORBUG-15213 Task-number: QTCREATORBUG-15257 Task-number: QTCREATORBUG-15264 Task-number: QTCREATORBUG-15291 Task-number: QTCREATORBUG-15329 Change-Id: I01f759f8f35ecb4228928a4f22086e279c1a5435 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 16 Nov, 2015 3 commits
-
-
Nikolai Kosjar authored
Change-Id: Iee93d2d656a8a5c991b292d3e591cedd3e86f9e3 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
Related to commit c47079f97f7d42db0c581525a2ce6fddbc0995f2 Clang: Activate the code model with a check box Change-Id: Ief11768ba0dd27788032e2dd3ad9b7ae39a8f52b Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Adam Strzelecki authored
Underlying C++ model sometimes marks C++ object instantiation using initializer as a (forward) function declaration. This leads to incorrect highlighting of object variables as if they were function calls. C++ model however marks in this case (and not any other case) such symbols as ambiguous function types, see CPlusPlus::Bind::visit. This change skips such ambiguous functions for highlighting as function call. Also add test case for related bug report. Task-number: QTCREATORBUG-15212 Change-Id: Ifde8db407f2fa8275a3f991bfa3d3b73eca8c14e Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 12 Nov, 2015 1 commit
-
-
Orgad Shaneh authored
Change-Id: I5cded88ce7c26a80246df79ad4ec43d82619b6eb Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 11 Nov, 2015 3 commits
-
-
Nikolai Kosjar authored
This can be used to experiment with clang options that e.g. affect diagnostics. Changes take effect on editor re-open. Change-Id: Ie46d0ff085a3700a748dbcf4b94b93b0bf9c4642 Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Nikolai Kosjar authored
If the plugin is not activated, show a hint. The underlying settings are still mime type based. This will be addressed in a follow-up change. Change-Id: I24b232365d505a0022a78e96eb496d219a8b7c5b Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Nikolai Kosjar authored
...since it assumes a project part != 0 and does not participate in ownership. Change-Id: Ia9c1eca52776990576a2dac61e9144234b04c59c Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 09 Nov, 2015 1 commit
-
-
Nikolai Kosjar authored
...when acessing m_headerPaths, m_projectFiles or m_definedMacros from different threads. ensureUpdated() locked the mutex before writing the variables, but reading them happened with an unlocked mutex. Change-Id: I4951fd58f1939e4e50534a018dd600004789668e Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 06 Nov, 2015 2 commits
-
-
Nikolai Kosjar authored
Register the translation unit and request diagnostics from the clangbackend as soon as the project part is determined. There is no reason to wait until the parser is finished for the highlighter. Change-Id: Iebccbf59ebd205389462dcee97363746fb651bb2 Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
Provide the language option (e.g. "-x c++-header") when registering a translation unit for the editor. Task-number: QTCREATORBUG-14787 Change-Id: Ie06f9fdab302f1b21ba72cdb65b6aabf9f7bc04c Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 04 Nov, 2015 2 commits
-
-
Christian Stenger authored
Change-Id: I6a6f0a8ab065fb2c02373165a4b43d76f039d1f3 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
Tobias Hunger authored
The functionality in that class is covered by initializers and Utils::unique, so there is no need to keep a custom class. This way FileNameList plays way nicer with utils/algorithm.h. Change-Id: I8eeae6aca0558ecd998920c4fdfc5ea56bf75501 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 23 Oct, 2015 1 commit
-
-
Leena Miettinen authored
Change-Id: Idbda9e71fcd2322c2925c5dbfdca540992660282 Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
- 20 Oct, 2015 1 commit
-
-
Orgad Shaneh authored
* Remove superfluous dot from test file name * Reuse an existing member Change-Id: I735dee09ae7ceef4509a4bda87118baaf4d11b01 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 14 Oct, 2015 1 commit
-
-
Tobias Hunger authored
Change-Id: I6bad3870b14066716fff5adc2a03b18f1840b6c7 Reviewed-by:
David Schulz <david.schulz@theqtcompany.com>
-