Przemyslaw Gorszkowski
600f4438bb
C++: performance improvement for template instantiation
...
Add cache for instantiated instantiations in base template class.
Change-Id: I5c457ea4dfeab72cc3910f0092ca1bc14b8aa1ac
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com >
2013-02-27 10:36:08 +01:00
Przemyslaw Gorszkowski
ea32191542
C++: fix instantiation of template special. with pointer argument
...
Fixed code completion for instantiation of template specialization
with argument as pointer, e.g.:
template <typename T>
struct Template
{ T variable; };
template <typename T>
struct Template<T *>
{ T *pointer; };
Template<int*> templ;
templ.pointer;
Change-Id: I7c79fe0cd7119b1208f064aece0cafdf50e1a012
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com >
2013-02-21 16:32:25 +01:00
Oswald Buddenhagen
1fda2111d4
Merge remote-tracking branch 'origin/2.6'
...
Conflicts:
src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in
src/plugins/debugger/qtmessageloghandler.cpp
src/plugins/debugger/qtmessagelogwindow.cpp
src/plugins/madde/maemodeployconfigurationwidget.cpp
src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp
src/plugins/qmldesigner/designercore/include/widgetqueryview.h
src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp
src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp
src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h
src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
src/plugins/qnx/bardescriptormagicmatcher.h
src/plugins/qt4projectmanager/profilekeywords.cpp
src/plugins/remotelinux/deployablefilesperprofile.cpp
src/plugins/remotelinux/deployablefilesperprofile.h
src/plugins/remotelinux/deploymentinfo.cpp
src/plugins/remotelinux/deploymentsettingsassistant.cpp
src/plugins/remotelinux/profilesupdatedialog.cpp
tests/auto/icheckbuild/ichecklib.cpp
tests/auto/icheckbuild/parsemanager.cpp
tests/auto/icheckbuild/parsemanager.h
Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
2013-01-31 16:25:33 +01:00
Przemyslaw Gorszkowski
ffba28d26a
C++: Fix code compl. for instantiation of template specialization
...
It works for full specialization. Instantiate of the partial
specialization has to be implemented(finding appropriate partial
specialization-on going)
Added unit test.
Change-Id: I8ef5ea963e7c665e0d67d390b3a833486773dab0
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com >
2013-01-30 18:49:25 +01:00
Robert Loehning
298531e370
Incremented year in copyright info
...
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205
Reviewed-by: Kai Koehne <kai.koehne@digia.com >
2013-01-29 16:27:03 +01:00
Przemyslaw Gorszkowski
23844410fd
C++ editor: support nested class of enclosing template
...
Fixing:
* highlighting
* tooltips
* find usage
* selecting
Task-number: QTCREATORBUG-8245
Change-Id: I6e900799e43126706125b7e424567fca2b2c223e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com >
2013-01-22 11:35:25 +01:00
Przemyslaw Gorszkowski
b1199ef0cc
C++: Fix code completion for nested classes
...
Fix code completion for nested classes when enclosing is
template class.
Unit tests
Task-number: QTCREATORBUG-8245 (only standalone)
Change-Id: Ib31ad4b799db927b56debd4dc3e7403404c1839d
Reviewed-by: hjk <qthjk@ovi.com >
2012-12-20 10:46:44 +01:00
Erik Verbruggen
cab6ed5e51
Fix: no scope walking for name resolving after MemAccess operator
...
Change-Id: Ic093079fa65d8d749911fd9f5b0f629e9fe68a1e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com >
Conflicts:
tests/auto/cplusplus/findusages/tst_findusages.cpp
Change-Id: I87d305e2d68582aa00b92f9599368615cd76ec74
Reviewed-by: Eike Ziller <eike.ziller@digia.com >
2012-11-22 16:39:47 +01:00
Erik Verbruggen
8cbf0e7045
Fix: no scope walking for name resolving after MemAccess operator
...
Change-Id: Ic093079fa65d8d749911fd9f5b0f629e9fe68a1e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com >
2012-11-21 14:38:00 +01:00
Przemyslaw Gorszkowski
70e3356a02
Refactoring LookupContext.h
...
Extracting class AlreadyConsideredClassContainer to separate file
Change-Id: If3bb89df5ce0bae87723ad4ecab7118337df0655
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com >
2012-11-19 11:23:49 +01:00
Eike Ziller
fe74a9a722
Merge remote-tracking branch 'origin/2.6'
...
Conflicts:
qtcreator.pri
qtcreator.qbs
src/plugins/fakevim/fakevimhandler.cpp
src/plugins/qtsupport/baseqtversion.cpp
tests/auto/cplusplus/cxx11/cxx11.pro
tests/auto/cplusplus/cxx11/tst_cxx11.cpp
tests/auto/icheckbuild/icheckbuild.pro
Change-Id: I3c8351ad35617f56d15b788c8a46d8a6f453ef70
2012-11-09 11:20:10 +01:00
Christian Kamm
19e03b186a
C++11: Correct scoping for scoped enums.
...
Fixes completion, highlighting and find usages.
Change-Id: I1ea12c6a9c7a4f8ba0f9d55e31d6b7986233e7d8
Reviewed-by: hjk <qthjk@ovi.com >
2012-10-31 15:09:06 +01:00
Przemyslaw Gorszkowski
795b884819
Fix crashes while parsing template parameters in C++ code
...
AlreadyConsideredClassContainer has to be cleared when there is no base class
Task-number: QTCREATORBUG-8128
Change-Id: Iad82f2efc361aeb38c88a751c86aa572d373557a
Reviewed-by: Cristian Tibirna <tibirna@kde.org >
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
Reviewed-by: David Schulz <david.schulz@digia.com >
2012-10-31 11:22:02 +01:00
Przemyslaw Gorszkowski
e53f435219
Fix crashes when cyclic inheritance
...
More complex situation.
Base class is a template and derived class is a template.
Task-number: QTCREATORBUG-8072
Task-number: QTCREATORBUG-7962
Change-Id: I7e8aa727fccd2bd4a779e6fe781553cd12196682
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com >
2012-10-24 11:10:23 +02:00
Erik Verbruggen
2b95d81cd8
C++: Fix typedef resolving when templates are involved.
...
Task-number: QTCREATORBUG-7978
Change-Id: I27e6ebe56e410d509580a1e00f8986642cacc5ba
Reviewed-by: David Schulz <david.schulz@digia.com >
Reviewed-by: Eike Ziller <eike.ziller@digia.com >
Reviewed-by: Christian Stenger <christian.stenger@digia.com >
2012-10-19 14:42:32 +02:00
Erik Verbruggen
ba75725a7a
C++: fix member rewriting when doing template instantiation.
...
Task-number: QTCREATORBUG-7964
Change-Id: Icc7d87bb4f2d1ab0560a6c06187d9c23da9fe3e9
Reviewed-by: David Schulz <david.schulz@digia.com >
2012-10-11 16:13:32 +02:00
hjk
386ca7c8dd
Adjust license headers
...
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825
Reviewed-by: Eike Ziller <eike.ziller@digia.com >
2012-10-05 17:12:56 +02:00
Przemyslaw Gorszkowski
fbb756cdcc
Fix crashes when cyclic inheritance
...
Task-number: QTCREATORBUG-7933
Change-Id: I98469a092ff3ff0acc69800e9aade4ebb268332a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com >
2012-10-02 14:59:52 +02:00
Leandro Melo
6750a1c829
C++: Fix crash when deducing auto (with invalid ids)
...
Task-number: QTCREATORBUG-7801
Change-Id: I61436148ed1428a50a6840ba9109310a57dabaa4
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2012-09-04 15:35:01 +02:00
Leandro Melo
903c3cafe8
C++: Improve lookup - collect more valid items
...
There was a fix for QTCREATORBUG-7730 in the case of nested
forward declarations in commit 74a458bca0 .
However, it introduced regressions and actually didn't solve
the issue, since the behavior was hidden by another error fixed later.
The patch should properly fix the issue and the regression pointed
in QTCREATORBUG-7777.
Task-number: QTCREATORBUG-7730
Task-number: QTCREATORBUG-7777
Change-Id: I27397fefdc7cc9a60111761df1f76a01407886f7
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2012-09-04 10:09:16 +02:00
Leandro Melo
11f6ae4a14
C++: Completion for templates as base classes
...
This fixes a variety of issues regarding class completion
when templates are used as base classes. The test cases
show examples.
Task-number: QTCREATORBUG-4357
Change-Id: I764d5ce817a78e1b19336e5beab758ca9e10f34b
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2012-08-23 14:31:42 +02:00
Eike Ziller
e0e8cf3ada
Contact -> qt-project.org
...
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com >
2012-07-19 13:23:21 +02:00
Erik Verbruggen
3fa55b7ab9
Removed module names from #include directives.
...
Getting the #include directives ready for Qt5. This includes the
new-project wizards.
Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2012-02-15 16:24:46 +01:00
hjk
2931a499e6
Long live the king!
...
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com >
2012-01-26 19:55:36 +01:00
hjk
31600758de
all: s/info@qt.nokia.com/qt-info@nokia.com/
...
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-11-03 10:33:19 +01:00
Christian Kamm
0021c4c3ee
C++ insert def: Fix bug when minimizing name.
...
Constructors would not get the correct name before. Now rewriting the
function's name is not done by going through the 'rewrite type' func-
tionality but rather by minimizing the symbol's name directly.
Task-number: QTCREATORBUG-6223
Change-Id: I3c25e414337937f5dd0f54570c899ca2ca21d2ef
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-10-31 14:00:27 +01:00
Christian Kamm
d8c053b525
C++: Fix completion for typedefs for templates in namespaces.
...
Change-Id: Ib96551388c94731d97eb8f9728613b120b0b86a9
Reviewed-on: http://codereview.qt.nokia.com/3262
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-08-19 14:24:05 +02:00
Tobias Hunger
aa2acec14c
Fix/add copyright headers
...
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
hjk
8397663964
Update license.
2011-04-13 11:49:28 +02:00
hjk
57eae3191e
s:// end of namespace :// namespace :g for consistency
...
We use the latter style everywhere else to signify the end of a namespace block.
2011-02-04 12:45:32 +01:00
con
d1023c7614
It's 2011 now.
...
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
con
04e32b0049
License headers.
2010-12-17 16:03:42 +01:00
Roberto Raggi
c12866a467
Merge CPlusPlus::NameId and CPlusPlus::Identifier.
2010-09-02 12:51:01 +02:00
Roberto Raggi
41b4af0501
Get rid of the prefix findOrInsert for the functions in CPlusPlus::Control.
2010-08-11 15:25:19 +02:00
Roberto Raggi
6905b6a5af
Get rid of the member ClassOrNamespace::_instantiations.
2010-08-04 13:07:59 +02:00
Roberto Raggi
c4ede7263d
Get rid of the those ugly warnings.
2010-07-19 15:10:06 +02:00
Roberto Raggi
fff4203a46
Introduced helpers to rewrite types and names.
...
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Roberto Raggi
06c7cb9b88
Disable Create declaration from definition quickfix.
2010-07-12 15:10:00 +02:00
Erik Verbruggen
9135c8ccb1
Quickfix for adding a declaration to a class from a definition.
2010-07-12 09:53:58 +02:00
Roberto Raggi
cceaffca5b
Keep the Control around for as long needed.
2010-06-04 17:58:29 +02:00
Roberto Raggi
64e9f652e0
Handle using declarations
2010-05-27 16:33:18 +02:00
Roberto Raggi
1e1d8e450f
Use the Control created by CPlusPlus::CreateBindings.
2010-05-18 09:24:14 +02:00
Roberto Raggi
ca1d1259c6
Cleanup.
2010-05-14 14:37:17 +02:00
Roberto Raggi
469b6ef741
Get rid of useless overload of findType().
2010-05-14 14:18:44 +02:00
Roberto Raggi
31135d5767
More renaming.
2010-05-14 14:00:56 +02:00
Roberto Raggi
13625c2121
Removed ClassOrNamespace::findType_helper() & co.
2010-05-14 13:55:25 +02:00
Roberto Raggi
8eac2fcd21
More renaming.
2010-05-14 13:55:25 +02:00
Roberto Raggi
a600614866
Renamed classOrNamespace() and lookup/findClassOrNamespace().
2010-05-14 13:55:24 +02:00
Roberto Raggi
fca0d359ba
Removed deprecate overload of LookupContext::classOrNamespace().
2010-05-14 13:55:24 +02:00
Roberto Raggi
3c6ad0d845
Instiate overloads of operator->().
2010-05-14 13:55:22 +02:00