Commit Graph

377 Commits

Author SHA1 Message Date
Roberto Raggi
83d5659454 Fixed parsing of friend class declarations. 2010-01-06 16:15:28 +01:00
Roberto Raggi
6d47004cc3 Added BaseType::setType() 2010-01-06 11:24:50 +01:00
Tobias Hunger
a3113da32c Add copyright headers.
Reviewed-by: Roberto Raggi
2010-01-06 10:25:16 +01:00
Erik Verbruggen
918856cac3 Added method to check if a scope is an ObjCClass scope. 2009-12-18 17:26:07 +01:00
Erik Verbruggen
19beb9c84f Fixed parsing of selector argument expressions. 2009-12-18 17:26:07 +01:00
Erik Verbruggen
6573ec5709 Fixed potential 0 pointer deref. 2009-12-18 17:26:07 +01:00
Roberto Raggi
0274828b2e Reset the AST 2009-12-18 12:24:29 +01:00
Roberto Raggi
0a5b2eed4c Fixed parsing of template-ids.
Task-number: QTCREATORBUG-74
2009-12-09 12:32:04 +01:00
Roberto Raggi
fef2ad6bba Create TypenameArgument symbols. 2009-12-08 12:20:14 +01:00
Roberto Raggi
f7164ae9d4 Introduced TypenameArgument. 2009-12-08 12:20:13 +01:00
Roberto Raggi
2811d0caf3 Removed unused argument. 2009-12-08 12:20:13 +01:00
Roberto Raggi
5a0b7f8ec8 Added initializers to the formal arguments. 2009-12-08 11:35:34 +01:00
Roberto Raggi
47cf2cb7f5 Removed extra (unnecessary) semicolon. 2009-12-07 15:10:31 +01:00
Roberto Raggi
988ec82bb5 Check for unnecessary semicolons after function definitions. 2009-12-07 15:08:00 +01:00
Roberto Raggi
f618a9a296 Check for unnecessary semicolons after blocks. 2009-12-07 15:01:02 +01:00
Roberto Raggi
59e0729826 Improved error recovery when parsing ctor-initializers. 2009-12-07 14:51:29 +01:00
Roberto Raggi
fd4aee7ef6 Added diagnostic messages for ctor-initializers. 2009-12-07 14:51:29 +01:00
Roberto Raggi
48a555d789 Check binary and unary expressions. 2009-12-03 18:08:14 +01:00
Roberto Raggi
1c40a4bcd6 Improved panic mode error recovery 2009-12-03 12:20:31 +01:00
Roberto Raggi
c4737c1fdf Store the names in a set. 2009-12-01 14:39:00 +01:00
Roberto Raggi
7c7ce13ac0 Use const names. 2009-12-01 12:46:23 +01:00
Roberto Raggi
fade61a8a9 Use const literals. 2009-12-01 11:46:36 +01:00
Roberto Raggi
522835ae01 Store the types in a set. 2009-11-30 18:13:26 +01:00
Roberto Raggi
4068957f8b Removed the usage of CPlusPlus::Array<T> 2009-11-30 17:37:31 +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
bd355eb16f Got the same pointer. There is no reason to check for structural equivalence. 2009-11-23 13:48:55 +01:00
Roberto Raggi
b5bd72fb63 Store all the symbols in one big list. 2009-11-23 13:28:12 +01:00
Roberto Raggi
b050c10e53 Use Array<T> instead of std::vector. 2009-11-23 12:57:11 +01:00
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