Commit Graph

167 Commits

Author SHA1 Message Date
Roberto Raggi
1eefd16383 Fixed a few typos and bugs in the ObjC++ support. 2009-07-13 12:05:29 +02:00
Roberto Raggi
a446e06742 Moved CheckUndefinedSymbols in libCPlusPlus 2009-07-13 11:41:12 +02:00
Roberto Raggi
def098bcbd Return the right type for the literal. 2009-07-10 17:08:15 +02:00
Roberto Raggi
00025f93dc More work on the binding pass. 2009-07-10 16:04:36 +02:00
Roberto Raggi
3e54a65a69 Replaced T_INT_LITERAL and T_FLOAT_LITERAL with T_NUMERIC_LITERAL. 2009-07-10 15:45:09 +02:00
Roberto Raggi
fd4dbd7446 Introduced Snapshot::simplified(doc) 2009-07-10 12:42:55 +02:00
Roberto Raggi
d788306781 Don't expand object-like macro when preprocessing in fast-mode. 2009-07-09 17:52:31 +02:00
Roberto Raggi
85c501c976 Fixed possible crash when completing function-like arguments. 2009-07-09 16:20:20 +02:00
Roberto Raggi
6e3bc2c2df Introduced ASTparent 2009-07-07 12:06:58 +02:00
Roberto Raggi
2f649be146 Disable macro expansion when preprocessing in fast-mode. 2009-07-06 09:53:25 +02:00
Roberto Raggi
b2df9bddec Made foreach a keyword when parsing with qtMocRun 2009-07-03 11:00:36 +02:00
Roberto Raggi
3cdd48067c Introduced ForeachStatementAST and the bits to parse foreach statements when qtMocRun is enabled. 2009-07-03 09:12:58 +02:00
Roberto Raggi
251f09c953 Protected the new (not yet finished) code that merge environments. 2009-07-01 11:00:00 +02:00
Roberto Raggi
ed2eb296b1 Fixed possible crash in the preprocessing phase when the first token in the
`original' (not preprocessed) token stream has the whitespace atttribute on.
2009-07-01 10:49:27 +02:00
Roberto Raggi
f8531cc833 Merge the environment from the previous parse. 2009-07-01 10:25:31 +02:00
Roberto Raggi
1219b31e03 Produce `join' tokens. 2009-06-29 14:31:25 +02:00
Roberto Raggi
fd8cd69a47 Introduced Document::CheckMode. 2009-06-26 09:11:14 +02:00
Roberto Raggi
0481176ea7 Highlight the locals. 2009-06-24 16:40:52 +02:00
Roberto Raggi
c222f2aa27 Some cleanup in the AST nodes. 2009-06-17 16:08:33 +02:00
Roberto Raggi
873838fe3a Simplified TypeOf/ResolveExpression. 2009-06-17 11:19:43 +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
e2a0a4d7c5 Keep the original encoded text around while preprocessing. 2009-06-15 15:39:20 +02:00
Roberto Raggi
dbba0ff8d7 Removed the filename literals. 2009-06-15 15:39:20 +02:00
Roberto Raggi
225c784af4 Improved the member lookup of typedef symbols. 2009-06-10 14:45:27 +02:00
Roberto Raggi
3ae43daa5a Expand the anonymous namespace and not the enclosing namespace. 2009-06-10 11:35:45 +02:00
Roberto Raggi
b18cb113da Added Document::source() 2009-06-05 14:29:57 +02:00
Roberto Raggi
da0e9a58df Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainline 2009-06-04 16:18:49 +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
cd3022dc3e Show all the warn messages. 2009-06-04 11:42:02 +02:00
Roberto Raggi
fd62025d63 Say hello to Snapshot::documentFromSource(), Snapshot::preprocessedCode() and Snapshot::globalNamespaceBinding(). 2009-06-03 16:16:20 +02:00
Roberto Raggi
d18b0195e5 Introduced CPlusPlus::FastPreprocessor. 2009-06-03 15:51:37 +02:00
Roberto Raggi
b78200221b Warn for undefined namespaces in using namespace directives. 2009-06-03 14:16:13 +02:00
Roberto Raggi
7b44f1749a Run the binding pass 2009-06-03 12:13:22 +02:00
Roberto Raggi
31e0b43395 Initial work on the binding pass. 2009-06-03 11:56:13 +02:00
Roberto Raggi
f7afe3ee4b Made the C++ front-end more Creator-friendly. 2009-06-03 11:10:04 +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
Thorbjørn Lindeijer
653757e781 Fixed HTML escaping issues in the function argument widget
HTML escaping was moved out of the TypePrettyPrinter since it interferes
with other logic there. Instead, the region to mark is now available
from the Overview and used by the FunctionArgumentWidget to put the
current argument in bold.
2009-05-28 11:00:33 +02:00
Roberto Raggi
10a2274bd4 Removed obsolete code. 2009-05-27 16:32:32 +02:00
Thorbjørn Lindeijer
985aa5727f Fixed a missing space in the tooltips after a template id
Reviewed-by: Roberto Raggi
2009-05-27 16:00:11 +02:00
Thorbjørn Lindeijer
878bc07201 Introduced a backwards scanner for finding expression under cursor
The backwards scanner lazily tokenizes strings. This optimizes the
common case where scanning one or two lines is enough while at the same
time we extended the limit from 5 to 10 lines.

Reviewed-by: Roberto Raggi
2009-05-27 16:00:10 +02:00
Roberto Raggi
b93c9ce347 Some cleanup in the lookup context. 2009-05-27 15:54:13 +02:00
Roberto Raggi
bdf6c3d0be Store the encoded file name in a QString. 2009-05-27 15:34:13 +02:00
Thorbjørn Lindeijer
efc0b20859 Made typing parenthesis even faster
Only attempt to activate the completion when there is a function id on
the left of the parenthesis.

Reviewed-by: Roberto Raggi
2009-05-27 11:38:57 +02:00
Thorbjørn Lindeijer
765aa56d6e Preprocessing an empty expression is always empty
Fixes performance issue with typing opening parentheses.

Reviewed-by: Roberto Raggi
2009-05-27 09:44:44 +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