Commit Graph

511 Commits

Author SHA1 Message Date
Roberto Raggi
0be80466b8 Save/Restore the if-level. 2009-12-09 16:01:20 +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
02c7336795 Expand the template parameters. 2009-12-08 12:38:27 +01:00
Roberto Raggi
5a0b7f8ec8 Added initializers to the formal arguments. 2009-12-08 11:35:34 +01:00
Thorbjørn Lindeijer
d20cdc64e3 Merge remote branch 'origin/1.3' 2009-12-08 11:26:05 +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
Roberto Raggi
55175c149c Fixed scope completion after a template-id. For example, when completing std::list<int>::i... 2009-12-07 15:33:08 +01:00
Roberto Raggi
a93b625697 Compile with msvc. 2009-12-07 13:00:56 +01:00
Roberto Raggi
69c9a06342 Removed the call to QDir::cleanPath. 2009-12-07 11:20:16 +01:00
Roberto Raggi
60caec48d1 Store the documents in an hash. 2009-12-07 11:12:55 +01:00
Roberto Raggi
14376c3c32 Initial work on the new CPlusPlus::Snapshot.
Encapsulate the details.
2009-12-07 10:54:27 +01:00
Roberto Raggi
aae5b92125 Use mappedReduce when searching for the usages of a symbol. 2009-12-04 13:04:47 +01:00
mae
c1120587a8 Merge commit 'origin/1.3'
Conflicts:
	src/plugins/cppeditor/cppeditor.cpp
2009-12-03 18:41:21 +01:00
Christian Kamm
cc6c543a75 Compile fix for 42f849c4da.
Reviewed-by: Roberto Raggi
2009-12-03 16:05:53 +01:00
con
8b9c748abb Merge remote branch 'origin/1.3' 2009-12-03 15:15:08 +01:00
Roberto Raggi
42f849c4da Fixed line/column position after macro expansion.
Task-Number: QTCREATORBUG-409
2009-12-03 15:08:39 +01:00
Roberto Raggi
43df685c68 Removed useless arguments 2009-12-03 11:59:37 +01:00
Roberto Raggi
8741494f41 Rename dependsOn() in filesDepedingOn() and introduced Snapshot::dependencyTable(). 2009-12-02 17:07:10 +01:00
Roberto Raggi
d5c2dedd8a Save the usages. 2009-12-02 12:16:41 +01:00
Roberto Raggi
7c7ce13ac0 Use const names. 2009-12-01 12:46:23 +01:00
Roberto Raggi
fade61a8a9 Use const literals. 2009-12-01 11:46:36 +01:00
Roberto Raggi
527a9bd526 Inital support for Q_D/Q_Q declarations. 2009-11-30 17:07:22 +01:00
Oswald Buddenhagen
b0b5bde2e9 Merge remote branch 'origin/1.3'
Conflicts:
	doc/qtcreator.qdoc
	src/plugins/debugger/watchhandler.cpp
2009-11-27 20:06:01 +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
hjk
68160cfa8b compile fix with namespaced Qt 2009-11-20 16:54:09 +01:00
Roberto Raggi
ecf40d2426 Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead. 2009-11-17 14:24:09 +01:00
Roberto Raggi
5d7def6d2a Refactored the AST visitors.
Now, the ASTVisitor constructor takes a valid reference to a TranslationUnit.
2009-11-17 13:30:39 +01:00
Roberto Raggi
35901130ee Merge remote branch 'origin/1.3' 2009-11-17 09:40:50 +01:00
Roberto Raggi
fa2eca8262 Insert semicolon when matching enum declarations.
Task-number: QTCREATORBUG-282
2009-11-16 18:15:33 +01:00
Roberto Raggi
baffd97efb Fixed parsing of ctor-initializers and added a manual test for the AST matchers 2009-11-13 12:38:18 +01:00
Roberto Raggi
5dcf449afd Initial work on the pattern matcher for AST nodes. 2009-11-12 18:03:05 +01:00
con
43bccb41ed Merge commit 'origin/1.3'
Conflicts:
	src/plugins/debugger/debuggermanager.h
	src/plugins/qmleditor/qmleditorplugin.cpp
	src/plugins/qt4projectmanager/qt4runconfiguration.cpp
2009-11-11 16:14:29 +01:00
Erik Verbruggen
2d2d0b59c8 Changed ExpressionUnderCursor to handle Objective-C send-message operations. 2009-11-11 09:35:42 +01:00
Erik Verbruggen
a6bbec2b56 Added symbols for property declarations. 2009-11-11 09:34:10 +01:00
Erik Verbruggen
72d4493fc2 Added scope calculation for Objective-C classes. 2009-11-11 09:21:06 +01:00
Roberto Raggi
0ae2d96a9b Fixed the AST field names. 2009-11-10 16:47:16 +01:00
Roberto Raggi
cdb1443219 Cleanup specifiers. 2009-11-10 16:20:13 +01:00
Roberto Raggi
4fc2ccf0c5 Cleanup ptr operators. 2009-11-10 16:20:13 +01:00
Roberto Raggi
380bce4527 Cleanup nested name specifiers 2009-11-10 16:20:12 +01:00
Roberto Raggi
24b6c858eb Cleanup postfix declarators. 2009-11-10 16:20:12 +01:00
Roberto Raggi
a7219736b6 Cleanup Postfix operators. 2009-11-10 16:20:12 +01:00
Roberto Raggi
1dbdbbefe7 Cleanup base base specifiers. 2009-11-10 16:20:11 +01:00
Roberto Raggi
496ff15db3 Removed ObjCIdentifierListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
8efb73f5d2 Removed TemplateArgumentListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Roberto Raggi
36a0ea2bcb Removed DeclarationListAST node.
Done with Erik Verbruggen
2009-11-10 16:20:09 +01:00
Roberto Raggi
4089c906fa Removed the ExpressionListAST node.
Done with Erik Verbruggen
2009-11-10 16:20:09 +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
con
468b76fff2 Merge commit 'origin/1.3' 2009-11-05 19:00:23 +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