Commit Graph

130 Commits

Author SHA1 Message Date
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
Roberto Raggi
60f76c96e8 Improved LookupItem and get rid of some deprecated code. 2010-05-14 13:55:21 +02:00
Roberto Raggi
c282da7d1e Introduced Snapshot::findMatchingDefinition(). 2010-05-11 14:15:07 +02:00
Roberto Raggi
37fde0c9d4 Split LookupContext::lookup() in lookup() and find().
lookup() searches for symbols in the given binding and the enclosing scopes,
while find() searches for symbols only in the given binding.
2010-05-11 10:20:51 +02:00
Roberto Raggi
7446f5cae2 Describe the LookupContext API. 2010-05-11 10:12:49 +02:00
Roberto Raggi
6d6e18aa23 Renamed switchCurrentEntity() 2010-05-11 10:03:30 +02:00
Roberto Raggi
9af0e070f4 Renamed lookup_helper(). 2010-05-11 10:01:10 +02:00
Roberto Raggi
139087ee5c Introduced Symbol::copy(otherSymbol) and removed some deprecated code. 2010-05-10 12:19:47 +02:00
Roberto Raggi
05984e71fc Refactor a bit the lookup, it should simplify template instantiation. 2010-05-10 09:57:55 +02:00
Roberto Raggi
bc6828ff01 Don't use QByteArray in the public API. 2010-05-10 09:57:55 +02:00
Roberto Raggi
b84db9ba88 Enable lazy lookup. 2010-05-05 16:36:46 +02:00
Roberto Raggi
d9527680a9 Try to use the new LookupContext. 2010-05-05 16:36:46 +02:00
Roberto Raggi
66a9ef0725 Ported completeScope(), completeNamespace() and completeClass() to use the new LookupContext. 2010-05-05 16:36:45 +02:00
Roberto Raggi
9eea78d7f1 Initial work on the new LookupContext. 2010-05-05 16:36:45 +02:00
Roberto Raggi
32a84df5c0 Deprecated the current LookupContext. 2010-05-05 16:36:44 +02:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Roberto Raggi
a93b625697 Compile with msvc. 2009-12-07 13:00:56 +01:00
Roberto Raggi
60caec48d1 Store the documents in an hash. 2009-12-07 11:12:55 +01:00
Roberto Raggi
7c7ce13ac0 Use const names. 2009-12-01 12:46:23 +01:00
Roberto Raggi
fade61a8a9 Use const literals. 2009-12-01 11:46:36 +01:00
hjk
68160cfa8b compile fix with namespaced Qt 2009-11-20 16:54:09 +01:00