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
Roberto Raggi
82b80b9e39
Automagically insert matching characters.
2009-09-17 17:58:00 +02:00
Roberto Raggi
dfa6be721d
Added the helper class MatchingText and use it to automagically insert text for curly braces.
2009-09-17 15:51:15 +02:00
Roberto Raggi
71c46fbc54
Added BackwardsScanner
2009-09-17 12:29:22 +02:00
Roberto Raggi
ee16c21067
Look at the typedefs defined in local scopes.
2009-08-26 14:22:00 +02:00
Roberto Raggi
e77166a002
Don't include whitespaces and comments at the end of macro definitions.
2009-08-24 14:01:32 +02:00
hjk
93cbef8724
long live the king
2009-08-14 09:30:56 +02:00
Erik Verbruggen
86a7b26fcd
Fixed semantic checks for Objective-C methods and fast-enumeration.
2009-08-05 18:30:18 +02:00
Thiago Macieira
d0457b70e3
Compile the C++ parser library with Sun CC 5.9.
...
Things you mustn't do:
1) end an enum with a comma
2) #include <cxxxx> and not use std::
3) use anonymous structures
All three things are invalid C++. Anonymous structures inside
anonymous unions are allowed by GCC, but that doesn't mean it's valid.
2009-08-03 14:59:42 +02:00
Erik Verbruggen
4a0da2c6f2
Added Semantic checks for ObjC methods.
2009-07-31 16:03:48 +02:00
Roberto Raggi
1e7b406327
Added Snapshot::dependsOn().
...
Snapshot::dependsOn(fn) returns the files in the snapshot that depends on fn.
2009-07-29 10:18:07 +02:00
Erik Verbruggen
26267c0344
Improved ObjC parsing, and added semantic checks.
2009-07-28 16:34:15 +02:00
Thorbjørn Lindeijer
47a2097341
Implemented include completion
...
Done-with: danimo
2009-07-23 16:49:36 +02:00
Oswald Buddenhagen
e509247f3d
fix include dependency plugins/cpp* => shared/cplusplus
2009-07-17 17:14:40 +02:00
Roberto Raggi
37a146d05c
Introduced revisions in CPlusPlus::Document.
...
Reviewed by Thorbjørn Lindeijer
2009-07-14 14:24:02 +02:00
Roberto Raggi
2e49aaf484
Fixed possible crashes when resolving namespace and class bindings.
2009-07-14 14:24:01 +02:00
Roberto Raggi
e9d0285fbc
Oops! operators are not objc keywords :)
2009-07-13 12:28:22 +02:00
Roberto Raggi
00f7cdac36
Search for type names in template type and template-template-type parameters.
2009-07-13 12:26:44 +02:00
Roberto Raggi
1eefd16383
Fixed a few typos and bugs in the ObjC++ support.
2009-07-13 12:05:29 +02:00
Roberto Raggi
a446e06742
Moved CheckUndefinedSymbols in libCPlusPlus
2009-07-13 11:41:12 +02:00
Roberto Raggi
def098bcbd
Return the right type for the literal.
2009-07-10 17:08:15 +02:00
Roberto Raggi
00025f93dc
More work on the binding pass.
2009-07-10 16:04:36 +02:00
Roberto Raggi
3e54a65a69
Replaced T_INT_LITERAL and T_FLOAT_LITERAL with T_NUMERIC_LITERAL.
2009-07-10 15:45:09 +02:00
Roberto Raggi
fd4dbd7446
Introduced Snapshot::simplified(doc)
2009-07-10 12:42:55 +02:00