- 19 Dec, 2014 3 commits
-
-
Nikolai Kosjar authored
* Get rid of CppModelManagerHelper. Now we simply use CppModelManager::projectInfo(someProject).isValid() to test whether a project is loaded. * Copy project data to temporary dir before opening the projects. This avoids creating *.user files in the Qt Creator source tree and annoying pop ups on test start. Change-Id: I1a57441ca2099beb6bb96cf620390d669fb47601 Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com>
-
Nikolai Kosjar authored
Change-Id: I397195a3e6d8b40a55d2a68429daf6c812f52da2 Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
...instead of going through CppModelManager::projectInfo(). Now CppModelManager::projectInfo() returns an invalid ProjectInfo in case there is no valid data for the given Project. Change-Id: I11908bf2ddf865b1d3d71ff176eaf4139292b21c Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 18 Dec, 2014 2 commits
-
-
Eike Ziller authored
Introduce a "Highest" priority for the filters-filter. Keep "Low" available for lower priority than the default all projects and current project filter. Change-Id: I9152d2e6c64b65478416cee18183bce1240ee187 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Erik Verbruggen authored
... by keying on Utils::FileName. Task-number: QTCREATORBUG-12390 Change-Id: Ib99eefcf3440d4383f624a614a3093f427efffbd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 17 Dec, 2014 1 commit
-
-
Erik Verbruggen authored
... by keying on Utils::FileName Task-number: QTCREATORBUG-12390 Change-Id: Ia98afb5a9160a7fd9225a2f9e02539ff3c35ae86 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 15 Dec, 2014 4 commits
-
-
Ulf Hermann authored
This translates into "[" on compilers that handle digraphs. Change-Id: Iba650d6929a1d3850018203b4f8331888ec8a257 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Erik Verbruggen authored
... by keying on Utils::FileName Task-number: QTCREATORBUG-12390 Change-Id: Ia1a59d2e422b4f92300ac6a8e0e52dd7456a6e70 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Nikolai Kosjar authored
This implements the actual include_next logic and thus completes commit b934cc19 C++: pass #include_next down to CppPreprocessor::tryIncludeFile commmit 140b5029 C++: Highlight argument to gcc's #include_next extension Based on https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html Task-number: QTCREATORBUG-10225 Change-Id: I7eef7f5ea64a114f6d092304d32b72c55c2ce134 Reviewed-by:
hjk <hjk121@nokiamail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
Allow to configure the timeout in the range from 0 to 500ms. Task-number: QTCREATORBUG-13393 Change-Id: I3e421109db919ab0dd5d63b8cbb9339fce132dbb Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 03 Dec, 2014 4 commits
-
-
Nikolai Kosjar authored
This fixes SOFT ASSERT: "!filePath.isEmpty()" in file /home/nik/dev/creator/creator-ut/src/plugins/cpptools/cppmodelmanager.cpp, line 467 which can be triggered by e.g. a "git show" document (onCurrentEditorChanged does not check for an empty file path). Change-Id: If4ed8e552069b290cb4ac93da52427b7ed2b91e8 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Daniel Teske authored
Centralize the handling inside a new class ProjectTree. React to moving focus and remove most special handling. This properly fixes the linked task. Task-number: QTCREATORBUG-13357 Change-Id: I6b06aa32b1e4305ec8a6d432857b302585d8734b Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Nikolai Kosjar authored
...if the project was updated in the meanwhile. If a project is updated mark invisible editor documents dirty and update them if they get focus. This also fixes document highlighting when restoring a session for documents that the user "switched away" before the project info is pushed to CppModelManager. This completes CppTools: Update visible documents on project update commit c2eb91e0 which only takes care of visible documents. Task-number: QTCREATORBUG-13270 Change-Id: Id445e7f509deac5d03194aecc54ce4629b7926ce Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
If "Automatically insert matching characters" is activated and '(' is typed before the semicolon in the declaration int f; we offered the ')' completion, although the ')' was already inserted. Change-Id: Id5a50fa94c2cb7b5c4056d87028501b0b90afc73 Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 28 Nov, 2014 2 commits
-
-
Nikolai Kosjar authored
This makes the editor document snapshot accessible through BaseEditorDocumentProcessor since we need it for the include hierarchy if the the clang code model is activated. Task-number: QTCREATORBUG-13553 Change-Id: I7214cc578d05fe5cad6e12b4d29fe6f840a88e8d Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
This fixes a crash if the include hierarchy sidebar is invoked with the clang code model. BuiltinEditorDocumentParser::get(editorFilePath) returns 0 in that case. Task-number: QTCREATORBUG-13553 Change-Id: I9292691c8156bdaaffcac1c3864201ba8a6cbdef Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 25 Nov, 2014 1 commit
-
-
hjk authored
Remove rarely used ones, add a currentTextEditorWidget() Change-Id: I27b97c17927c71e07dc3b489785b7f2f76eb801e Reviewed-by:
David Schulz <david.schulz@theqtcompany.com>
-
- 24 Nov, 2014 1 commit
-
-
Nikolai Kosjar authored
A DiffEditorDocument has an empty file path. Change-Id: If097497514afa82b1ed220a37cae410f4a81aa9a Task-number: QTCREATORBUG-13489 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
-
- 21 Nov, 2014 1 commit
-
-
jkobus authored
Change-Id: Ie046c9db2544e22937968d6673f0813d59e2dc93 Reviewed-by:
Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 20 Nov, 2014 1 commit
-
-
Christian Stenger authored
Task-number: QTCREATORBUG-13137 Change-Id: I71a222a4048db65db462da07726ea5d6b917da8d Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 19 Nov, 2014 1 commit
-
-
Nikolai Kosjar authored
For the semantic info document we do not expand function like macros and because of that certain macro invocations lead to invalid code that we need to handle, e.g.: Q_GLOBAL_STATIC(CppTools::SymbolFinder, symbolFinder) class Foo {}; This change makes parsing Foo in the semantic info document successfully again, which affects highlighting of that class. Change-Id: I389265ac64d3f0b8b8f406d38fa58d78820b14ba Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 18 Nov, 2014 1 commit
-
-
Erik Verbruggen authored
Change-Id: Ib694d2aeaef3b62caf3d3624e6b1c3e643197c2d Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 10 Nov, 2014 1 commit
-
-
Christian Kandeler authored
The respective items are available without it. Change-Id: Idc840cf08e7bec84f561c096afe8de25b1fb8468 Reviewed-by:
Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-
- 07 Nov, 2014 2 commits
-
-
Nikolai Kosjar authored
Analyzers can use this to rule out irrelevant (sub) projects. Change-Id: I5a9eb66f06156f0619dc639f6f4080a8fc761ee6 Reviewed-by:
Daniel Teske <daniel.teske@theqtcompany.com>
-
Nikolai Kosjar authored
...and make some comparison functions public. Change-Id: If4c9a95031dece32073ce111484a890230190688 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-
- 06 Nov, 2014 2 commits
-
-
Nikolai Kosjar authored
This one does not buy us much... Change-Id: I1d6c4667c038d319d2c16166505a386653a9f066 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-
hjk authored
Better suited to avoid the indirection (sizeof(Token) > sizeof(void *)) Change-Id: Ia5f42781e720ef6aa8161f8f81ae8ddd8e58c837 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 05 Nov, 2014 1 commit
-
-
Nikolai Kosjar authored
The symbols of these files do not provide much value. Change-Id: Ie81b12dc795c068742600e272807f9e6a87609ea Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-
- 04 Nov, 2014 1 commit
-
-
lemelisk authored
Change-Id: I954acb3acc1d7848517a079ffdd254b50052b67d Task-number: QTCREATORBUG-13155 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 03 Nov, 2014 2 commits
-
-
Nikolai Kosjar authored
...for document processing and highlighting. Change-Id: I31d42a5a5010260643ec76688080fd14a486f7e3 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
hjk authored
Faster. Change-Id: I91aa67462e11ff3258600d7f158de79942d0dc81 Reviewed-by:
Marc Reilly <marc.reilly@gmail.com> Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- 30 Oct, 2014 1 commit
-
-
Nikolai Kosjar authored
Change-Id: Ib346359487cb06c0fc95ff5796e9dd6f220b9d16 Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- 23 Oct, 2014 2 commits
-
-
Francois Ferrand authored
The messages were computed, but not added to the document. Change-Id: Ibeea802cf9f291ad14b2fe2e9d2a285c927a4449 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Francois Ferrand authored
When the length of the highlight is specified, the code does not properly check for end of line. This causes some lines to be highlighted when only the last word was supposed to be. For example, with this code: 1: void foo(int x); 2: int a = foo 3: (); 4: int b = foo( 5: ); line 2 and 4 used to be completely highlighted (underlined), instead of just 'foo'. Change-Id: I40e895410ce0f38bad0adbccd509fd2943c93c97 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 21 Oct, 2014 1 commit
-
-
Nikolai Kosjar authored
Superseded by commit commit 89bd4ee3 C++: Base parsing on editor document instead of widget Change-Id: Iffa6e47bddc0fa3de1eab9b65fe8f711520d2d7f Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- 20 Oct, 2014 1 commit
-
-
Nikolai Kosjar authored
Most of the functions were quite generic and not specific to clang. Change-Id: I160cfeb7eca5b69ad6a8932a4f76db5bf5c1d42d Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
- 15 Oct, 2014 4 commits
-
-
Francois Ferrand authored
If 'enter' is pressed while the cursor is in the middle of a string, the string is ended at the current cursor position, and a new string is started on the next line. This makes it very easy to split a long string onto multiple lines. In addition, Shift+Enter insert an escape in the string, to continue the string at the beginning of next line. A setting can be used to enable or disable this option. Change-Id: Ia5f3c6989fc00d40d06bc4fe1182fe8b1318f565 Reviewed-by:
Francois Ferrand <thetypz@gmail.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
Eike Ziller authored
Change-Id: I0acde2c3b995693de682679471f03af85bdd0a61 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
Nikolai Kosjar authored
Changes from the current editor snapshot to the previous one represent dependency changes (include paths, defines, ...) for the document. Use this to stop the semantic info updater from re-using the previous document for highlighthing. Task-number: QTCREATORBUG-12267 Change-Id: I91308700122ded7c458c267b685c00b966874a64 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
Nikolai Kosjar authored
projectPartFromDependencies() is also called from another thread. Change-Id: Ic1319569d1b9b934a1be0916caa2e5bd68dce4fb Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-