Commit Graph

596 Commits

Author SHA1 Message Date
Roberto Raggi
ecf40d2426 Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead. 2009-11-17 14:24:09 +01:00
Roberto Raggi
c13b8697d2 Introduced the quick fix engine 2009-11-13 16:14:38 +01:00
Roberto Raggi
fc52fd8908 Revert "Fixed the direction in which include paths are traversed"
This reverts commit 6a9e7ab0f4.
2009-11-13 15:20:54 +01:00
Roberto Raggi
7e655aab11 Revert "Fixed the direction in which include paths are traversed"
This change breaks OSX very badly.

This reverts commit 6a9e7ab0f4.
2009-11-13 15:19:15 +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
Friedemann Kleint
8335a06ed4 Code model: Update on changes from the versioning system.
Add changed signals to IVersionControl and
VCSManager and wire them to the update methods. Add a menu action for
manually updating. Improved version of reverted
7aa2411693.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-11-11 14:32:54 +01:00
con
e4b1a25dd2 Revert "Code model: Update on changes from the versioning system."
This reverts commit 7aa2411693.
It breaks the code model updates completely. So reverting this change
until we have the right thing.

Reviewed-by: Roberto Raggi
2009-11-10 18:19:37 +01:00
Thorbjørn Lindeijer
6a9e7ab0f4 Fixed the direction in which include paths are traversed
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-11-10 18:13:41 +01:00
Roberto Raggi
0ae2d96a9b Fixed the AST field names. 2009-11-10 16:47:16 +01:00
Roberto Raggi
24b6c858eb Cleanup postfix declarators. 2009-11-10 16:20:12 +01:00
Roberto Raggi
6e3e293e53 Removed DeclaratorListAST
Done with Erik Verbruggen
2009-11-10 16:20:10 +01:00
Friedemann Kleint
7aa2411693 Code model: Update on changes from the versioning system.
Add state logic to CppCodeModelManagerInterface, making it aware whether
an indexer is running, protect the update methods from another
invocation while running. Add changed signals to IVersionControl and
VCSManager and wire them to the update methods. Add a menu action for
manually updating.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: con <qtc-committer@nokia.com>
2009-11-09 15:57:56 +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
36d0d8500e Merge commit 'origin/1.3' 2009-11-09 11:36:19 +01:00
Christian Kamm
a253a69980 Do never offer signature autocompletion for constructor calls.
They should always use the function parameter tooltip.

This fixes a bug where you were offered completion for
C foo( -> C foo(int x)
if C had a constructor taking int x.

Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-11-09 10:13:17 +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
con
c8bb7e174b Merge commit 'origin/1.3'
Conflicts:
	src/plugins/qt4projectmanager/qt4project.cpp
2009-11-04 19:15:14 +01:00
con
9c0ed539cc Prevent global replace before search is done.
Also fix focusing issues of the replace line edit.

Reviewed-by: Roberto Raggi
2009-11-04 18:44:19 +01:00
Roberto Raggi
f2a0382910 Replace . with -> only when the base expression has type pointer to class.
Reviewed-by: Thorbjørn Lindeijer
2009-11-04 18:21:35 +01:00
Roberto Raggi
a7d0fb8014 Set the parent object of CppFindReferences. 2009-11-04 16:16:50 +01:00
Roberto Raggi
7cffef17aa Paranoia check. Skip the change if we have another change with the same offset. 2009-11-04 12:48:36 +01:00
con
fa34847571 Merge commit 'origin/1.3'
Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qt4projectmanager/qt4project.cpp
2009-11-03 18:08:01 +01:00
Christian Kamm
ff4e559c46 Improve completion for function declarations.
Instead of just completing
void A::foo(|) -> void A::foo(int i|), we now complete
void A::foo(|) -> void A::foo(int i) const|
where | represents the place of the cursor.

Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-11-02 10:32:50 +01:00
con
162b0dae81 Version bump. 2009-10-29 17:17:49 +01:00
con
008168838f Version bump. 2009-10-29 17:15:55 +01:00
con
68f193a189 Merge commit 'origin/1.3'
Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp
Needed changes:
        src/plugins/qt4projectmanager/qtversionmanager.cpp
2009-10-27 18:23:58 +01:00
Friedemann Kleint
43ff8a0fb0 Compile Windows 2009-10-27 12:36:26 +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
con
bac9c64f93 Merge commit 'origin/1.3' 2009-10-26 15:48:26 +01:00
Thorbjørn Lindeijer
cd3435a983 Don't needlessly call updateProjectInfo()
Should not be necessary when nothing changed in the project info. This
also fixes a problem where include file scanning happened twice after
saving a pro file.

Reviewed-by: Roberto Raggi
2009-10-26 15:34:12 +01:00
con
441ece365a Merge commit 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.h
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qmleditor/QmlEditor.pluginspec
2009-10-26 13:51:56 +01:00
Roberto Raggi
a2b5184123 Activate the completion only when the canonical symbol has a valid name. 2009-10-26 13:45:27 +01:00
Roberto Raggi
996866814a Initialize all the members of CppCodeCompletion 2009-10-21 17:05:36 +02:00
Roberto Raggi
250d947aa5 Initialize members of ModelItemInfo. 2009-10-21 17:05:36 +02:00
Roberto Raggi
5f04a48f6b Removed unused member _node in QuickFixOperation 2009-10-21 17:05:36 +02:00
Roberto Raggi
e9a97ea6a4 Initialize m_line and m_column 2009-10-21 17:05:36 +02:00
Oswald Buddenhagen
c9f9310bb1 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
	src/plugins/debugger/gdb/remotegdbadapter.cpp
2009-10-20 20:09:00 +02:00
Roberto Raggi
1006be240d Fixed possible crash when completing top-level declarations. 2009-10-20 17:17:11 +02:00
Roberto Raggi
41139ef630 Don't acticate completion inside C++-like comments. 2009-10-20 16:37:23 +02:00
Christian Kamm
cadaec24aa Fix function signature completion for cv-qualified functions.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-10-20 12:55:14 +02:00
Christian Kamm
e3479d9942 Add completion for function signatures.
You now get the function parameters as a completion suggestion when
declaring or defining a function. The tooltip for function calls
is unchanged.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
(cherry picked from commit 202fef42ca)
2009-10-20 12:55:14 +02:00
Christian Kamm
202fef42ca Add completion for function signatures.
You now get the function parameters as a completion suggestion when
declaring or defining a function. The tooltip for function calls
is unchanged.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-10-19 14:19:28 +02:00
con
525ef4cc85 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/CppTools.pluginspec
	src/plugins/help/Help.pluginspec
	src/plugins/locator/Locator.pluginspec
	src/plugins/projectexplorer/ProjectExplorer.pluginspec
	src/plugins/texteditor/TextEditor.pluginspec
2009-10-16 14:40:40 +02:00
con
77efc921c2 Rename the internal parts that still used QuickOpen instead of Locator
Merge branch 'adams' into 1.3
2009-10-16 14:25:30 +02:00
Roberto Raggi
8b514657cc Added support to complete function-call operators. 2009-10-16 12:23:16 +02:00
con
1074aca8d2 Rename the QuickOpen plugin to Locator 2009-10-16 11:54:39 +02:00
con
ed77fcc551 Rename pro and pri files 2009-10-16 11:50:38 +02:00
con
a5bfacecb7 Rename directory quickopen --> locator 2009-10-16 11:44:18 +02:00