Commit Graph

411 Commits

Author SHA1 Message Date
Roberto Raggi
6c0854df66 Improved the parsing of parameter declarations clause. 2009-07-13 14:29:20 +02:00
Roberto Raggi
1eefd16383 Fixed a few typos and bugs in the ObjC++ support. 2009-07-13 12:05:29 +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
d685437d74 Recognize the numeric literals. 2009-07-10 17:08:15 +02:00
Roberto Raggi
e2b3d34dc5 Check for 0x0 access when comparing identifiers. 2009-07-10 16:03:26 +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
97f8850a74 Introduced SemanticHighlighter
Done with Thorbjørn Lindeijer
2009-07-09 12:14:00 +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
93cdff1818 Visit the declarator's initializer. 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
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
Thorbjørn Lindeijer
341a843bbf Removed two stray backslashes 2009-06-29 14:30:43 +02:00
Roberto Raggi
fd8cd69a47 Introduced Document::CheckMode. 2009-06-26 09:11:14 +02:00
Roberto Raggi
27f92695cf Initial work on smart highlight of local symbols. For-statements and symbols genarated from a macro expansion are not yet highlighted. 2009-06-25 12:48:55 +02:00
Roberto Raggi
0481176ea7 Highlight the locals. 2009-06-24 16:40:52 +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
Roberto Raggi
a790c13cbe Generated the methods to accept AST nodes. 2009-06-17 14:14:51 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
con
4f4f767b2b Merge commit 'origin/1.2' 2009-06-16 14:58:28 +02:00
Roberto Raggi
4164d31712 Fixed crash in SimpleDeclarationAST::lastToken() 2009-06-16 10:00:07 +02:00
Roberto Raggi
dbba0ff8d7 Removed the filename literals. 2009-06-15 15:39:20 +02:00
Roberto Raggi
22551cffcc Fixed AST::asName() cast. 2009-06-08 11:53:51 +02:00
Roberto Raggi
74031307f1 Removed useless comment. 2009-06-05 12:10:59 +02:00
Roberto Raggi
456d418b24 Introduced iterators for the c++ literals. 2009-06-05 12:09:45 +02:00
Roberto Raggi
ad5b9cb005 Copy the base members. 2009-06-05 10:58:40 +02:00
Roberto Raggi
62adaedff9 AST cloning. 2009-06-05 10:47:40 +02:00
Roberto Raggi
0497c535a2 cleanup 2009-06-05 09:44:37 +02:00
Roberto Raggi
d1bbbcede5 Check the declarator's initializer. 2009-06-04 13:26:11 +02:00
Roberto Raggi
1c9a724a2f Check new-expressions. 2009-06-04 12:54:15 +02:00
Roberto Raggi
f55d5500c5 Warn for undefined types (not finished yet). 2009-06-04 11:32:29 +02:00
Roberto Raggi
590030428a typo 2009-06-03 15:17:58 +02:00
Roberto Raggi
19dd2b814f Added Symbol::enclosingNamespaceScope(), Symbol::enclosingClassScope(), and so on... 2009-06-03 14:15:49 +02:00
Roberto Raggi
f7afe3ee4b Made the C++ front-end more Creator-friendly. 2009-06-03 11:10:04 +02:00
Roberto Raggi
7ee7055485 Initial support for semantic searches. 2009-06-02 14:56:30 +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
339cb43454 Removed hidden function declarations from the overloaded function set. 2009-05-19 12:17:51 +02:00
Thorbjørn Lindeijer
e913f8289b Made a start on correcting indentation 2009-05-13 16:07:43 +02:00
Thorbjørn Lindeijer
581dca0ad9 Rewrote PrettyPrinter to output the document exactly as it was before
This means at the moment the PrettyPrinter isn't doing anything useful,
but the idea is that from here we can improve it to adapt the code to
a certain style.

Reviewed-by: Roberto Raggi
2009-05-11 17:03:51 +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
d9812ac32c Fixed the signature of Symbol::getPosition() & co. 2009-03-31 14:46:46 +02:00
Roberto Raggi
8f84f81e6d Introduced startOffset(), endOffset(), getPosition(), getStartPosition(), and getEndPosition(). 2009-03-31 13:56:28 +02:00