Commit Graph

384 Commits

Author SHA1 Message Date
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
Erik Verbruggen
284b8d38e2 Put the DependencyTable calculation into the QFuture.
Done-with: Roberto Raggi
2010-03-17 14:20:17 +01:00
Erik Verbruggen
1cc5e1fe01 Put the include depenency table into a separate class, and cache it when possible. 2010-03-17 14:20:17 +01:00
Erik Verbruggen
b4d72a78db Added parser support for Q_INTERFACES. 2010-03-17 10:30:17 +01:00
Roberto Raggi
37c042703f Take the branch when evaluating #ifndef QT_NO_XXX and QT_NO_XXX has been defined in a pro file. 2010-03-12 15:25:48 +01:00
Erik Verbruggen
48889e7574 Changed FindUsages to look into Q_PROPERTYs. 2010-03-12 11:32:43 +01:00
Erik Verbruggen
a2ded1e8ea Added boundary check. 2010-03-12 11:32:43 +01:00
Erik Verbruggen
933ef8cff0 Added bounds check. 2010-03-12 11:32:42 +01:00
Roberto Raggi
1c8930737c Fixed possible crash when asking for the icon of a top-level symbol (e.g. the global namespace). 2010-03-10 09:32:27 +01:00
Erik Verbruggen
417a1c9f28 Fixed QTCREATORBUG-745.
Fixed crash in FindUsages on a dirty file in a large project, which is saved
while the FindUsages is still running.
2010-03-09 17:38:02 +01:00
Christian Kamm
9e75ff8ea2 Don't add the default arguments when completing function definitions.
Fixes QTCREATORBUG-787

Reviewed-by: Erik Verbruggen
2010-03-05 15:45:58 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Roberto Raggi
293f67580d Fixed: Wrong usage highlighting if function's argument list contains comment.
Task-number: QTCREATORBUG-577
2010-03-03 14:11:45 +01:00
Erik Verbruggen
e609e9a701 Simplified ObjC selectors in the AST. 2010-02-23 17:43:52 +01:00
Erik Verbruggen
72c3ba791e Fixed pre-processor handling for Q_PROPERTY, Q_ENUMS and Q_FLAGS. 2010-02-22 18:00:26 +01:00
mae
656de733ab Fix code navigation when line wrapping is enabled 2010-02-19 18:49:46 +01:00
Kai Koehne
1f411118bf Fix compilation error with gcc 4.4.3
call of overloaded ‘QString(int)’ is ambiguous
2010-02-17 09:17:54 +01:00
Erik Verbruggen
8de6ccc775 Revert "Split Objective-C keyword parsing to handle the '@' separately."
This reverts commit 2a59d2ae0c.
2010-02-15 12:24:31 +01:00
Erik Verbruggen
a0071f1ce9 Revert "Added Objective-C @try block parsing."
This reverts commit f4163b8ba0.
2010-02-15 12:24:31 +01:00
Erik Verbruggen
f4163b8ba0 Added Objective-C @try block parsing. 2010-02-15 09:27:01 +01:00
Erik Verbruggen
2a59d2ae0c Split Objective-C keyword parsing to handle the '@' separately.
Because apparently, while designing the Objective-C language, somebody
thought it was a world-class idea to allow any white-space between the
'@' character and the subsequent keyword. With this fix, we now
correctly parse:
    @  dynamic
and:
    @
      selector
and:
    @"foo"
     "bar"
    @"mooze"
(This last one is 1 single string split over multiple lines.)
Wonderful, isn't it?

What we (and Clang) do not support, but what GCC supports is something
like:
   @"foo"@@  "bar"  @"mooze"  @@
which is equivalent to @"foobarmooze".
2010-02-15 09:27:00 +01:00
Roberto Raggi
b7512a2dc7 Removed obsolete files. 2010-02-12 12:44:48 +01:00
Roberto Raggi
75229edcf9 Process the formal arguments of inline methods when searching the usages of a symbol. 2010-02-11 10:18:05 +01:00
Erik Verbruggen
1af05166d9 Removed Q_DECLARE_FLAGS parsing, leaving it to the CPP to expand it. 2010-02-08 15:41:18 +01:00
Erik Verbruggen
b58cb740e5 Changed ObjC message arguments to have SimpleName for the name part. 2010-02-08 09:34:51 +01:00
Erik Verbruggen
21488e8898 Added semantic checks for Q_ENUMS. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
8d8b05da5a Reworked parts of the QtPropertyDeclaration parsing and handling. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
6ca5f5f5f8 Added semantic checks for compound expressions. 2010-02-07 10:49:02 +01:00