Commit Graph

73 Commits

Author SHA1 Message Date
Roberto Raggi
2b95b46e43 Improved CreateBindings::findClassOrNamespace(Symbol *) 2010-05-05 16:36:46 +02:00
Roberto Raggi
b84db9ba88 Enable lazy lookup. 2010-05-05 16:36:46 +02:00
Roberto Raggi
e821be344d Invoke the right overload. 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
Erik Verbruggen
933e52888e Revert "Fixed possible crash in dangling pointers in namespaces."
Main reason is that find-usages and refactoring broke completely.
Second reason is that concurrent modification was done on the
children-list while deleting/destructing.

This reverts commit b0b95f8875.
2010-03-24 17:05:39 +01:00
Erik Verbruggen
b0b95f8875 Fixed possible crash in dangling pointers in namespaces.
Patch by: Bill King
2010-03-23 13:53:22 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Erik Verbruggen
2dc221d76d Prefer ObjC classes/protocols when searching for a canonical symbol. 2010-01-11 09:29:38 +01:00
Tobias Hunger
a22e64a093 Fix typo in comment. 2010-01-08 11:43:45 +01:00
Thorbjørn Lindeijer
97eabc2916 Merge branch '1.3' 2010-01-06 14:46:22 +01:00
Roberto Raggi
0fdb3bebee Fixed crash when completing symbols without a valid context.
Task-number: QTCREATORBUG-534
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2010-01-06 12:32:29 +01:00
Roberto Raggi
02c7336795 Expand the template parameters. 2009-12-08 12:38:27 +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
14376c3c32 Initial work on the new CPlusPlus::Snapshot.
Encapsulate the details.
2009-12-07 10:54:27 +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
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