Commit Graph

511 Commits

Author SHA1 Message Date
Roberto Raggi
a3e76dd2cf Get rid off resolveMemberExpression(). 2010-05-14 13:55:22 +02:00
Roberto Raggi
f9a05d9ced Reimplemented resolve base expression. 2010-05-14 13:55:21 +02:00
Roberto Raggi
c739119c2a Fixed Document::scopeAt() to always return a valid scope. 2010-05-14 13:55:21 +02:00
Roberto Raggi
9381a3e7d8 Look for symbols in the base class implementation. 2010-05-14 13:55:21 +02:00
Roberto Raggi
60f76c96e8 Improved LookupItem and get rid of some deprecated code. 2010-05-14 13:55:21 +02:00
Roberto Raggi
140756eef4 Removed deprecated code. 2010-05-14 13:55:20 +02:00
Roberto Raggi
478d3ffdd1 Cleanup. 2010-05-14 13:55:20 +02:00
Roberto Raggi
c282da7d1e Introduced Snapshot::findMatchingDefinition(). 2010-05-11 14:15:07 +02:00
Roberto Raggi
7eae51507c Removed deprecated method Snapshot::globalNamespaceBinding(). 2010-05-11 14:15:06 +02:00
Roberto Raggi
17fd33bdab Store the declaration (if any) associated with the LookupItem. 2010-05-11 11:27:10 +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
ac07b0fcef Resolve the class-or-namespace specifiers when creating bindings for classes. 2010-05-10 12:37:01 +02:00
Roberto Raggi
139087ee5c Introduced Symbol::copy(otherSymbol) and removed some deprecated code. 2010-05-10 12:19:47 +02:00
Friedemann Kleint
9a51f684ee Compile VS 2010-05-10 12:08:39 +02:00
Roberto Raggi
642116e4d2 Oops! removed debug statements. 2010-05-10 10:41:31 +02:00
Roberto Raggi
e6b0b56388 Fixed global lookup. 2010-05-10 10:38:49 +02:00
Roberto Raggi
5daa0e6121 Use the last visible symbol if available. 2010-05-10 10:33:00 +02:00
Roberto Raggi
2e9f94c4b9 Removed unused Control. 2010-05-10 10:10:09 +02:00
Roberto Raggi
7526954e9a Removed debug info. 2010-05-10 09:57:56 +02:00
Roberto Raggi
2e7e4fc92e Skip friend class declarations. 2010-05-10 09:57:56 +02:00
Roberto Raggi
aab9c52030 More work on template instantiation. 2010-05-10 09:57:56 +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
73e9f14a63 Add aliases to the list of the potential types. 2010-05-06 14:05:40 +02:00
Roberto Raggi
94f667dd7f Add namespace aliases to the list of the potential types. 2010-05-05 17:09:47 +02:00
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
c8f03b46c1 Moved CPlusPlus::LookupItem. 2010-05-05 16:36:45 +02:00
Roberto Raggi
32a84df5c0 Deprecated the current LookupContext. 2010-05-05 16:36:44 +02:00
Roberto Raggi
2355799901 Get rid of unsigned/long suffixes before evaluating numbers.
Task-number: QTCREATORBUG-1292
2010-04-29 12:34:50 +02:00
Roberto Raggi
000b637523 Handle unary ~ operator. 2010-04-27 09:55:19 +02:00
Christian Kamm
59778cafd5 CPlusPlus: Fix several issues in the TypePrettyPrinter.
* Fix cv qualifiers being placed incorrectly.
* Fix nested pointer to array to pointer being printed incorrectly.
* Add autotest.

Task-number: QTCREATORBUG-1037
2010-04-19 09:55:35 +02:00
Roberto Raggi
678f7d3e94 Fixed `look at symbol under cursor' when symbol is a Qt method (e.g. a signal).
Done with: erikv
2010-03-29 15:31:42 +02:00
Thorbjørn Lindeijer
b9757a5eb3 Disable C++0x support for now
It introduced at least one new crash to do with recovering from parsing
errors.

Reviewed-by: Roberto Raggi
2010-03-25 19:32:45 +01:00
Erik Verbruggen
8620678270 Renewed attempt to fix possible dangling pointers.
Task-number: QTCREATORBUG-807
2010-03-25 18:59:20 +01: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
Roberto Raggi
8329d7db94 Recognize C++0x lambda expressions. 2010-03-24 13:49:02 +01:00
Erik Verbruggen
2f0e30c150 Fixed #import completion to act the same as #include completion. 2010-03-23 16:06:25 +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
Roberto Raggi
a2c4dee44f Place a whitespace between references. 2010-03-23 12:22:54 +01:00
Roberto Raggi
4b8d597196 Recognize C++0x rvalue references. 2010-03-23 12:12:07 +01:00
Roberto Raggi
6f80219d3e Renamed the CompoundExpressionAST::compoundStatement. 2010-03-23 10:25:43 +01:00
Roberto Raggi
61a504c427 Ensure that the memory pool can be reused after a rewind and get rid of the segmented array. 2010-03-18 15:23:13 +01:00