Christian Kamm
486b23b8ef
C++ indenter: Don't add continuation indent after function return type.
...
Task-number: QTCREATORBUG-1816
2010-07-08 08:48:36 +02:00
Christian Kamm
6078b36c9c
C++ indenter: Enable class, struct, enum, namespace, using in functions.
...
Fixes incorrect indentation we got previously when they were used in a
statement context.
2010-07-08 08:36:34 +02:00
Erik Verbruggen
be58171542
Fixed auto tests.
2010-07-07 17:20:06 +02:00
Christian Kamm
74ed3e8a11
C++ indenter: Add more functions to manage the indenter state.
2010-07-06 14:53:54 +02:00
Christian Kamm
bf7613d2e7
C++ indenter: Add special case rule for indenting enums.
...
So you now get
enum A { a = 2,
b = 3,
};
2010-07-06 13:54:21 +02:00
Christian Kamm
8dbbf9be92
C++ indenter: Require explicit state update requests.
...
This will allow much faster indenting of selected areas as the state
doesn't have to be checked again for every line.
2010-07-06 13:52:49 +02:00
Christian Kamm
c2a3346716
Fix autotest build for cplusplus based tests.
...
Reviewed-by: Roberto Raggi
2010-07-06 13:50:24 +02:00
Christian Kamm
793ef6a694
C++ indenter: Fix 'else' indentation in GNU style.
2010-07-06 09:44:35 +02:00
Bill King
c9710052bb
Fix autotests so that they're compiling again.
2010-07-06 14:37:45 +10:00
Christian Kamm
19db6c9826
C++ indenter: Make building custom styles easier, fix style issues.
...
Keep more information by using enter() instead of turnInto() when moving
from a *_start to *_open.
2010-07-05 13:49:12 +02:00
Christian Kamm
88f2e340bd
C++: Introduce the new CodeFormatter.
...
Done-with: Erik Verbruggen
2010-07-02 16:13:12 +02:00
Christian Kamm
dc7894d8e5
Tests: Fix typeprettyprinter.
...
Done-with: Erik Verbruggen
2010-06-29 11:15:10 +02:00
Erik Verbruggen
112b713343
Fixed test after changing the AST representation of the postfix expression.
2010-06-25 13:20:24 +02:00
Erik Verbruggen
e7088e9c42
Fixed autotests.
2010-06-23 12:45:22 +02:00
Roberto Raggi
3b113a2d74
Deprecate the old template instantiation.
2010-05-20 15:22:09 +02:00
Erik Verbruggen
8d5dde66c0
Fixed qualified name creation for ObjC classes and protocols.
...
Also fixed the tests for it.
2010-05-20 12:13:44 +02:00
Roberto Raggi
41882862a2
Compile.
2010-05-18 10:33:35 +02:00
Christian Kamm
59778cafd5
CPlusPlus: Fix several issues in the TypePrettyPrinter.
...
* Fix cv qualifiers being placed incorrectly.
* Fix nested pointer to array to pointer being printed incorrectly.
* Add autotest.
Task-number: QTCREATORBUG-1037
2010-04-19 09:55:35 +02:00
Erik Verbruggen
e609e9a701
Simplified ObjC selectors in the AST.
2010-02-23 17:43:52 +01:00
Erik Verbruggen
b2042b79a2
Added unittest for FindUsages in Q_PROPERTY declarations.
2010-02-17 16:01:41 +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
6162279630
Added test for selector names.
2010-02-11 10:02:01 +01:00
Erik Verbruggen
ee16a1e885
Added testcase for find usages of inline method parameters.
2010-02-11 10:02:00 +01:00
Erik Verbruggen
d7994a886f
Added tests for FindUsages in Objective-C code.
2010-02-11 10:02:00 +01:00
Erik Verbruggen
9806b1e165
Fixed pre-precessor bug.
...
When a PP line ended with a \ (join line) and the next line was empty
(ending th joining), the following token would be incorrectly marked as
joined.
Done-with: Roberto Raggi
2010-02-10 11:07:18 +01:00
Erik Verbruggen
21488e8898
Added semantic checks for Q_ENUMS.
2010-02-07 10:49:03 +01:00
Erik Verbruggen
a3d0406d31
Fixed throw expression parsing.
2010-02-02 15:39:42 +01:00
Erik Verbruggen
c33b55537d
Extended operator precedence parsing.
...
It now includes comma expressions, conditionals and assignment
expressions.
2010-02-02 12:34:57 +01:00
Erik Verbruggen
0cf0becb2e
Added AST building for __attribute__ constructs.
2010-02-02 12:03:37 +01:00
Erik Verbruggen
3dd011fcb6
Changed binary expression parsing to use precedence parsing.
2010-01-28 15:22:50 +01:00
Roberto Raggi
3fb1bc46ae
Compile.
2009-12-07 12:00:35 +01:00
Roberto Raggi
75a7abb8c5
Compile.
2009-12-02 12:45:28 +01:00
Roberto Raggi
f2c4d84c6c
Compile
2009-11-17 14:30:01 +01:00
Erik Verbruggen
2d2d0b59c8
Changed ExpressionUnderCursor to handle Objective-C send-message operations.
2009-11-11 09:35:42 +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
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
1dbdbbefe7
Cleanup base base specifiers.
2009-11-10 16:20:11 +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
8ef85c6489
Removed obsoleted test.
2009-10-27 11:05:35 +01:00
Roberto Raggi
82ecb2c7b3
Initial work on the `new' GenTemplateInstance.
2009-10-26 17:59:54 +01:00
Friedemann Kleint
f13d4a104a
Autotests: Compile on Windows
...
Reviewed-by: Roberto Raggi <qtc-committer@nokia.com >
2009-10-26 17:26:53 +01:00
Roberto Raggi
0ed33aa8a5
Test ExpressionUnderCursor
2009-10-26 15:07:00 +01:00
Roberto Raggi
1f61dbc380
Test GenTemplateInstance.
2009-10-26 15:00:56 +01:00