Commit Graph

234 Commits

Author SHA1 Message Date
Roberto Raggi
c46dc2aae0 Added ctors for the pp-scanners. 2009-10-21 17:05:36 +02:00
Roberto Raggi
de82f1e3f7 Initialize the pp's engine _dot member. 2009-10-21 17:05:36 +02:00
Roberto Raggi
146ec6248d Renamed Preprocessor::_true_test 2009-10-21 16:20:45 +02:00
Roberto Raggi
5b7a19425b Use bit vectors to store the preprocessor's state. 2009-10-21 16:19:23 +02:00
Roberto Raggi
4007963a0e The base result needs to be an instance and not a class declaration. 2009-10-16 12:46:26 +02:00
Roberto Raggi
8b514657cc Added support to complete function-call operators. 2009-10-16 12:23:16 +02:00
Roberto Raggi
30f355dac3 Removed resolveArrowOperator and resolveArrayOperator. 2009-10-16 12:23:16 +02:00
Roberto Raggi
ef605df95b Renamed Instantiation. 2009-10-16 12:23:16 +02:00
Roberto Raggi
bb7e17ed8c Removed unused code. 2009-10-16 12:23:16 +02:00
Roberto Raggi
8dc369bc2d Simplified member completion.
Share code with ResolveExpression.
2009-10-16 11:08:34 +02:00
Roberto Raggi
b7a0dbfa0c Expand the enclosing namespace. 2009-10-15 17:16:05 +02:00
Roberto Raggi
f829ef899c Store in the document's macroUsages only the top-level macro expansions. 2009-10-15 16:25:10 +02:00
Roberto Raggi
03fe61e31d Improved lookup of class bindings.
Unmark the visited nodes when searching bindings in class or namespace scopes.
2009-10-15 11:39:22 +02:00
Roberto Raggi
2c80805165 Fixed possible crash when searching the canonical symbol. 2009-10-14 17:12:41 +02:00
Roberto Raggi
f7263f2333 Fixed lookup of qualified name ids. 2009-10-12 14:08:26 +02:00
Roberto Raggi
8ccc07a10b Stop at the T_COMMA when searching backward for an expression. 2009-10-12 12:25:22 +02:00
Roberto Raggi
99c3327719 Improved support for private classes. 2009-10-12 12:01:01 +02:00
Roberto Raggi
ac4f53ef40 Search for `complete' expressions followed by a T_COMMA
As a side-effect, we can finally complete things like connect(&a, SIGNAL(
2009-10-08 14:51:30 +02:00
Roberto Raggi
7e0e62cb25 Find the canonical virtual method. 2009-10-07 16:12:33 +02:00
Roberto Raggi
77aa306478 Removed the MacroResolver
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
2009-10-07 13:57:45 +02:00
dt
5c9b3694e3 Remove debuggign output 2009-10-06 17:14:21 +02:00
Roberto Raggi
695b1dbf5b Removed (unused) toplevel declaration of _translationUnit. 2009-10-06 17:07:50 +02:00
Roberto Raggi
3c51e5b24b Return the class declaration as canonical symbol for ctors, dtors, and class names. 2009-10-06 16:27:39 +02:00
Erik Verbruggen
f1e665463b Added protocol & class definedness checks, and added property attribute checks. 2009-10-05 18:02:01 +02:00
Erik Verbruggen
b43f279227 Fixed type checking for type definitions inside an @implementation 2009-10-05 17:55:02 +02:00
Roberto Raggi
bdd0169c3c Don't override escaped quotes. 2009-10-05 16:21:30 +02:00
Roberto Raggi
1f1c899cc0 Improved template instantiation. 2009-10-05 11:39:55 +02:00
Roberto Raggi
ae43149c97 Cache the macros. 2009-09-30 18:52:42 +02:00
Roberto Raggi
9a21143384 Implemented a simple(fast?) strategy to resolve macro references. 2009-09-30 17:17:11 +02:00
Roberto Raggi
8356d3360b Delay the parsing of the document. 2009-09-30 16:13:43 +02:00
Roberto Raggi
e8fc850342 Don't search for the canonical symbol in the base classes (at least for now). 2009-09-30 12:05:12 +02:00
Roberto Raggi
bb263645b2 Improved the resolving of member expressions. 2009-09-30 11:54:47 +02:00
Roberto Raggi
6b4db9e674 Handle ctor-initializers in the LookupContext. 2009-09-29 12:47:03 +02:00
Roberto Raggi
e40cd82f8c Introduced T_CPP_COMMENT and T_CPP_DOXY_COMMENT to handle C++-style comments and improved CPPEditor::isInComment to handle the newly introduced tokens.
As side effect,this change should fix the regression we introduced in the "automagically" quote/brace insertion.
2009-09-29 11:35:43 +02:00
Christian Kamm
22ed0255b9 Track more macro uses.
In particular macros that are only checked for definition or are
expanded during the evaluation of an #if or #elif directive are now also
added to the list available through Document::macroUses().

The names of undefined macros that are interesting (because they're used
in an #ifdef or a defined(...)) are now available through
Document::undefinedMacroUses().

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-09-25 16:08:01 +02:00
Roberto Raggi
b3cf5ae50a Some work on `find references of a symbol'. 2009-09-25 14:20:02 +02:00
Roberto Raggi
20ff553b59 Introduced LookupContext::canonicalSymbol(). 2009-09-25 14:20:02 +02:00
Erik Verbruggen
06fcf59f2e Added method arguments to the lookup context of an ObjC method. 2009-09-25 12:12:00 +02:00
Roberto Raggi
1622c86289 Removed references and wantReferences from ResolveExpression. 2009-09-23 16:52:41 +02:00
Roberto Raggi
8848be4caa Find references 2009-09-23 16:52:41 +02:00
Roberto Raggi
b9ce92ec4d Remove all the synthesized characters when matching curly braces 2009-09-21 18:19:09 +02:00
Roberto Raggi
42c676d19a Added BackwardsScanner::mid(tokenIndex). Mid() returns a substring starting from the position of the given token. 2009-09-21 17:38:25 +02:00
Roberto Raggi
a49395a0ea Made the indenter more Qt friendly. Added support for moc keywords. 2009-09-21 16:10:17 +02:00
Roberto Raggi
6c9670c3db Use the backward scanner to indent labeled statements, ctor-initializers and access specifiers. 2009-09-21 15:14:28 +02:00
Roberto Raggi
5df7b96735 Renamed maybeOverrideCharacter() 2009-09-18 12:28:15 +02:00
Roberto Raggi
81cac3cc49 Introduced BackwardsScanner::LA(n). LA(n) returns the n-th lookhead token. 2009-09-18 12:28:15 +02:00
Roberto Raggi
6c7c333128 Cleanup 2009-09-18 11:07:05 +02:00
Roberto Raggi
a5156e6283 Introduced MatchingText::shouldInsertNewline() and use it to insert lines after a class definition. 2009-09-18 10:59:31 +02:00
Roberto Raggi
9a799da6c9 Re-enable check for automatically inserted block end. 2009-09-17 18:54:12 +02:00
Roberto Raggi
da4fcd22ef Pass the lookahead character to matching text. 2009-09-17 18:39:10 +02:00