Commit Graph

377 Commits

Author SHA1 Message Date
Oswald Buddenhagen
c9f9310bb1 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
	src/plugins/debugger/gdb/remotegdbadapter.cpp
2009-10-20 20:09:00 +02:00
Roberto Raggi
7c68acbd3f Regenerated the AST cloner. 2009-10-20 16:54:51 +02:00
Robert Loehning
bf74d9aed9 Compile fix in Parser.cpp 2009-10-20 15:55:40 +02:00
Roberto Raggi
18ef2f2615 Reduce backtracking when parsing ambiguous name ids. 2009-10-20 15:29:00 +02:00
Roberto Raggi
3ed4a743c0 Check the lookahead token before to start the parse of core-postfix expressions. 2009-10-20 15:01:45 +02:00
Roberto Raggi
bd7c7e0e55 Added debug helpers 2009-10-20 14:56:36 +02:00
Erik Verbruggen
5586a6daff Fixed use of uninitialized Control. 2009-10-20 13:50:55 +02:00
Erik Verbruggen
56f755efe8 Changed ObjC context keyword comparison to use identifiers. 2009-10-20 12:48:23 +02:00
Roberto Raggi
c5cf70c6b8 Check for valid decl_specifier_seq when parsing declaration statements. 2009-10-20 11:42:18 +02:00
Roberto Raggi
8f4bdd5355 Removed unused method Parser::maybeSimpleExpression() 2009-10-20 11:29:53 +02:00
Roberto Raggi
7c62901919 Removed unused method Parser::maybeFunctionCall() 2009-10-20 11:28:38 +02:00
Roberto Raggi
13675cf6ed Cleanup the C++ front-end.
Removed CPLUSPLUS_BEGIN/END_NAMESPACE & co and made it possible to compile the parser with CPLUSPLUS_WITHOUT_QT.
2009-10-20 11:21:25 +02:00
Roberto Raggi
fe2c9cc16d Improved parsing of ambiguous statements.
Done with Erik Verbruggen
2009-10-19 17:48:57 +02:00
Erik Verbruggen
077c19a661 Fix for invalid parsing of "(a)[b]", including test cases. 2009-10-19 14:50:20 +02:00
con
263d559e86 Merge commit 'origin/1.3' 2009-10-13 17:29:47 +02:00
Roberto Raggi
5bee5dea13 Check the scope of class and fwd-class declarations 2009-10-13 12:21:05 +02:00
Roberto Raggi
99c3327719 Improved support for private classes. 2009-10-12 12:01:01 +02:00
con
7ecbfbe6d2 Merge commit 'origin/1.3' 2009-10-09 20:15:17 +02:00
Erik Verbruggen
d61eb9c893 Syntax highlighting for Objective-C identifiers (super, self, nil, Nil, _cmd, SEL, IMP, BOOL, YES, NO, id). 2009-10-09 15:23:19 +02:00
Roberto Raggi
88f3fa09be Removed deprecated PrettyPrinter. We need a way to generate the pretty printer from the C++ parser. 2009-10-09 11:44:12 +02:00
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
Roberto Raggi
49fb887059 Check ctor-initializers. 2009-10-06 12:53:16 +02:00
Erik Verbruggen
1ba39198d1 Fixed possible null-pointer dereference. 2009-10-05 18:02:39 +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
Roberto Raggi
8356d3360b Delay the parsing of the document. 2009-09-30 16:13:43 +02:00
Roberto Raggi
cae8a31a7d FullySpecifiedType::simplified() strips references from the type. 2009-09-30 11:54:46 +02:00
Roberto Raggi
e40cd82f8c Introduced T_CPP_COMMENT and T_CPP_DOXY_COMMENT to handle C++-style comments and improved CPPEditor::isInComment to handle the newly introduced tokens.
As side effect,this change should fix the regression we introduced in the "automagically" quote/brace insertion.
2009-09-29 11:35:43 +02:00
Erik Verbruggen
377ed944e5 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-09-28 11:46:20 +02:00
Erik Verbruggen
478e94748f Added type declarations for forward declared ObjC protocols and classes. 2009-09-28 11:46:00 +02:00
Roberto Raggi
e9a5ab1b0d Added the `isVirtual' attribute to Function. 2009-09-25 14:20:02 +02:00
Roberto Raggi
63cd7ffe4e Removed Scope::addUse() 2009-09-23 16:52:42 +02:00
Roberto Raggi
6c347a12c6 Introduced LiteralTable::findLiteral() and Control::findIdentifier() 2009-09-23 16:52:41 +02:00
Erik Verbruggen
b92e1a0abf Wee little cleanup. 2009-09-21 18:26:37 +02:00
Roberto Raggi
fc1b435ab4 Introduced CPlusPlus::TemplateArguments and fixed a possible mem-leak when using template members. 2009-08-26 11:41:20 +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
86a7b26fcd Fixed semantic checks for Objective-C methods and fast-enumeration. 2009-08-05 18:30:18 +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
Roberto Raggi
332e6f9a28 Stop scanning string literals when the current character is a newline. 2009-08-04 12:18:25 +02:00
Roberto Raggi
85e1b36652 Check for 0x0 access 2009-08-04 11:58:16 +02:00
Thiago Macieira
d0457b70e3 Compile the C++ parser library with Sun CC 5.9.
Things you mustn't do:
1) end an enum with a comma

2) #include <cxxxx> and not use std::

3) use anonymous structures

All three things are invalid C++. Anonymous structures inside
anonymous unions are allowed by GCC, but that doesn't mean it's valid.
2009-08-03 14:59:42 +02:00
Roberto Raggi
c35c998e44 Regenerated ASTVisit.cpp 2009-08-03 14:42:25 +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
b713f1772a Added semantic checks for method declarations. 2009-07-31 13:22:32 +02:00