Commit Graph

298 Commits

Author SHA1 Message Date
Roberto Raggi
5eecdb3be0 Don't use std::map to store types. 2009-11-23 12:53:34 +01:00
Roberto Raggi
d80f0f07f4 Cleanup 2009-11-23 12:53:33 +01:00
Roberto Raggi
0528f2407a Introduced type matchers. 2009-11-23 12:53:33 +01:00
Roberto Raggi
d8ada46fc4 Compile. 2009-11-18 15:27:17 +01:00
Roberto Raggi
f9f990914d Pass the fully specified type as const reference. 2009-11-17 14:37:45 +01:00
Roberto Raggi
5d7def6d2a Refactored the AST visitors.
Now, the ASTVisitor constructor takes a valid reference to a TranslationUnit.
2009-11-17 13:30:39 +01:00
Roberto Raggi
35901130ee Merge remote branch 'origin/1.3' 2009-11-17 09:40:50 +01:00
Roberto Raggi
0b641d38d5 Use a map for the memoization. 2009-11-16 18:01:50 +01:00
Roberto Raggi
bc96850ded Introduced ASTPatternBuilder 2009-11-16 14:54:45 +01:00
Roberto Raggi
bef4ed8917 Introduced destructive pattern matching. 2009-11-16 14:15:12 +01:00
Roberto Raggi
6bf1e26279 Added getters. 2009-11-13 16:59:09 +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
261b870034 Fixed the coding style. 2009-11-13 10:01:41 +01:00
Roberto Raggi
5dcf449afd Initial work on the pattern matcher for AST nodes. 2009-11-12 18:03:05 +01:00
Roberto Raggi
a1f9b05135 Fixed possible crash in CheckName
Done with: Erik Verbruggen
2009-11-11 16:35:18 +01:00
Erik Verbruggen
a6bbec2b56 Added symbols for property declarations. 2009-11-11 09:34:10 +01:00
Erik Verbruggen
72d4493fc2 Added scope calculation for Objective-C classes. 2009-11-11 09:21:06 +01:00
Roberto Raggi
0ae2d96a9b Fixed the AST field names. 2009-11-10 16:47:16 +01:00
Roberto Raggi
e5eb88a31f Ported the accept methods. 2009-11-10 16:20:13 +01:00
Roberto Raggi
cdb1443219 Cleanup specifiers. 2009-11-10 16:20:13 +01:00
Roberto Raggi
4fc2ccf0c5 Cleanup ptr operators. 2009-11-10 16:20:13 +01:00
Roberto Raggi
1fb33e9fad Removed deprecated methods. 2009-11-10 16:20:13 +01:00
Roberto Raggi
6aa70ac9e0 Removed member NestedNameSpecifierAST::next 2009-11-10 16:20:12 +01:00
Roberto Raggi
30c67f43df Cleanup Catch clause 2009-11-10 16:20:12 +01:00
Roberto Raggi
380bce4527 Cleanup nested name specifiers 2009-11-10 16:20:12 +01:00
Roberto Raggi
b47eee8869 Cleanup Attributes 2009-11-10 16:20:12 +01:00
Roberto Raggi
24b6c858eb Cleanup postfix declarators. 2009-11-10 16:20:12 +01:00
Roberto Raggi
a7219736b6 Cleanup Postfix operators. 2009-11-10 16:20:12 +01:00
Roberto Raggi
aff9a74366 Cleanup NewArrayDeclaratorAST 2009-11-10 16:20:11 +01:00
Roberto Raggi
73a4f2977a Cleanup MemInitializerAST 2009-11-10 16:20:11 +01:00
Roberto Raggi
1dbdbbefe7 Cleanup base base specifiers. 2009-11-10 16:20:11 +01:00
Roberto Raggi
86a8812beb Removed ObjCSynthesizedPropertyAST
Done with Erik Verbruggen
2009-11-10 16:20:11 +01:00
Roberto Raggi
4c24676362 Removed ObjCMessageArgumentDeclarationListAST
Done with Erik Verbruggen
2009-11-10 16:20:11 +01:00
Roberto Raggi
98802456b3 Removed ObjCPropertyAttributeListAST
Done with Erik Verbruggen
2009-11-10 16:20:11 +01:00
Roberto Raggi
e5c9aaab4b Removed ObjCSelectorArgumentListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
d358c89f09 Removed ObjCMessageArgumentListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
496ff15db3 Removed ObjCIdentifierListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
8efb73f5d2 Removed TemplateArgumentListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
6e3e293e53 Removed DeclaratorListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
77e7899e7c Removed StatementListAST
Done with Erik Verbruggen
2009-11-10 16:20:09 +01:00
Roberto Raggi
36a0ea2bcb Removed DeclarationListAST node.
Done with Erik Verbruggen
2009-11-10 16:20:09 +01:00
Roberto Raggi
4089c906fa Removed the ExpressionListAST node.
Done with Erik Verbruggen
2009-11-10 16:20:09 +01:00
Roberto Raggi
9e7ff0469b Removed the AST cloner. 2009-11-10 16:20:09 +01:00
Roberto Raggi
6cfef46978 Added generator for the accept0 methods
Done with Erik Verbruggen
2009-11-09 16:28:01 +01:00
Roberto Raggi
33ee1c8884 Added AST forward declaration generation.
Done with Erik Verbruggen
2009-11-09 15:42:55 +01:00