- 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>
-
- 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>
-
- 12 Nov, 2014 2 commits
-
-
Nikolai Kosjar authored
isScope() calls asScope(). Change-Id: I9ffe3bf2b9cff567b32a59cf27727097642b560b Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
Nikolai Kosjar authored
Needed for the debugger. Change-Id: I6465f6dc53017df212e403ea8a9a1c7977ac1671 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 11 Nov, 2014 1 commit
-
-
Nikolai Kosjar authored
The code that constructed the fully qualified name used enclosingNamespace() which skips classes. Use LookupContext::fullyQualifiedName() instead. Change-Id: Ic03a91c0fe120c52dc69f3e78e82a574458d8314 Reviewed-by:
hjk <hjk121@nokiamail.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 1 commit
-
-
Przemyslaw Gorszkowski authored
Fixed case: class Foo {}; void foo(int v) {} void foo(const char *v) {} void foo(const Foo &v) {} void foo(char v) {} void test() { foo(5); foo("hoo"); foo('a'); char *var = "var"; foo(var); // Jumps to last override, regardless of its type Foo f; foo(f); // Jumps to last override } Task-number: QTCREATORBUG-13128 Change-Id: I038553bb3bdbe1c300fc01573c14b6fedf0320cd Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 06 Nov, 2014 1 commit
-
-
hjk authored
Better suited to avoid the indirection (sizeof(Token) > sizeof(void *)) Change-Id: Ia5f42781e720ef6aa8161f8f81ae8ddd8e58c837 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 04 Nov, 2014 1 commit
-
-
Orgad Shaneh authored
Change-Id: I5e4f03f9a5f80b2697ac1e7a952a8c5b5765aae2 Reviewed-by:
hjk <hjk121@nokiamail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 15 Oct, 2014 1 commit
-
-
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>
-
- 09 Oct, 2014 2 commits
-
-
Nikolai Kosjar authored
There are multiple situations were the snapshot is copied and access/modifications to the dependency table data is made in other threads, e.g.: * FindUsages called by ProcessFile * findReferences() in cppuseselectionsupdater.cpp * CppModelManager::projectPartFromDependencies() (clang path) Change-Id: Ided1c5350f339c5bc960b87b32c78ccc21fa61f6 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
Eike Ziller authored
Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 08 Oct, 2014 2 commits
-
-
Nikolai Kosjar authored
...when adding an include for an undefined identifier. Change-Id: Ia338e924901262a847d3bd7ed9733d8e66c631dd Task-number: QTCREATORBUG-10391 Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
Nikolai Kosjar authored
...to the Document/Block. Change-Id: I1a96dc70ac93254e6030326b36a5df9a2cdc2bd8 Reviewed-by:
Christian Stenger <christian.stenger@digia.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 02 Oct, 2014 1 commit
-
-
David Schulz authored
Change-Id: Ie6aaaa5d99ba3823d9d42331f45b2dcab397e1cd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 01 Oct, 2014 1 commit
-
-
Christian Kandeler authored
Change-Id: Id38252d7e24bccc2a0c4bf2631d98da632c16533 Reviewed-by:
Christian Kandeler <christian.kandeler@digia.com>
-
- 30 Sep, 2014 1 commit
-
-
Eike Ziller authored
Fill the line and column information in the location returned by QmlOutlineModel::sourceLocation for that. The drag & drop code also needed a way to override the executed drop action for file drops, because the QML outline supports move-drags, which would lead to the items being removed from the outline when dragged onto a split... Change-Id: I2478abc7d5aa2f3aa676cdd609ecb69a50adce8c Reviewed-by:
Daniel Teske <daniel.teske@digia.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
- 25 Sep, 2014 1 commit
-
-
Nikolai Kosjar authored
...for templates with typedefs referencing the respectively other template (basic_ostream <-> ostreambuf_iterator). Tested with MSVC 2013. Regression introduced by ba42ceb0. Task-number: QTCREATORBUG-13064 Task-number: QTCREATORBUG-13065 Change-Id: I71a45c720663a73c3302eb7da731e6ad2d8f0fbd Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
- 22 Sep, 2014 1 commit
-
-
Nikolai Kosjar authored
...since build() is called multiple times for e.g. the global snapshot (CppModelManager::projectPartFromDependencies, CppModelManager::replaceDocument). Change-Id: I03667496a5abc984ba976046dc7b76998a6e3336 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 19 Sep, 2014 1 commit
-
-
hjk authored
It logically depends on the Snapshot and has a related lifetime. Keeping it in the Snapshot avoids some code compelxity. Change-Id: I24ee4483b44d9b0d7f2e4d494ae7ea624b949f9c Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 17 Sep, 2014 1 commit
-
-
hjk authored
Change-Id: I46878d9ca048d0c79032445f5adc27c12d27f30c Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 12 Sep, 2014 1 commit
-
-
Erik Verbruggen authored
Reported as a dead store by the clang static analyzer. Change-Id: Id5eb72ea4698a17486b8a05d88ee66f3fd89bcfc Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@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 2 commits
-
-
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>
-
Orgad Shaneh authored
Change-Id: I76a0f4e20b364affdd8a7939fced6f0f012b661c Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 08 Sep, 2014 1 commit
-
-
Christian Kandeler authored
Qt 5.3 is the minimum requirement these days. Remove all fallback code from sources and project files. Change-Id: If6188a471197acadda4d6baee71804ba1a8026c6 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- 04 Sep, 2014 1 commit
-
-
Kai Koehne authored
Change-Id: I2f90c8ae7b5e968b9de882833f8661ab540a9232 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 29 Aug, 2014 2 commits
-
-
Nikolai Kosjar authored
Change-Id: I4568709edc7e11de2584916014c16f95ceb4b584 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Erik Verbruggen authored
The CppRefactoringChanges::fileNoEditor takes a Document from the snapshot it has. Although this snapshot is a safe copy, it might have been gotten right after it was updated by indexing. Such a document will still have its AST. If this AST is used by any refactoring action without retaining it, the pointers will be dangling after a short while (specifically: after the locator has extracted all the information). The fileNoEditor method is called by the declDefLinkFinder to search the target document. The snapshot is obtained before, and contains the document for the semantic info. However, the target document will not come from the semantic info, but from the indexer. Change-Id: I212ff41dde6910e94e80552b2c3e5911fe9496ae Task-number: QTCREATORBUG-11262 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 28 Aug, 2014 2 commits
-
-
Erik Verbruggen authored
See [global.names] (17.6.4.3.2 in the C++11 spec.) Change-Id: I8434496dbe392b52d339d5f17cfaeee8dbd88995 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Przemyslaw Gorszkowski authored
Change-Id: I73d50d7b51e6a4e9d2b20df487f871793a6a6889 Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@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>
-
- 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>
-
- 24 Jul, 2014 1 commit
-
-
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>
-
- 22 Jul, 2014 1 commit
-
-
Erik Verbruggen authored
Change-Id: Ifa81a481bf92b5b71495a105ae292f3e9895f704 Task-number: QTCREATORBUG-9279 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>
-
- 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>
-