Roberto Raggi
d510aaa029
Fixed problem with nested templates in function declaration completion
...
Wasn't using a space to separate the closing angular brackets.
Task-number: QTCREATORBUG-547
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2010-01-06 14:29:51 +01:00
Roberto Raggi
0fdb3bebee
Fixed crash when completing symbols without a valid context.
...
Task-number: QTCREATORBUG-534
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2010-01-06 12:32:29 +01:00
Roberto Raggi
22d75c4c20
Fixed: Template argument marked as "not a type name" when defined as primitive type
...
Task-number: QTCREATORBUG-384
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-12-08 13:06:17 +01:00
Roberto Raggi
4bbb9219e9
Fixed completion when a typedef symbol is used as class name
...
For example std::string, which is a typedef of std::basic_string.
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-12-08 11:09:11 +01:00
Thorbjørn Lindeijer
9839dea6bc
Fixed autoindent when using tabs instead of spaces
...
Several special cases that are handled by the CPPEditor did not take
into account code that was using tab characters.
Task-number: QTCREATORBUG-292
Reviewed-by: Roberto Raggi
2009-12-08 11:09:11 +01:00
Christian Kamm
cc6c543a75
Compile fix for 42f849c4da.
...
Reviewed-by: Roberto Raggi
2009-12-03 16:05:53 +01:00
Roberto Raggi
42f849c4da
Fixed line/column position after macro expansion.
...
Task-Number: QTCREATORBUG-409
2009-12-03 15:08:39 +01:00
Thorbjørn Lindeijer
b02d705ac4
Fixed possible crash in the code completion
...
Null pointer reference in a case where the global namespace is
explicitly specified using ::
Task-number: QTCREATORBUG-351
Review-pending-by: Roberto Raggi
2009-11-26 16:36:39 +01:00
Roberto Raggi
fa2eca8262
Insert semicolon when matching enum declarations.
...
Task-number: QTCREATORBUG-282
2009-11-16 18:15:33 +01:00
Friedemann Kleint
d2bd092b47
Code model: Fix Windows issues (duplicate matches).
...
Ensure the code model receives file names with clean paths ('/')
and fix paths in the relevant places of the code model. Pass on clean
paths from Cpp reference find and display them correctly in the search
window tooltip.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2009-11-09 13:53:28 +01:00
Roberto Raggi
eaa2c10a25
Introduced CppTools::CppModelManagerInterface::updateModifiedFiles().
...
updateModifiedFiles ckecks the timestamp and reparses all the modified files in the current snapshot.
2009-11-05 12:34:02 +01:00
Roberto Raggi
70bdb3726d
Resolve fully qualified names.
2009-11-04 17:38:37 +01:00
Roberto Raggi
205e03684a
Don't process already visited nodes.
2009-11-04 12:02:19 +01:00
Robert Loehning
e68753b48b
Fixed index out of range.
...
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com >
2009-11-02 19:14:40 +01:00
Roberto Raggi
8d89646011
Don't run the typechecker on the actual arguments.
...
At least for now we ignore the types of the actual arguments
2009-10-28 14:55:02 +01:00
Roberto Raggi
345909a55a
Fixed: Completion doesn't work for typedefs
...
Task-number: QTCREATORBUG-170
2009-10-28 12:26:08 +01:00
Roberto Raggi
aceeea9664
Mark the bindings when searching for class or namespaces.
2009-10-28 12:12:40 +01:00
Roberto Raggi
d7b59b509a
No declSymbol, no party
2009-10-27 18:08:33 +01:00
Roberto Raggi
960716df45
Cleanup
2009-10-27 16:13:27 +01:00
Roberto Raggi
213316f2a7
Handle ambiguous function declarations vs c++-like initialized declarations.
2009-10-27 16:13:27 +01:00
Roberto Raggi
b7f3d924c3
Remove duplicates from the working list.
2009-10-27 12:32:04 +01:00
Roberto Raggi
fefd72b293
Introduced CPlusPlus::FindUsages.
2009-10-27 12:01:45 +01:00
Roberto Raggi
07a5604ab7
Removed unused code.
2009-10-26 18:05:52 +01:00
Roberto Raggi
a3580ab576
Added the copyright header
2009-10-26 18:00:49 +01:00
Roberto Raggi
82ecb2c7b3
Initial work on the `new' GenTemplateInstance.
2009-10-26 17:59:54 +01:00
Friedemann Kleint
f13d4a104a
Autotests: Compile on Windows
...
Reviewed-by: Roberto Raggi <qtc-committer@nokia.com >
2009-10-26 17:26:53 +01:00
Roberto Raggi
fb8d699aac
Introduced CPlusPlus::GenTemplateInstance.
2009-10-26 12:41:33 +01:00
Roberto Raggi
4fb4705791
Resolve the conditional and new-expressions
2009-10-23 14:53:44 +02:00
Roberto Raggi
50d60e712c
Initialize ExpressionUnderCursor's _jumpedComma.
2009-10-21 17:05:36 +02:00
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