- 26 Feb, 2015 3 commits
-
-
Friedemann Kleint authored
Change-Id: I1e7dd34ba5a51fb0b34d137dc03add4457b32ed1 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Orgad Shaneh authored
template<typename T> struct QList { struct iterator { T *operator->() { return &t; } T t; }; static iterator begin() { return iterator(); } }; struct Foo { int bar; }; void fun() { auto a = QList<Foo>::begin(); a. // crash } Change-Id: I373c493b2eefc9566ec13165285c33d474a3b440 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Przemyslaw Gorszkowski authored
Fixed case: template<class T> struct List { struct iterator { T *operator->() { return &t; } T &operator*() { return t; } T t; }; iterator begin() { return iterator(); } }; struct Foo { int bar; }; void func() { List<Foo> list; auto a = list.begin(); (*a).; // code completion doesn't work a->; // code completion does not work } Task-number: QTCREATORBUG-13799 Change-Id: I38e4bfb2f5d728c0b24b0f18b3d78793e90d633b Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 25 Feb, 2015 4 commits
-
-
Przemyslaw Gorszkowski authored
Fixed case: template<class T> struct List { struct iterator { T *operator->() { return &t; } T t; }; iterator begin() { return iterator(); } }; struct Foo { int bar; }; void func() { List<Foo> list; list.begin()->; // code completion doesn't work } Task-number: QTCREATORBUG-13799 Change-Id: I65e8d3092bbc9b01a5dbee241c24d95dd03fc670 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Przemyslaw Gorszkowski authored
Fixed case: template<class T> struct List { struct iterator { T &operator*() { return t; } T t; }; iterator begin() { return iterator(); } }; struct Foo { int bar; }; void func() { List<Foo> list; (*list.begin()).; // code completion doesn't work } Task-number: QTCREATORBUG-13799 Change-Id: Ia3f5c1631c2f6a25d7fb1186b4ef506354ed22be Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Nikolai Kosjar authored
...when offering Qt5 style slot completions. Change-Id: Id23b008601ade3533aea2b6295558ffea178a5da Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Nikolai Kosjar authored
...and their class names. Change-Id: I41b4705eb572d9d6431a06025e73b0c1621d4bea Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 24 Feb, 2015 1 commit
-
-
Alessandro Portale authored
In Qt Creator, we want line edits to take up the free horizontal space. Change-Id: I4ff78035ab2481cc2f944fc02569638f06f0b090 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 20 Feb, 2015 2 commits
-
-
Nikolai Kosjar authored
* Fix qualifying the member function, take namespace into account * Fallback to usual completion if we cannot provide anything * Ensure that the completion is not triggered outside connect() calls * Change to a two step process: 1. connect(obj, & // offer class name completion 2. connect(obj, &N::Foo:: // offer signal completions ...same for the 4th. argument. Change-Id: Ifa4c74cde1b96ec7c544daaeefc47c4efdd8294a Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Orgad Shaneh authored
Task-number: QTCREATORBUG-8007 Change-Id: Ic96aaa433442812a99bac9d16bb9124d66762e8c Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 18 Feb, 2015 1 commit
-
-
Nikolai Kosjar authored
Change-Id: I0bf7d826d53749c5fd1be1e4f3c2faa403d13342 Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com>
-
- 17 Feb, 2015 3 commits
-
-
Nikolai Kosjar authored
Trigger completion for Qt5 signals/slots as soon as the user types '&' in connect(object, & connect(object, &Foo:signal, object2, & Change-Id: I338a26415196959e3dc413bdfd023314812f3aaa Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Eike Ziller authored
Change-Id: I4305872b6b11ef3e8a364280ffa5209a5a793600 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Orgad Shaneh authored
It cannot return null. Change-Id: I3ac5f33e7e02554edc8df067c7b85518e58c1fc2 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 16 Feb, 2015 1 commit
-
-
Orgad Shaneh authored
Change-Id: I81d0aea2354a9d0461646590f06bb38bd4366f29 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 12 Feb, 2015 1 commit
-
-
Nikolai Kosjar authored
This reverts the changes commit beac7b95 C++: Fix highlighting after "invalid code" commit 78ab287f C++: Stop parsing a declaration after two tries which were a work around for QTCREATORBUG-12890. A follow-up patch provides a proper fix. Task-number: QTCREATORBUG-12890 Change-Id: I2650a8e41c8ff1180cad9f069e463fc51bd2f1b1 Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 09 Feb, 2015 3 commits
-
-
Nikolai Kosjar authored
Change-Id: Icf53019b594a5c45b06f7f1fab0f4bf36e891918 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Lorenz Haas authored
Change-Id: I840160a8f5b1c86d621f3334556a74ccb7176ba8 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Nikolai Kosjar authored
Change-Id: I1ea9f755fe0fc7053e2fb209de9301bcb1a81739 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 04 Feb, 2015 4 commits
-
-
Orgad Shaneh authored
Mostly done using the following ruby script: Dir.glob('**/*.cpp').each { |file| next if file =~ %r{src/shared/qbs|/qmljs/} s = File.read(file) s.scan(/^using namespace (.*);$/) { ns = $1 t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m| before = $1 char = $2 if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/ m else before + char end } if t != s puts file File.open(file, 'w').write(t) end } } Change-Id: I6fbe13ddc1485efe95c3156097bf41d90c0febac Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
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>
-
Nikolai Kosjar authored
Change-Id: If27b4e11deafaefd95a5815466fc5fdac23ba30a Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
...since by now we get the defines in the correct format from QMakeProject. See the change this one depends on. Tested with: Qbs: cpp.defines: [ 'PATH1="/some/path"', "PATH2=\"/some/path\"" ] QMake: DEFINES += PATH1=\\\"/some/path\\\" "PATH2=\\\"/some/path\\\"" CMake: add_definitions(-DPATH1="/some/path" "-DPATH2=\"/some/path\"") All these lines translate to #define PATH1 "/some/path" #define PATH2 "/some/path" for the code model. Change-Id: Ifc3d3acff3abab6897ccbd0c5fafd5c415dfb53c Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 03 Feb, 2015 1 commit
-
-
Christian Kandeler authored
Change-Id: I8b677fc82672ca5fd36bae18480467ef95201dcc Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 30 Jan, 2015 2 commits
-
-
hjk authored
Change-Id: I3bf9d65b73a4ab1619c8e48815792f35e2359f45 Reviewed-by:
hjk <hjk@theqtcompany.com>
-
Montel Laurent authored
Change-Id: I873a36601d54065b61d0666558b93dc839ad0dfc Reviewed-by:
hjk <hjk@theqtcompany.com>
-
- 29 Jan, 2015 2 commits
-
-
Christian Kandeler authored
Not all defines make sense for non-compilation purposes. Change-Id: I7c5dd5aaa6de5c8916dfc10eb54ae49efa22959d Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Orgad Shaneh authored
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by:
hjk <hjk@theqtcompany.com>
-
- 27 Jan, 2015 1 commit
-
-
Christian Kandeler authored
"#define XYZ" does not correspond to "-DXYZ" (which means "#define XYZ 1"), but to "-DXYZ=". Change-Id: I3ed44e1457b3df52dc9bdb930ba8f4a04784d207 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 26 Jan, 2015 4 commits
-
-
Nikolai Kosjar authored
Change-Id: I75768f548f8f914e76fbdeaf3c318c207782fe1b Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
Change-Id: I1cafcd8daf93ffc2f672bf7e2ba5d1c8ea5e8652 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Nikolai Kosjar authored
* Cuts direct dependency to CPlusPlus from cppeditor.h, but cppfunctiondecldeflink.h still pulls it in. * Cuts direct dependency to cppeditor.h from cppvirtualfunctionassistprovider.cpp, but it still depends on cppeditorconstants.h. * Cuts direct dependency to cppeditor.h from cppelementevaluator.cpp. The long-term goal is to make the CppEditor independent from concrete code model backends. Change-Id: I291ee0d0da5fc5ed1a839a763fe7be11dcf7a6fb Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
Christian Kandeler authored
Needed for clang static analyzer. Change-Id: I0221b7e87f7b52a4aa5ebf7f4b26c19e584d63e7 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 21 Jan, 2015 3 commits
-
-
Nikolai Kosjar authored
As as side effect, this also brings some more pragma completions for the builtin-in completion engine, e.g. "pragma once" or "pragma omp atomic". Change-Id: If3ef22076c331c653b78a87cfff836c1da38c8fb Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
We will introduce a base class with the name CppCompletionAssistProcessor. Change-Id: I74a39d0b14d4ee30d7bd7675ad968e83f377de7f Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
Bug was exhibited by running e.g. ./qtcreator -test CppEditor,test_quickfix_MoveFuncDefOutside_FreeFuncToCppNS \ -test CppTools,test_cpplocatorfilters_CppLocatorFilter:CppFunctionsFilter-WithNamespacePrefix Change-Id: I57d96a8f7bf0aea6eb11cb68d1b981808533ce41 Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com>
-
- 16 Jan, 2015 1 commit
-
-
Eike Ziller authored
Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 14 Jan, 2015 3 commits
-
-
Nikolai Kosjar authored
...and related functions. For clarity in client code. Change-Id: Icad6fc7b1eee2ce46a2eba8435359837a23409c8 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
Nikolai Kosjar authored
Scope::lastMember() was misleading. Change-Id: I953d489b8a2a9b86321f73cad3b7b371c4acf91f Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
-
Nikolai Kosjar authored
This should improve results of CI tests where multiple creator instances execute the plugin tests. Change-Id: I557a0964568655662108df201589ba369096f4bf Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com> Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com>
-