Commit Graph

65 Commits

Author SHA1 Message Date
Roberto Raggi
77aa306478 Removed the MacroResolver
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
2009-10-07 13:57:45 +02:00
Erik Verbruggen
f1e665463b Added protocol & class definedness checks, and added property attribute checks. 2009-10-05 18:02:01 +02:00
Roberto Raggi
9a21143384 Implemented a simple(fast?) strategy to resolve macro references. 2009-09-30 17:17:11 +02:00
Roberto Raggi
e50d60ac97 Introduced MacroResolver. 2009-09-30 17:17:11 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
Erik Verbruggen
ffccb612af Parsing fix for casts in ObjC message expressions. 2009-08-10 12:44:52 +02:00
Erik Verbruggen
4e7881577d Parser fix for ObjC methods. 2009-08-06 13:44:33 +02:00
Erik Verbruggen
ca34b0ca1c Cleaned the ObjC AST up. 2009-08-05 17:14:08 +02:00
Roberto Raggi
393806696d The parser needs to a valid AST when the parsing method returns `true'. 2009-08-05 09:59:11 +02:00
Erik Verbruggen
e53d23d55c Merged ObjCMethodDefinitionAST into ObjCMethodDeclarationAST. 2009-08-04 16:22:24 +02:00
Erik Verbruggen
e205126774 Added @synchronized parsing for Objective-C. 2009-07-31 16:53:05 +02:00
Erik Verbruggen
4a0da2c6f2 Added Semantic checks for ObjC methods. 2009-07-31 16:03:48 +02:00
Erik Verbruggen
83e35eb9fb Another fix for ObjC fast-enum parsing. 2009-07-29 10:39:27 +02:00
Erik Verbruggen
123e2f6349 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-29 10:06:42 +02:00
Erik Verbruggen
f04dbf05b9 Fix for ObjC fast-enumeration parsing. 2009-07-29 10:06:14 +02:00
Erik Verbruggen
7e65890ca2 Fixed a typo in foreach parsing, which stored the initializer in the
expression, which subsequently got overwritten by the (real) expression.
2009-07-29 09:46:38 +02:00
Erik Verbruggen
26267c0344 Improved ObjC parsing, and added semantic checks. 2009-07-28 16:34:15 +02:00
Erik Verbruggen
336e1dc5fb Fixes for the ObjC AST. Now it should be complete. 2009-07-20 11:46:59 +02:00
Erik Verbruggen
34987cc1ca Added more AST for ObjC. 2009-07-20 10:04:44 +02:00
Erik Verbruggen
a3d129527f Added ObjC method prototypes to the AST. 2009-07-16 17:38:24 +02:00
Erik Verbruggen
7fbec4f28e Added ObjC properties to the AST. 2009-07-16 15:50:42 +02:00
Erik Verbruggen
fa03d46984 Added ObjC @interface and @implementation member declarations. 2009-07-16 14:31:13 +02:00
Erik Verbruggen
ef58d082ea Added ObjC encode expressions. 2009-07-16 12:44:47 +02:00
Erik Verbruggen
a262fce6d0 Added ObjC protocol expressions. 2009-07-16 12:18:05 +02:00
Erik Verbruggen
e5377519d6 Added varargs parsing for ObjC send_msg arguments. 2009-07-16 11:27:45 +02:00
Erik Verbruggen
c8f155c0fc AST additions for ObjC send_msg. 2009-07-15 12:11:07 +02:00
Roberto Raggi
6c0854df66 Improved the parsing of parameter declarations clause. 2009-07-13 14:29:20 +02:00
Erik Verbruggen
e70bb220b1 Added @dynamic parsing. 2009-07-13 11:21:06 +02:00
Erik Verbruggen
08a85a51bf Added @synthesize and fixed @property. 2009-07-13 11:16:22 +02:00
Erik Verbruggen
78cceecc28 Added AST for a bit of ObjC. 2009-07-13 11:08:11 +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
7e7c944628 Stop at class or elaborated class specifiers when recovering declarations. 2009-07-06 09:53:25 +02:00
Roberto Raggi
ca62e4f61c Fixed the parsing of foreach statements. The initializer expression needs to be an assignment expression. 2009-07-03 11:31:00 +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
Thorbjørn Lindeijer
341a843bbf Removed two stray backslashes 2009-06-29 14:30:43 +02:00
Roberto Raggi
298b6ac520 Oops, restore the value of blockErrors() 2009-06-19 14:48:07 +02:00
Roberto Raggi
20545fd4b1 Fixed more template-id vs expressions ambiguites. 2009-06-19 12:39:32 +02:00
Roberto Raggi
0c03c1b9f9 Fixed template-id vs binary expression followed by a C-cast expression ambiguity. 2009-06-19 11:59:26 +02:00
Roberto Raggi
9c038180d8 Improved compatibility with the gcc extensions. 2009-06-18 17:49:17 +02:00
Roberto Raggi
9a8e724f15 Don't search for undefined symbols in ambiguous typeof expressions. 2009-06-18 14:22:06 +02:00
Roberto Raggi
c222f2aa27 Some cleanup in the AST nodes. 2009-06-17 16:08:33 +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
0497c535a2 cleanup 2009-06-05 09:44:37 +02:00
Thorbjørn Lindeijer
ecc2b25ddc Extended the AST with references to more tokens
Mainly comma tokens. Referencing all tokens is necessary to be able to
implement pretty-printing based on the AST while maintaining user
formatting.

Reviewed-by: Roberto Raggi
2009-05-11 17:03:51 +02:00
Roberto Raggi
1a1b841cdb Fixed parsing of ambiguous name ids. 2009-04-28 19:02:28 +02:00
Roberto Raggi
424dd77e18 Added support for Q_SIGNAL and Q_SLOT. 2009-03-25 11:50:17 +01:00
Roberto Raggi
a744a73145 Check for ambigious function-declarators/cpp-initializers. 2009-03-17 14:27:28 +01:00
Roberto Raggi
e3baca2e9a Prefer C++ Initializer when parsing init-declarators. 2009-03-17 14:12:42 +01:00
hjk
8ca887aae2 Fixes: change file license headers to include LGPL 2009-02-25 09:15:00 +01:00
Roberto Raggi
2d80acbe76 Improved the implementation of new-expressions. 2009-02-10 14:44:03 +01:00