Commit Graph

120 Commits

Author SHA1 Message Date
Roberto Raggi
116acbbae0 Removed dummy #defines for __asm__ and __asm 2009-12-10 12:42:06 +01:00
Roberto Raggi
bdb4e48ebf Store the working list in a QHash. 2009-12-07 12:47:45 +01:00
Roberto Raggi
15ee71b324 Disable the indexer when m_indexerEnabled is false. 2009-12-07 12:03:31 +01:00
Roberto Raggi
14376c3c32 Initial work on the new CPlusPlus::Snapshot.
Encapsulate the details.
2009-12-07 10:54:27 +01:00
con
90c03d3209 Add functionality to show progress for the application in task bar/dock.
Move the API to the progress manager.
Added a first Mac implementation, other
platforms are pending.
2009-11-27 17:08:21 +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
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
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
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
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
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
7e0e62cb25 Find the canonical virtual method. 2009-10-07 16:12:33 +02:00
Roberto Raggi
73320a43d1 Added `Find Usages' of a Symbol. 2009-10-05 15:17:48 +02:00
Roberto Raggi
b5d6bf73d6 Ensure the user can stop a semantic search and added a method to get a pointer to the ModelManagerInterface. 2009-10-05 13:43:05 +02:00
con
f006183b3d Support include completion for frameworks on Mac.
Which is 'quite' important, since Qt builds by default generate
frameworks.
2009-10-01 17:02:18 +02:00
Roberto Raggi
ace380ec28 Make the symbols used in the current editors. 2009-09-30 13:25:59 +02:00
Roberto Raggi
86e21bc255 Look at the working copy when searching for references. 2009-09-29 13:42:47 +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
91a50a74f2 Changed the signature of findReferences() 2009-09-24 16:51:40 +02:00
Roberto Raggi
8848be4caa Find references 2009-09-23 16:52:41 +02:00
Daniel Molkentin
37d73f321d Be smarter about macros available from cl.exe.
Some macros are defined not by cl.exe purely, but are pretty standard.
We add those manually anyway. Also, remove compiler-specific macro
definitions from the model manager. They should be provided by the tool
chains only.
2009-09-16 17:17:09 +02:00
Thorbjørn Lindeijer
20e3d53602 Fixed endless looping in include paths in some cases with symlinks
Done-with: Christian Kamm <christian.d.kamm@nokia.com>
2009-08-28 16:58:35 +02:00
Thorbjørn Lindeijer
51d2c831b9 Fix crash in include completion with non-canonical include paths
Use QFileInfo::fileName() to get the filename, since that also works
when the original path wasn't canonical.
2009-08-20 19:49:54 +02:00
Thorbjørn Lindeijer
5b6ccb0468 Added a check for empty filename
No empty entries should be added to the completion list, but it seems
like this is what is happening. Maybe this warning will give some more
information about the problem.

Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2009-08-20 17:46:07 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
hjk
b104b43fa0 sessionmanager: replace signal sessionUnloaded() by aboutToUnloadSession()
sessionUnloaded was sometimes emitted when the session manager was in
an unsafe state (between delete m_file and  m_file = new ...) leading
to crashes when slots connected to the signal accessed the sessionmanager
again. This patch moves the signal emission before  delete m_file.

Reviewed-by: dt
2009-08-13 17:10:53 +02:00
Daniel Molkentin
a33c7990d8 Honor QTCREATOR_NO_CODE_INDEXER, supress include scanning. 2009-08-04 18:17:05 +02:00
Thorbjørn Lindeijer
00f7dd4586 Do the scanning for include files in the background
In order to speed up completion for include statements.

Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2009-07-24 12:52:42 +02:00
hjk
ed80f0a7f1 cppmodelmanager: add __restrict__ to known and ignored 'keywords' 2009-07-17 10:54:52 +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
a446e06742 Moved CheckUndefinedSymbols in libCPlusPlus 2009-07-13 11:41:12 +02:00
Roberto Raggi
780abd0d4b Store the document's revision used to compute the warning/error marks. 2009-07-10 13:57:55 +02:00
Roberto Raggi
45448ce5d5 Don't search for undefined types in ambiguous sizeof expressions. 2009-07-06 17:29:57 +02:00
Roberto Raggi
b261e78f35 Look at template-type parameters. 2009-07-06 13:44:29 +02:00
Erik Verbruggen
f84534287e Fixed mimetype check for Objective-C(++) files. 2009-06-29 11:32:43 +02:00
Roberto Raggi
fd8cd69a47 Introduced Document::CheckMode. 2009-06-26 09:11:14 +02:00
Roberto Raggi
9c038180d8 Improved compatibility with the gcc extensions. 2009-06-18 17:49:17 +02:00
Roberto Raggi
9a8e724f15 Don't search for undefined symbols in ambiguous typeof expressions. 2009-06-18 14:22:06 +02:00
Roberto Raggi
44aa96fcf5 Disable the undefined-type check for all the C-cast expressions. 2009-06-18 14:14:17 +02:00
Roberto Raggi
da6614ce6d Don't check for undefined symbols in ambiguous ast nodes. 2009-06-18 13:00:21 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Roberto Raggi
e2a0a4d7c5 Keep the original encoded text around while preprocessing. 2009-06-15 15:39:20 +02:00
Roberto Raggi
ec769aeaf7 Search in the editor buffers. 2009-06-10 12:25:52 +02:00
Roberto Raggi
e80eaae787 Fixed the warn message. 2009-06-04 12:55:12 +02:00
Roberto Raggi
90efa0f174 Check nested name specifiers. 2009-06-04 12:18:05 +02:00
Roberto Raggi
45fb9726ab Add the type-template parameters. 2009-06-04 11:53:48 +02:00