Commit Graph

298 Commits

Author SHA1 Message Date
Roberto Raggi
3cdd48067c Introduced ForeachStatementAST and the bits to parse foreach statements when qtMocRun is enabled. 2009-07-03 09:12:58 +02:00
Thorbjørn Lindeijer
341a843bbf Removed two stray backslashes 2009-06-29 14:30:43 +02:00
Roberto Raggi
fd8cd69a47 Introduced Document::CheckMode. 2009-06-26 09:11:14 +02:00
Roberto Raggi
27f92695cf Initial work on smart highlight of local symbols. For-statements and symbols genarated from a macro expansion are not yet highlighted. 2009-06-25 12:48:55 +02:00
Roberto Raggi
0481176ea7 Highlight the locals. 2009-06-24 16:40:52 +02:00
Roberto Raggi
298b6ac520 Oops, restore the value of blockErrors() 2009-06-19 14:48:07 +02:00
Roberto Raggi
20545fd4b1 Fixed more template-id vs expressions ambiguites. 2009-06-19 12:39:32 +02:00
Roberto Raggi
0c03c1b9f9 Fixed template-id vs binary expression followed by a C-cast expression ambiguity. 2009-06-19 11:59:26 +02:00
Roberto Raggi
9c038180d8 Improved compatibility with the gcc extensions. 2009-06-18 17:49:17 +02:00
Roberto Raggi
9a8e724f15 Don't search for undefined symbols in ambiguous typeof expressions. 2009-06-18 14:22:06 +02:00
Roberto Raggi
c222f2aa27 Some cleanup in the AST nodes. 2009-06-17 16:08:33 +02:00
Roberto Raggi
a790c13cbe Generated the methods to accept AST nodes. 2009-06-17 14:14:51 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
con
4f4f767b2b Merge commit 'origin/1.2' 2009-06-16 14:58:28 +02:00
Roberto Raggi
4164d31712 Fixed crash in SimpleDeclarationAST::lastToken() 2009-06-16 10:00:07 +02:00
Roberto Raggi
dbba0ff8d7 Removed the filename literals. 2009-06-15 15:39:20 +02:00
Roberto Raggi
22551cffcc Fixed AST::asName() cast. 2009-06-08 11:53:51 +02:00
Roberto Raggi
74031307f1 Removed useless comment. 2009-06-05 12:10:59 +02:00
Roberto Raggi
456d418b24 Introduced iterators for the c++ literals. 2009-06-05 12:09:45 +02:00
Roberto Raggi
ad5b9cb005 Copy the base members. 2009-06-05 10:58:40 +02:00
Roberto Raggi
62adaedff9 AST cloning. 2009-06-05 10:47:40 +02:00
Roberto Raggi
0497c535a2 cleanup 2009-06-05 09:44:37 +02:00
Roberto Raggi
d1bbbcede5 Check the declarator's initializer. 2009-06-04 13:26:11 +02:00
Roberto Raggi
1c9a724a2f Check new-expressions. 2009-06-04 12:54:15 +02:00
Roberto Raggi
f55d5500c5 Warn for undefined types (not finished yet). 2009-06-04 11:32:29 +02:00
Roberto Raggi
590030428a typo 2009-06-03 15:17:58 +02:00
Roberto Raggi
19dd2b814f Added Symbol::enclosingNamespaceScope(), Symbol::enclosingClassScope(), and so on... 2009-06-03 14:15:49 +02:00
Roberto Raggi
f7afe3ee4b Made the C++ front-end more Creator-friendly. 2009-06-03 11:10:04 +02:00
Roberto Raggi
7ee7055485 Initial support for semantic searches. 2009-06-02 14:56:30 +02:00
Roberto Raggi
a1ec4e2a94 Introduced Name::identifier().
Name::identifier() returns the identifier used to declare the name.
2009-05-28 11:49:59 +02:00
Roberto Raggi
339cb43454 Removed hidden function declarations from the overloaded function set. 2009-05-19 12:17:51 +02:00
Thorbjørn Lindeijer
e913f8289b Made a start on correcting indentation 2009-05-13 16:07:43 +02:00
Thorbjørn Lindeijer
581dca0ad9 Rewrote PrettyPrinter to output the document exactly as it was before
This means at the moment the PrettyPrinter isn't doing anything useful,
but the idea is that from here we can improve it to adapt the code to
a certain style.

Reviewed-by: Roberto Raggi
2009-05-11 17:03:51 +02:00
Thorbjørn Lindeijer
ecc2b25ddc Extended the AST with references to more tokens
Mainly comma tokens. Referencing all tokens is necessary to be able to
implement pretty-printing based on the AST while maintaining user
formatting.

Reviewed-by: Roberto Raggi
2009-05-11 17:03:51 +02:00
Roberto Raggi
1a1b841cdb Fixed parsing of ambiguous name ids. 2009-04-28 19:02:28 +02:00
Roberto Raggi
d9812ac32c Fixed the signature of Symbol::getPosition() & co. 2009-03-31 14:46:46 +02:00
Roberto Raggi
8f84f81e6d Introduced startOffset(), endOffset(), getPosition(), getStartPosition(), and getEndPosition(). 2009-03-31 13:56:28 +02:00
Roberto Raggi
fde8ca4a16 Added Document::ParseDeclarator. 2009-03-30 15:08:21 +02:00
Thorbjørn Lindeijer
5d8ee0d742 Moved some complicated checks into convenience functions 2009-03-26 16:54:20 +01:00
Roberto Raggi
424dd77e18 Added support for Q_SIGNAL and Q_SLOT. 2009-03-25 11:50:17 +01:00
Thorbjørn Lindeijer
ec69936c7c Support Doxygen comment style after members
Forms /**<, /*!<, ///< and //!<.

Done with Roberto Raggi.
2009-03-20 14:24:02 +01:00
Roberto Raggi
437bbd00e5 Don't insert `(' when completing ambiguous symbols. 2009-03-17 14:46:35 +01:00
Roberto Raggi
a744a73145 Check for ambigious function-declarators/cpp-initializers. 2009-03-17 14:27:28 +01:00
Roberto Raggi
e3baca2e9a Prefer C++ Initializer when parsing init-declarators. 2009-03-17 14:12:42 +01:00
Roberto Raggi
f9a3df1847 Visit the parameters, the cv qualifiers and exceptions 2009-03-17 14:12:42 +01:00
Roberto Raggi
66a3e71579 Added ASTVisitor::getTokenStartPosition() and ASTVisitor::getTokenEndPosition(). 2009-03-06 10:45:41 +01:00
Roberto Raggi
5e3921d2bd Added a fwd declaration for the class Token. 2009-03-06 10:45:41 +01:00
Roberto Raggi
942f5a708a Ignore the symbol's column for generated symbols (at least for now). 2009-03-04 15:45:38 +01:00
Roberto Raggi
4613da1c8b Mark the generated tokens in the token stream. 2009-03-04 14:36:47 +01:00
Roberto Raggi
3d6f7de909 Context-sensitive highlighting. 2009-03-03 13:57:08 +01:00