- 20 Aug, 2014 5 commits
-
-
Nikolai Kosjar authored
Change-Id: If89e81eec6d600d3d39cc09203cf434d0768c1b4 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: Ieff216017b9da1e6a12121688ea9572bdd81fd9b Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: I447acf28849bffb52c1e6b6eafdde221ec0b179e Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
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>
-
Nikolai Kosjar authored
They do not really depend on CppEditorWidget and will be re-used in a follow-up change. CppEditorWidget::identifierUnderCursor() CppEditorWidget::findCanonicalMacro() Change-Id: I553bb68694fb4b5f1baa331debf33ae234e3dedf Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 19 Aug, 2014 1 commit
-
-
hjk authored
Change-Id: I45d87d0be722ac36d64af222f03f8cb76242c9df Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- 18 Aug, 2014 2 commits
-
-
Eike Ziller authored
This is the first step in actually making "closeEditor(s)" close editors instead of documents. Change-Id: I02761e0cef950b8fc093f65a90df04a9a7550681 Reviewed-by:
Daniel Teske <daniel.teske@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
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>
-
- 07 Aug, 2014 3 commits
-
-
Nikolai Kosjar authored
Adding QTC_FIND_ERRORS_INDEXING=1 to the run environment will Creator force to do some "extended indexing" in order to find bugs: 1) The project files are parsed as if they would be opened in an editor. That is, parsing happens as precisely as possible, based on the ProjectPart information. 2) Symbols are looked up by invoking CheckSymbols, the backend of the semantic highlighter. 3) A "Task List File" (*.tasks) will be written with all diagnostic messages. This special indexing mode is meant for testing purposes. E.g. it can be run nightly on some bigger projects to find regressions. Note that Qt Creator will quit exactly after the first time some source files are indexed. E.g. that will happen if you open a file manually or if you open a new unconfigured project. Therefore it's required to configure projects as needed before invoking in this indexing mode. Change-Id: If25b83e67d24df9e28e107cb062f21cbf3b4c643 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
In case the list of source files to be parsed is empty, the CppSourceProcessor is never deleted. This was never a real problem because of the guard in CppModelManager::updateSourceFiles(). Change-Id: Icfd6962d11f2b2bf2ac28825f2fa0af0838a09c8 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: Ia76a59f0c2739bec5e145edce3ca8711f54b5fa4 Reviewed-by:
Erik Verbruggen <erik.verbruggen@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 2 commits
-
-
hjk authored
There are conceptually only two: one that operates a new document, and one that shares one. Being explicit makes moving data over to the Editor hierarchy easier. Convenience can be re-added there, later. Change-Id: I9b34ff26628c99ffff01201dcf99332d5e7253e9 Reviewed-by:
Christian Stenger <christian.stenger@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
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 5 commits
-
-
hjk authored
Not just for selected documents. This also removes the need for the separate setupAsPlainTextDocument function. Change-Id: I51a04eebbad37a7598068ce6e157a53c1519464f Reviewed-by:
Christian Stenger <christian.stenger@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
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>
-
hjk authored
Change-Id: I1088062d0b74fd0dd69e92c55cc8bb80da61ae2d Reviewed-by:
Christian Stenger <christian.stenger@digia.com> Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
hjk authored
Change-Id: I91a3bfb66a72e9234ca59f97d5260bbfc3ccb0d3 Reviewed-by:
Christian Stenger <christian.stenger@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
hjk authored
Do it in the users "that know" and remove the special constructor case. Change-Id: I9298c8d13118068adc7958c0894dccb7af4d7855 Reviewed-by:
Christian Stenger <christian.stenger@digia.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 25 Jul, 2014 1 commit
-
-
hjk authored
Adjust all callers, de-export BaseTextEditorAnimator Change-Id: I2329d976c1398e2449844bb480a4d4ed29859506 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
- 24 Jul, 2014 3 commits
-
-
Nikolai Kosjar authored
So far the pre-compiled headers were processed (thus defines from those headers were visible), but the actual includes for the documents were not added, which is necessary for lookup/completion. Note that this will be only done if pre-compiled headers are not ignored (Options > C++ > Code Model > [] Ignore pre-compiled headers). Change-Id: I54a8e6b00597af164d958e3e9f2a1075ea187788 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Check only other projects if the current file is not part of any project. Task-number: QTCREATORBUG-12328 Change-Id: I7db65b26313a26773bbbf17e966abd668ea9a1a5 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Erik Verbruggen authored
@classes, @protocols, @properties and -methods (and +methods) will now show up in the locator. Change-Id: I33f904c456c321fc80b8aba7ff52d5f1207c58be Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 23 Jul, 2014 1 commit
-
-
hjk authored
Turns out we don't even need two-phase initialization, by transparently postponing registration until we get a non-empty file name, either at constuction, or at file name change times. Change-Id: I3e87e47c820066e6707e946fc474ab9c1993e61f Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- 18 Jul, 2014 1 commit
-
-
hjk authored
Looks like a compiler bug, but it's a supported environment. Change-Id: I73d67a74e1adbac6747cbc96e3fbd96eeee9556c Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 17 Jul, 2014 1 commit
-
-
Nikolai Kosjar authored
Lambdas do not have a name. Change-Id: Ifda4816c62dcfe19bdbb1649dc1caf408e056b37 Task-number: QTCREATORBUG-12686 Reviewed-by:
Daniel Teske <daniel.teske@digia.com>
-
- 15 Jul, 2014 1 commit
-
-
Tobias Hunger authored
Change-Id: Id86b72b275d3381a32003c0439ff2d6b3b6ab505 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 08 Jul, 2014 2 commits
-
-
Nikolai Kosjar authored
Triggering the action "Rename Symbol Under Cursor" before the SnapshotUpdater::update() call in parse() of cpptoolseditorsupport.cpp led to the failing assertion. Triggering the action in the initialization phase of the editor is not supported, therefore replace the assert with a silent if. Change-Id: Ib911b8aa038ae3d9ea28c720853780b11dfa0fb7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
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 7 commits
-
-
Nikolai Kosjar authored
Change-Id: I81e966414f7b2060b86879b696918227eac13a73 Reviewed-by:
Tim Jenssen <tim.jenssen@digia.com>
-
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>
-
hjk authored
Change-Id: I21b0af020938db77e92661d6c481e60df3e87bef Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Nikolai Kosjar authored
Change-Id: I5cb69749b4f15e4f70dea410aa6f943c4189c502 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: I199e912203f329ec9b8bed2eb105e4a56f729e7d Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: I6db51aeba328dbb69ec59082a70be7bc2d95699b Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Change-Id: Id8402ac62ea73b98a6ab1d641d45dff621a096c4 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 01 Jul, 2014 2 commits
-
-
Thiago Macieira authored
QStringLiteral() returns a string that has a refcount of -1 and it must be kept. There is no way to determine if it's still in use, so we'll just assume it is. Any QStringLiteral inserted into the structure will stay there forever. On the other hand, we must not accept unsharable strings, so Q_ASSERT on that. Change-Id: I5fbdc1046f0f00319f27fdfb7aa3ff87371ea668 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Christian Kandeler authored
Currently we pass in some places by value, elsewhere by const ref and for some weird reason also by const value in a lot of places. The latter is particularly annoying, as it is also used in interfaces and therefore forces all implementors to do the same, since leaving the "const" off is causing compiler warnings with MSVC. Change-Id: I65b87dc3cce0986b8a55ff6119cb752361027803 Reviewed-by:
hjk <hjk121@nokiamail.com>
-