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
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
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
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
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
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
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
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
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
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
con
17d9bd6b0a
Rename QuickOpen namespace.
2009-10-16 11:30:46 +02:00
Roberto Raggi
8dc369bc2d
Simplified member completion.
...
Share code with ResolveExpression.
2009-10-16 11:08:34 +02:00
con
89d75814dd
CppQuickOpenFilter --> CppLocatorFilter
2009-10-16 10:55:58 +02:00
con
a42c3c493a
IQuickOpenFilter->ILocatorFilter and QuickOpenToolWindow->LocatorWidget
2009-10-16 04:00:57 +02:00
Roberto Raggi
e130c035d8
Process the names of the formal arguments when searching references in function definitions.
2009-10-15 14:48:56 +02:00
Roberto Raggi
24bcbaefe9
Don't use modality to inform the user about the dangerous world of code refactoring.
2009-10-15 13:59:04 +02:00
Roberto Raggi
c33a8e9498
Rename the given enumerator.
2009-10-13 14:38:53 +02:00
Roberto Raggi
5bee5dea13
Check the scope of class and fwd-class declarations
2009-10-13 12:21:05 +02:00
Thorbjørn Lindeijer
b07c1be547
Fixed a crash on exit when include files are still being scanned
...
Found by Roberto.
2009-10-13 12:14:23 +02:00
Roberto Raggi
420b09e8c2
Expose CppModelManagerInterface::workingCopy()
2009-10-12 10:38:00 +02:00
Roberto Raggi
88f3fa09be
Removed deprecated PrettyPrinter. We need a way to generate the pretty printer from the C++ parser.
2009-10-09 11:44:12 +02:00
Roberto Raggi
f820c1c776
Removed CppSemanticSearch & co. Find usages of a Symbol is way more powerful.
2009-10-09 11:13:59 +02:00
Roberto Raggi
dbffec2cca
Handle ambiguous AST nodes.
2009-10-09 11:02:47 +02:00
Roberto Raggi
510f8ccc3d
Improved the detection of #include-like directives.
2009-10-08 16:00:46 +02:00
Roberto Raggi
7105b773a1
Enable completion in C++ ctor-initializers. For example,
...
struct foo {
int m_zoo;
foo(): m_ // cursor is here.
2009-10-08 15:33:17 +02:00
Roberto Raggi
7e0e62cb25
Find the canonical virtual method.
2009-10-07 16:12:33 +02:00
Roberto Raggi
afedec330a
Run the binder before searching strong and weak references.
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
Roberto Raggi
7a135ac8a2
Search for possible forward classes.
2009-10-06 17:23:15 +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
Roberto Raggi
ef0e1a64dc
Show a warning message when using global renaming.
2009-10-06 16:00:55 +02:00