Commit Graph

24 Commits

Author SHA1 Message Date
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
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
7b913f7fa2 Changed Q_PROPERTY parsing and AST storage. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
21488e8898 Added semantic checks for Q_ENUMS. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
ac6aba5ec3 Simplified Q_FLAGS and Q_DECLARE_FLAGS parsing. 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
fd90c3503d Added AST nodes for compound expressions (a GNU extension). 2010-02-07 10:49:02 +01:00
Erik Verbruggen
ae0ee18a77 Removed #ifdefs so all AST nodes are always there.
Also removed the (conditional) invoke_token from DeclarationAST and use
the qt_invokable_token to store the Q_INVOKABLE, and fixed the ASTMatch
code generation.
2010-02-04 12:15:32 +01:00
Wolfgang Beck
4b33881729 Merge ichecker branch changes into the mainline. New project can be found under src/tools/ICheck 2010-01-19 15:26:08 +10:00
Erik Verbruggen
0c17d53875 Fixed semantic check for ObjC fast-enumeration for-loops, then merged it with the semantic check for the foreach. 2010-01-11 09:29:15 +01:00
Roberto Raggi
527a9bd526 Inital support for Q_D/Q_Q declarations. 2009-11-30 17:07:22 +01:00
Roberto Raggi
d6fa4e2079 Get rid off translationUnit 2009-11-25 12:10:01 +01:00
Roberto Raggi
bef4ed8917 Introduced destructive pattern matching. 2009-11-16 14:15:12 +01:00
Roberto Raggi
1a7855af22 Match the value of the literals. 2009-11-13 15:17:27 +01:00
Roberto Raggi
baffd97efb Fixed parsing of ctor-initializers and added a manual test for the AST matchers 2009-11-13 12:38:18 +01:00
Roberto Raggi
3e9d4358bc Pass the translation units to the matcher. 2009-11-13 12:10:12 +01:00
Roberto Raggi
5644775d2f Also match the identifiers and the token types. 2009-11-13 11:54:22 +01:00
Roberto Raggi
f8beeea6dd Fixed the generator. 2009-11-13 11:43:52 +01:00
Roberto Raggi
ecf712e6bc New matchers 2009-11-13 11:35:19 +01:00
Roberto Raggi
5dcf449afd Initial work on the pattern matcher for AST nodes. 2009-11-12 18:03:05 +01:00