- 04 Feb, 2015 1 commit
-
-
Przemyslaw Gorszkowski authored
Fix for auto completion in case of auto declaration inside if condition: struct Foo { int bar; }; void func() { if (auto s = new Foo) s->; // auto completion does not work } Task-number: QTCREATORBUG-13805 Change-Id: Ia1776e8cc04e6040a6bf5f43cf82cfd6ce6dde7a Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 21 Jan, 2015 1 commit
-
-
Nikolai Kosjar authored
We will introduce a base class with the name CppCompletionAssistProcessor. Change-Id: I74a39d0b14d4ee30d7bd7675ad968e83f377de7f Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 13 Jan, 2015 1 commit
-
-
Orgad Shaneh authored
Take 2 Task-number: QTCREATORBUG-13757 Change-Id: I9c2558bf01121e53710db984a99d37c2c6cafaf4 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 12 Jan, 2015 1 commit
-
-
Orgad Shaneh authored
Change-Id: I85f7398aee59d0d36f0e5c3bf88ff3c96002e394 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 06 Jan, 2015 3 commits
-
-
Orgad Shaneh authored
Breaks loading of qtcreator project. This reverts commit 4c6ad5e3. Change-Id: I7c4cdaf57eed16d7643d05b9456e03d5120259b3 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Orgad Shaneh authored
Task-number: QTCREATORBUG-13757 Change-Id: I283306b0c8348ee82e8e9bf47d404c1ecd473fde Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Orgad Shaneh authored
* named enum, access by value names * named enum, access by enum name (C++11) * anonymous enum + Add some failing tests Task-number: QTCREATORBUG-13757 Change-Id: I7b0a859805a5979c3c886a6dbec703639fb374be Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 19 Dec, 2014 1 commit
-
-
Nikolai Kosjar authored
Instead, always write into a unique temporary directory in QDir::tempPath(). Where applicable, read the test source from files instead of first writing the file. Some clean ups in test_codegen*. Change-Id: Id48dc50c6ca16252edfd9fc8a86ba0de9f9be486 Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 09 Oct, 2014 1 commit
-
-
Eike Ziller authored
Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 29 Sep, 2014 1 commit
-
-
hjk authored
... and some of the related implementation details Change-Id: I1f03aa5acf2d3fb2cfc2a6a7845f3d3578b0408d Reviewed-by:
David Schulz <david.schulz@digia.com>
-
- 26 Sep, 2014 1 commit
-
-
hjk authored
*Document* and *Layout* classes, all basetext* files Change-Id: I1c6e376733a434fcb5c7f19c6210dfa031eeafde Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- 22 Sep, 2014 1 commit
-
-
Nikolai Kosjar authored
Change-Id: Ic81a5df88d17375cf0087213d84443845bfd38cc Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- 11 Sep, 2014 1 commit
-
-
Nikolai Kosjar authored
This reverts commit c228b36c. There are multiple issues with the reverted patch: * Infinite loop due to indirect recursion e.g. when opening projectmodels.cpp * Crash when executing CppTools tests on Windows (no infinite loop) Change-Id: I38f02132ca57d3d32085db6146d0df7d620d7618 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 09 Sep, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
Example: template <typename T> struct Base { T t; }; struct Foo { int foo; }; void fun() { typedef Foo TypedefedFoo; Base<TypedefedFoo> baseFoo; baseFoo.t.// no code completion } Change-Id: I4822693d3fa1ee2e9b0e4cdd28bb9a8d441fb313 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 25 Aug, 2014 1 commit
-
-
Nikolai Kosjar authored
This mainly takes CppEditorSupport apart. * Parsing is now invoked by CPPEditorDocument itself by listening to QTextDocument::contentsChanged(). * Upon construction and destruction CPPEditorDocument creates and deletes an EditorDocumentHandle for (un)registration in the model manager. This handle provides everything to generate the working copy and to access the editor document processor. * A CPPEditorDocument owns a BaseEditorDocumentProcessor instance that controls parsing, semantic info recalculation and the semantic highlighting for the document. This is more or less what is left from CppEditorSupport and can be considered as the backend of a CPPEditorDocument. CPPEditorDocument itself is quite small. * BuiltinEditorDocumentProcessor and ClangEditorDocumentProcessor derive from BaseEditorDocumentProcessor and implement the gaps. * Since the semantic info calculation was bound to the widget, it also calculated the local uses, which depend on the cursor position. This calculation got moved into the extracted class UseSeletionsUpdater in the cppeditor plugin, which is run once the cursor position changes or the semantic info document is updated. * Some more logic got extracted: - SemanticInfoUpdater (logic was in CppEditorSupport) - SemanticHighlighter (logic was in CppEditorSupport) * The *Parser and *Processor classes can be easily accessed by the static function get(). * CppHighlightingSupport is gone since it turned out to be useless. * The editor dependency in CompletionAssistProviders is gone since we actually only need the file path now. Change-Id: I49d3a7bd138c5ed9620123e34480772535156508 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 20 Aug, 2014 1 commit
-
-
Filipp authored
A<int[]> now prefer second specialization for template<typename T> class A template<typename T> class A<[]> Change-Id: I32e874f78b2f5b363d088fbab6a8897e42e44035 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 18 Aug, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
Example: struct Foo { int foo; }; typedef Foo *FooArr[10]; void func() { FooArr arr; arr[0]-> // No completion } Task-number: QTCREATORBUG-12703 Change-Id: I1898dbf83eaa0a6dfa8c401390f28c78e5739bc4 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 04 Aug, 2014 1 commit
-
-
hjk authored
There was document(), textDocument() and baseTextDocument(). Two should be enough... Change-Id: Id9e41c8d857c5cb3269a9fce5ab594d34448c982 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
- 01 Aug, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
The parent of instantiation of nested class of template class should be the instantiation of enclosing template class. To prevent the infinite loop for case with local typedef of enclosing template we should not change a parent of typedefed instatiation of enclosing template. Example: template <typename T> struct Enclosing { typedef Enclosing<T> EnclosingT;// first case struct Nested { typedef Enclosing<T> EnclosingT;// second case }; }; Task-number: QTCREATORBUG-11752 Task-number: QTCREATORBUG-11999 Change-Id: Iadd7b5ef73ee0c4881f59c9dabfe03339f55827b Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 31 Jul, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
Fix code completion for using pointer in template specialization and initialization. Example: template <typename T> struct S {}; template <typename T> struct S<T*> { T* t; }; struct Foo { int foo; }; int main() { S<Foo*> s; s.t-> //no code completion return 0; } Task-number: QTCREATORBUG-12638 Change-Id: Idcd461806a22f08b76236f2db6346f157b12f5d3 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 30 Jul, 2014 1 commit
-
-
hjk authored
Same patter. Plain is fully merged now, so remove the files, too. Change-Id: Id8c0ba5689ad9980a0db3580cb9833344fd911f3 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com> Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- 08 Jul, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
Fix code completion for case: struct Foo { int bar; }; template <typename T> struct Base { T t; }; template <typename T1 = Foo> struct Derived : Base<T1> {}; int main() { Derived<> foo; foo.t.// no code completion return 0; } Task-number: QTCREATORBUG-12606 Change-Id: Iadf2fae172739d0a5844c6b437fd2686616e64e7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 07 Jul, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
Fix code completion in case: struct Foo { int bar; }; template <typename T1 = Foo> struct Derived : T1 { }; int main() { Derived<> foo; foo. // members from Foo are not proposed return 0; } Task-number: QTCREATORBUG-12605 Change-Id: Ibe35c7b9a161e789057a4518c72390ac52489a3e Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 04 Jul, 2014 2 commits
-
-
Erik Verbruggen authored
Instead of having two lists of paths, now only one list is used where both include paths and framework paths can be mixed. This reflects the way the compiler is invoked, and retains the (correct) search order. Task-number: QTCREATORBUG-11599 Change-Id: I373953e3e305df5b7a0d10920e12d146584adf9f Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Nikolai Kosjar authored
Change-Id: I6db51aeba328dbb69ec59082a70be7bc2d95699b Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 06 Jun, 2014 1 commit
-
-
Przemyslaw Gorszkowski authored
Task-number: QTCREATORBUG-12345 Change-Id: Ib2316ebdc81393b38185b9cb659fb85b78753e7b Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- 09 Apr, 2014 1 commit
-
-
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>
-
- 04 Apr, 2014 3 commits
-
-
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>
-
- 26 Mar, 2014 1 commit
-
-
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>
-
- 25 Mar, 2014 2 commits
-
-
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>
-
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>
-
- 12 Mar, 2014 1 commit
-
-
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>
-
- 24 Jan, 2014 1 commit
-
-
Orgad Shaneh authored
Discarded during merge from 3.0 Task-number: QTCREATORBUG-5456 Change-Id: I0bb4756e3cdf3c87a4c2b0fbfe6953faaa5e1c52 Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 21 Jan, 2014 1 commit
-
-
Orgad Shaneh authored
Task-number: QTCREATORBUG-5456 Change-Id: I0bb4756e3cdf3c87a4c2b0fbfe6953faaa5e1c52 Reviewed-by:
André Hartmann <aha_1980@gmx.de> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 08 Jan, 2014 1 commit
-
-
Robert Loehning authored
Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- 07 Jan, 2014 3 commits
-
-
Nikolai Kosjar authored
QVERIFY/QCOMPARE are meant to be called in the test function so that on failure they just can "return" and thus skip subsequent code. Since we use reusable test code in the test functions (the *TestCase classes), we need to ensure that on failure no further test code is executed. This mostly inlines the run function of the test classes into the constructor. Change-Id: I320ee032bdde0174ddfe3fdf3f9e18e19abf1d7f Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
* Unify class names * Fix coding style Change-Id: I7498192ba9e6b9fc0e97d3d4f0dbb30f1853a0c9 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Move common functionality of the 12 test classes into base classes. Change-Id: If64d3cec876807ac6f991151189860a99b8ff4ca Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-