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
Roberto Raggi
ea1d5503a4
Added a bit to annotate the generated tokens.
2009-03-03 11:31:35 +01:00
Roberto Raggi
f96d8ff9e0
Fixed: Parsing of /**/ tokens.
2009-03-02 19:00:57 +01:00
Roberto Raggi
fd22788d9e
Improved matching of qdox/doxygen comments.
2009-03-02 10:10:30 +01:00
hjk
8ca887aae2
Fixes: change file license headers to include LGPL
2009-02-25 09:15:00 +01:00
Thorbjørn Lindeijer
c5d600b1d6
Fixed highlighting of comment closing element */
...
Was taking the wrong state, causing it to appear in Doxygen style
instead of as a normal comment.
Fix by Roberto Raggi
2009-02-20 16:34:48 +01:00
Roberto Raggi
4c5ff047f0
Initial support for doxygen comments.
2009-02-20 11:52:27 +01:00
Roberto Raggi
6178a44fc2
Warning for using-directive in class scope.
2009-02-19 13:52:05 +01:00
Roberto Raggi
7e10664e6a
Instroduced TranslationUnit::spell(tokenIndex).
2009-02-19 13:01:01 +01:00
Roberto Raggi
f5b32ef7b0
Fixes: Export the pretty printer.
2009-02-18 16:02:01 +01:00
Roberto Raggi
c2f61a76e1
Merge branch '1.0.0' of git@scm.dev.nokia.troll.no:creator/mainline
2009-02-17 11:52:56 +01:00
Thorbjørn Lindeijer
7774977e5d
Fixed handling of attribute specifiers in front of declaration
...
Done with Roberto Raggi
2009-02-17 11:28:18 +01:00
Roberto Raggi
f63b8e6693
--warnings
2009-02-16 18:56:35 +01:00
Roberto Raggi
01145fd552
Added Type::isForwardClassDeclaration().
2009-02-16 18:20:47 +01:00
Roberto Raggi
ba78e075da
Introduced support for forward class declarations.
2009-02-16 18:20:46 +01:00
Roberto Raggi
2788d77229
Fixes: Implementation of NewExpressionAST::lastToken()
2009-02-16 18:20:46 +01:00
Thorbjørn Lindeijer
a33ae02927
Revert now unnecessary checks for null-types
...
This reverts commits:
c721304a47
885d908ea3
a0909989f7
fb4ad59ddb
0a9a67cf54
0d1624d4d1
d018cfd5cb
0504fdd00b
a2fd10fe19
Conflicts:
src/plugins/cpptools/cppcodecompletion.cpp
Reviewed-by: Roberto Raggi
2009-02-10 17:41:04 +01:00
Thorbjørn Lindeijer
146a534932
Fixed all crashes due to refencing undefined types
...
Introduced UndefinedType class to replace null pointer.
Done with Roberto Raggi
2009-02-10 17:22:16 +01:00
Roberto Raggi
2d80acbe76
Improved the implementation of new-expressions.
2009-02-10 14:44:03 +01:00
Thorbjørn Lindeijer
885d908ea3
Fixed two crashes with C++ engine handling
...
These checks are necessary cause of a recent change in the C++ engine.
Reviewed-by: Roberto Raggi
2009-02-10 13:56:13 +01:00
Roberto Raggi
fba8e1510c
Fixes: Visiting of case statements.
2009-02-10 10:09:14 +01:00
Roberto Raggi
fb4ad59ddb
Fixes: Possible crash when parsing qt methods.
2009-02-09 21:07:10 +01:00
Roberto Raggi
25de88fe61
Fixes: Removed dynamic_cast from Scope.
2009-02-09 21:00:03 +01:00
Roberto Raggi
c842957a8b
Fixes: Possible crash in LookupContext.
2009-02-09 20:22:00 +01:00
Roberto Raggi
d01795d933
Reimplemented Type::as*Type() using virtual methods.
2009-02-09 17:49:12 +01:00
Roberto Raggi
17d047ced8
Reimplemented Name::as*() using virtual functions.
2009-02-09 16:32:56 +01:00
Roberto Raggi
2f90539211
Reimplemented Symbol::as*() methods using virtual functions.
2009-02-09 16:15:02 +01:00
Roberto Raggi
d782ce27fb
Reimplemented the AST::as*AST() methods as virtual functions (as suggested by andre).
2009-02-09 15:55:01 +01:00
Roberto Raggi
cd9e752ae4
Introduced ASTVisitor::endVisit(ast node)
2009-02-09 14:58:13 +01:00
Roberto Raggi
208f26c9ce
Annotate function declarators.
2009-02-09 12:47:58 +01:00
Roberto Raggi
ea981d5025
More annotations.
2009-02-09 12:19:17 +01:00