Commit Graph

155 Commits

Author SHA1 Message Date
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
Oswald Buddenhagen
b0b5bde2e9 Merge remote branch 'origin/1.3'
Conflicts:
	doc/qtcreator.qdoc
	src/plugins/debugger/watchhandler.cpp
2009-11-27 20:06:01 +01:00
Thorbjørn Lindeijer
b02d705ac4 Fixed possible crash in the code completion
Null pointer reference in a case where the global namespace is
explicitly specified using ::

Task-number: QTCREATORBUG-351
Review-pending-by: Roberto Raggi
2009-11-26 16:36:39 +01:00
hjk
68160cfa8b compile fix with namespaced Qt 2009-11-20 16:54:09 +01:00
Roberto Raggi
ecf40d2426 Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead. 2009-11-17 14:24:09 +01:00
Erik Verbruggen
72d4493fc2 Added scope calculation for Objective-C classes. 2009-11-11 09:21:06 +01:00
Roberto Raggi
82ecb2c7b3 Initial work on the `new' GenTemplateInstance. 2009-10-26 17:59:54 +01:00
Roberto Raggi
b7a0dbfa0c Expand the enclosing namespace. 2009-10-15 17:16:05 +02:00
Roberto Raggi
2c80805165 Fixed possible crash when searching the canonical symbol. 2009-10-14 17:12:41 +02:00
Roberto Raggi
f7263f2333 Fixed lookup of qualified name ids. 2009-10-12 14:08:26 +02:00
Roberto Raggi
99c3327719 Improved support for private classes. 2009-10-12 12:01:01 +02:00
Roberto Raggi
7e0e62cb25 Find the canonical virtual method. 2009-10-07 16:12:33 +02:00
Roberto Raggi
3c51e5b24b Return the class declaration as canonical symbol for ctors, dtors, and class names. 2009-10-06 16:27:39 +02:00
Roberto Raggi
e8fc850342 Don't search for the canonical symbol in the base classes (at least for now). 2009-09-30 12:05:12 +02:00
Roberto Raggi
6b4db9e674 Handle ctor-initializers in the LookupContext. 2009-09-29 12:47:03 +02:00
Roberto Raggi
b3cf5ae50a Some work on `find references of a symbol'. 2009-09-25 14:20:02 +02:00
Roberto Raggi
20ff553b59 Introduced LookupContext::canonicalSymbol(). 2009-09-25 14:20:02 +02:00
Erik Verbruggen
06fcf59f2e Added method arguments to the lookup context of an ObjC method. 2009-09-25 12:12:00 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Roberto Raggi
3ae43daa5a Expand the anonymous namespace and not the enclosing namespace. 2009-06-10 11:35:45 +02:00
Roberto Raggi
f98b937b8c Expand enum and anonymous scoped symbols when resolving qualified name ids.
Reviewed-by: Thorbjørn Lindeijer
2009-06-04 16:17:22 +02:00
Roberto Raggi
2a8b5a2e2b Refactored the lookup of name and template name ids. 2009-05-28 15:24:17 +02:00
Roberto Raggi
6a3382d8de Say hello to LookupContext::resolveNestedNameSpecifier() 2009-05-28 12:39:56 +02:00
Roberto Raggi
faaab90a15 Added LookupContext::resolveOperatorNameId() with the bits needed to resolve operator name ids. 2009-05-28 12:10:45 +02:00
Roberto Raggi
d9a65beacc Moved the lookup of qualified name ids in LookupContext::resolveQualifiedNameId() 2009-05-28 11:59:11 +02:00
Roberto Raggi
a1ec4e2a94 Introduced Name::identifier().
Name::identifier() returns the identifier used to declare the name.
2009-05-28 11:49:59 +02:00
Roberto Raggi
10a2274bd4 Removed obsolete code. 2009-05-27 16:32:32 +02:00
Roberto Raggi
b93c9ce347 Some cleanup in the lookup context. 2009-05-27 15:54:13 +02:00
Roberto Raggi
1f26af5c5e Oops! Removed "ugly" and buggy "return". 2009-05-19 15:34:17 +02:00
Roberto Raggi
398451b9d5 Improved LookupContext::buildVisibleScopes(). 2009-05-19 14:15:56 +02:00
Thorbjørn Lindeijer
55c69ffea4 Do not expand the list of candidates when resolving fully qualified ids
Still too unstable after all.

This reverts commit 6f3c9f7002.
2009-05-19 12:16:25 +02:00
Thorbjørn Lindeijer
6f3c9f7002 Revert "Do not expand the list of candidates when resolving fully qualified ids"
This reverts commit 84ba24ac71.

It might work now cause of the fix done in commit
f3767148c0.
2009-05-18 15:30:37 +02:00
Roberto Raggi
f3767148c0 Fixed: Possible crash when resolving fully qualified name ids.
Task: 249227
2009-04-06 16:49:58 +02:00
Thorbjørn Lindeijer
84ba24ac71 Do not expand the list of candidates when resolving fully qualified ids
Crashes, Roberto will fix properly later.
2009-03-26 11:18:09 +01:00
Roberto Raggi
249aaa0ab6 Fixed the lookup of qualified name ids. 2009-03-25 12:29:15 +01:00
Roberto Raggi
064201ff85 Mark the generated regions of text. 2009-03-04 14:36:47 +01:00
hjk
8ca887aae2 Fixes: change file license headers to include LGPL 2009-02-25 09:15:00 +01:00
Roberto Raggi
c72c84d837 Fixes: Possible crash while resolving qualified name ids.
There is no need to "expand" again the scope we get from invoking `resolve'.
2009-02-18 16:02:01 +01:00
Thorbjørn Lindeijer
a7cda431f0 Fixed crash in lookup context due to null-name
Return early in this case.

Reviewed-by: Roberto Raggi
2009-02-11 10:41:07 +01:00
Roberto Raggi
a90545126f Fixes: Lookup of qualified name ids. 2009-01-24 23:07:42 +01:00
Daniel Molkentin
59affcfffc Bump year in licence header. 2009-01-13 19:22:14 +01:00
Roberto Raggi
9f1e7205e8 Ensure we had a valid class symbol. 2009-01-13 10:30:48 +01:00
Roberto Raggi
a2cd5db6ce Improved the lookup of qualified name ids. 2009-01-13 10:17:13 +01:00
Roberto Raggi
f0ac751f4a Completion for typedef of pointer to struct. 2008-12-31 10:57:27 +01:00
Roberto Raggi
0185a49a78 Removed LookupUtils. 2008-12-23 15:27:55 +01:00
Roberto Raggi
e325aa38d9 Nicer implementation of CPlusPlus::Macro. 2008-12-22 13:55:42 +01:00
Roberto Raggi
1e0f06e4e8 Introduced expandNamespace(), expandClass(), expandBlock(), and expandFunction().
This should simplify the merging of the improved lookup context.
2008-12-22 13:27:01 +01:00
hjk
da3cb14483 chancge Nokia GPL exception version from 1.2 to 1.3 2008-12-16 17:20:00 +01:00