Commit Graph

127 Commits

Author SHA1 Message Date
con
d1023c7614 It's 2011 now.
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
Christian Kamm
16542241c9 C++: Add parsing of Q_PRIVATE_PROPERTY.
Reviewed-by: Roberto Raggi
2011-01-04 15:58:22 +01:00
con
b1bcf081d8 Merge branch '2.1'
Conflicts:
	src/plugins/coreplugin/basemode.cpp
	src/plugins/coreplugin/basemode.h
	src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp
	src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h
	src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp
	src/plugins/debugger/debuggeragents.cpp
	src/plugins/debugger/debuggeruiswitcher.cpp
	src/plugins/debugger/debuggeruiswitcher.h
	src/plugins/projectexplorer/buildconfigdialog.cpp
	src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
	src/plugins/qmldesigner/components/propertyeditor/colorwidget.h
	src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h
	src/plugins/qmldesigner/designercore/include/modelutilities.h
	src/plugins/qmldesigner/designercore/include/nodeinstance.h
	src/plugins/qmldesigner/designercore/include/propertymetainfo.h
	src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp
	src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h
	src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp
	src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp
	src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h
	src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp
	src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp
	src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp
	src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h
	src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp
	src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp
	src/plugins/qmldesigner/designercore/model/modelutilities.cpp
	src/plugins/snippets/inputwidget.cpp
	src/plugins/snippets/snippetscompletion.cpp
	src/plugins/snippets/snippetscompletion.h
	src/plugins/snippets/snippetspec.cpp
	src/plugins/snippets/snippetsplugin.cpp
	src/plugins/snippets/snippetswindow.cpp
	src/plugins/snippets/snippetswindow.h
	src/plugins/texteditor/snippetsparser.cpp
	src/tools/qml/qmldom/main.cpp
	tests/manual/trk/runner.cpp
	tests/manual/trk/trkolddevice.cpp
	tests/manual/trk/trkolddevice.h
	tests/manual/trk/trkserver.cpp
2010-12-17 17:00:53 +01:00
con
04e32b0049 License headers. 2010-12-17 16:03:42 +01:00
Roberto Raggi
88fe5a50a1 Added semantic checks for stray semicolons and topldevel empty declarations. 2010-12-16 12:26:12 +01:00
Roberto Raggi
688d382ad9 Some cleanup in the C++ AST. 2010-08-26 16:07:14 +02:00
Roberto Raggi
2d683cd2c3 Renamed DeclaratorAST::equals_token 2010-08-16 11:38:34 +02:00
Roberto Raggi
bbae6f84db Create symbols for the fwd class declarations 2010-08-13 12:36:47 +02:00
Roberto Raggi
efb600665d Remember the T_TEMPLATE token we use to force the parser to recognize a template-id. 2010-08-12 12:29:12 +02:00
Roberto Raggi
8a32c41f6f Removed TemplateArgumentList 2010-08-11 15:25:20 +02:00
Roberto Raggi
f74ba9daef Introduced CPlusPlus::Template and process the template declarations. 2010-08-11 15:25:19 +02:00
Roberto Raggi
646baadb59 Annotate EnumSpecifierASTs with the Enum symbols. 2010-08-09 17:17:50 +02:00
Roberto Raggi
6324bf4460 Introduced IdExpressionAST. 2010-08-02 12:52:12 +02:00
Roberto Raggi
fea6c1cf8c Renamed LambdaCapture::default_capture. 2010-06-23 14:42:59 +02:00
Roberto Raggi
da817310c2 Get rid of PostfixExpressionAST and store the base expression together with the PostfixAST nodes. 2010-06-23 14:39:14 +02:00
Roberto Raggi
fe261bc256 Parse C++ 0x argument packs. 2010-03-25 12:16:18 +01:00
Roberto Raggi
3c8d12562e Recognize C++0x sizeof... expressions. 2010-03-25 10:44:42 +01:00
Roberto Raggi
ddcc40d0fc Accepts `...' when parsing declarator-ids in C++0x. 2010-03-25 10:44:42 +01:00
Roberto Raggi
cf125618af Accepts trailing return types. 2010-03-24 14:56:45 +01:00
Roberto Raggi
8329d7db94 Recognize C++0x lambda expressions. 2010-03-24 13:49:02 +01:00
Erik Verbruggen
7a3fbf120a Added attributes to the elaborate-type-specifier AST node. 2010-03-23 14:15:45 +01:00
Roberto Raggi
eebf498aae Parse C++0x type-parameters. 2010-03-23 14:13:22 +01:00
Roberto Raggi
ae71514360 Parse C++0x base-specifier-list. 2010-03-23 14:13:22 +01:00
Roberto Raggi
8b625a867c Parse C++0x mem-initializer-list. 2010-03-23 14:13:21 +01:00
Roberto Raggi
4b8d597196 Recognize C++0x rvalue references. 2010-03-23 12:12:07 +01:00
Roberto Raggi
6f80219d3e Renamed the CompoundExpressionAST::compoundStatement. 2010-03-23 10:25:43 +01:00
Erik Verbruggen
bfa1693629 Regenerated the AST, now including constructors. 2010-03-18 16:06:15 +01:00
Roberto Raggi
2d45bb8070 Parse and create AST nodes for the Q_MOC_RUN extensions. 2010-03-17 14:37:55 +01:00
Erik Verbruggen
b4d72a78db Added parser support for Q_INTERFACES. 2010-03-17 10:30:17 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Roberto Raggi
ca34e0c043 Compile with gcc -pedantic. 2010-02-25 12:39:39 +01:00
Erik Verbruggen
e609e9a701 Simplified ObjC selectors in the AST. 2010-02-23 17:43:52 +01:00
Erik Verbruggen
21fdc2d06a Replaced usages of concrete type SimpleNameAST with the abstract NameAST. 2010-02-22 09:27:44 +01:00
Erik Verbruggen
c79f25d5a6 Fixed Q_PROPERTY parsing to handle all possible cases. 2010-02-16 17:04:26 +01:00
Erik Verbruggen
8de6ccc775 Revert "Split Objective-C keyword parsing to handle the '@' separately."
This reverts commit 2a59d2ae0c.
2010-02-15 12:24:31 +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
2a59d2ae0c Split Objective-C keyword parsing to handle the '@' separately.
Because apparently, while designing the Objective-C language, somebody
thought it was a world-class idea to allow any white-space between the
'@' character and the subsequent keyword. With this fix, we now
correctly parse:
    @  dynamic
and:
    @
      selector
and:
    @"foo"
     "bar"
    @"mooze"
(This last one is 1 single string split over multiple lines.)
Wonderful, isn't it?

What we (and Clang) do not support, but what GCC supports is something
like:
   @"foo"@@  "bar"  @"mooze"  @@
which is equivalent to @"foobarmooze".
2010-02-15 09:27:00 +01:00
Erik Verbruggen
1af05166d9 Removed Q_DECLARE_FLAGS parsing, leaving it to the CPP to expand it. 2010-02-08 15:41:18 +01:00
Erik Verbruggen
b58cb740e5 Changed ObjC message arguments to have SimpleName for the name part. 2010-02-08 09:34:51 +01:00
Erik Verbruggen
7b913f7fa2 Changed Q_PROPERTY parsing and AST storage. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
21488e8898 Added semantic checks for Q_ENUMS. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
ac6aba5ec3 Simplified Q_FLAGS and Q_DECLARE_FLAGS parsing. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
8d8b05da5a Reworked parts of the QtPropertyDeclaration parsing and handling. 2010-02-07 10:49:03 +01:00
Erik Verbruggen
6ca5f5f5f8 Added semantic checks for compound expressions. 2010-02-07 10:49:02 +01:00
Erik Verbruggen
fd90c3503d Added AST nodes for compound expressions (a GNU extension). 2010-02-07 10:49:02 +01:00
Erik Verbruggen
ae0ee18a77 Removed #ifdefs so all AST nodes are always there.
Also removed the (conditional) invoke_token from DeclarationAST and use
the qt_invokable_token to store the Q_INVOKABLE, and fixed the ASTMatch
code generation.
2010-02-04 12:15:32 +01:00
Wolfgang Beck
e134e24919 Source update. 2010-02-03 13:21:08 +10:00
Erik Verbruggen
fcf67d7d8e Added clone methods to the AST. 2010-02-02 11:41:57 +01:00
Wolfgang Beck
4b33881729 Merge ichecker branch changes into the mainline. New project can be found under src/tools/ICheck 2010-01-19 15:26:08 +10:00