Commit Graph

271 Commits

Author SHA1 Message Date
Christian Kamm
1862282bee C++ indenter: Fix nested array/struct initializers. 2010-08-31 09:45:01 +02:00
Roberto Raggi
05f2fd6669 Renamed Symbol::scope() to Symbol::enclosingScope(). 2010-08-26 16:16:22 +02:00
Roberto Raggi
688d382ad9 Some cleanup in the C++ AST. 2010-08-26 16:07:14 +02:00
Christian Kamm
b79fe7e711 C++: Fix indenting of QML_* macros.
Task-number: QTCREATORBUG-2111
2010-08-25 14:55:16 +02:00
Bill King
5b2fb4bb67 Fixes: get tests compiling again that depend on the cpp library
Details:  This gets the tests running again, by statically linking
them. qmake doesn't have support for depending upon other projects
being built, so when the projects are built out of order, libCPlusPlusTest.so
wasn't being built before trying to be linked against.
2010-08-19 11:56:53 +10:00
Roberto Raggi
d21de8c621 Fixed the objc auto tests 2010-08-13 16:55:43 +02:00
Roberto Raggi
ae5db839e1 Compile 2010-08-13 16:55:43 +02:00
Roberto Raggi
13ebe7e46c Compile. 2010-08-11 16:06:40 +02:00
Roberto Raggi
2ebaf3fe5b Get rid of the #warning directives. 2010-08-11 15:48:40 +02:00
Roberto Raggi
667e8aa01f Compile. 2010-08-05 17:53:14 +02:00
Roberto Raggi
6324bf4460 Introduced IdExpressionAST. 2010-08-02 12:52:12 +02:00
Erik Verbruggen
6bbc732a29 Sprinkled a bit of doxymentation over various classes. 2010-07-28 17:34:00 +02:00
Christian Kamm
27026af2e3 C++ indenter: Fix indent of block statements in substatement blocks.
Task-number: QTCREATORBUG-1919
2010-07-28 12:39:27 +02:00
Erik Verbruggen
a8179152c9 Added tests for the InsertionPointLocator and fixed bugs. 2010-07-28 12:10:11 +02:00
Roberto Raggi
fff4203a46 Introduced helpers to rewrite types and names.
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Christian Kamm
d292eca5f6 C++ indenter: Indent member initializer lists correctly.
Without requiring ',' to be an electric character.

Task-number: QTCREATORBUG-1866
Reviewed-by: Roberto Raggi
2010-07-16 10:30:14 +02:00
Christian Kamm
1a61ae01cb C++ indenter: Respect user indent with stream operators.
Reviewed-by: Erik Verbruggen
2010-07-15 16:15:09 +02:00
Bill King
f823c4810e Add "make check" support to testcase makefiles. 2010-07-13 11:59:37 +10:00
Bill King
0032af7fc6 More work at getting autotests compiling. 2010-07-13 11:40:42 +10:00
Erik Verbruggen
7986c44dbf Fixed testcases after changing QualifiedNameId. 2010-07-12 16:19:14 +02:00
Christian Kamm
c8fae11222 C++ indenter: Fix for extending if conditions.
Task-number: QTCREATORBUG-1825
2010-07-08 13:08:03 +02:00
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