Commit Graph

144 Commits

Author SHA1 Message Date
Roberto Raggi
32a84df5c0 Deprecated the current LookupContext. 2010-05-05 16:36:44 +02:00
Thorbjørn Lindeijer
41ab8fbbf1 Moved TextEditDocumentLayout and related classes to their own file
The Parentheses, TextBlockUserData and TextEditDocumentLayout classes
and their member function implementations were spread around the
BaseTextEditor class. Moving them to their own file to make the code a
bit better organized.

Reviewed-by: mae
2010-04-26 14:42:11 +02:00
dt
f093d0806b Cancel code model indexing on project closing and full code model update
Task-Nr: QTCREATORBUG-1151
2010-04-26 12:29:50 +02:00
Erik Verbruggen
a8fc1f48d4 Fixed icheck build. 2010-04-23 15:25:22 +02:00
con
616cf61f45 Include scanning fixes.
Allow include paths with any suffix, and do some sanity check for
existence of paths.

Reviewed-by: Thorbjørn Lindeijer
2010-04-14 18:07:41 +02:00
con
b4367cb9a0 Some naming of the progress indicators. 2010-04-14 12:59:30 +02:00
Erik Verbruggen
528ec741c1 Add private frameworks when a framework is added.
Task-number: QTCREATORBUG-1102
Reviewed-by: Roberto Raggi
2010-04-13 12:29:05 +02:00
Thorbjørn Lindeijer
7f38b76083 Use a reference when possible 2010-03-18 16:16:51 +01:00
Roberto Raggi
61a504c427 Ensure that the memory pool can be reused after a rewind and get rid of the segmented array. 2010-03-18 15:23:13 +01:00
Roberto Raggi
c9e50605dd Get rid of extra (non Creator-friendly) include paths. 2010-03-15 18:12:44 +01:00
dt
90c1c8f54d Cancel a previous update code model 2010-03-10 17:02:24 +01:00
Erik Verbruggen
417a1c9f28 Fixed QTCREATORBUG-745.
Fixed crash in FindUsages on a dirty file in a large project, which is saved
while the FindUsages is still running.
2010-03-09 17:38:02 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
dt
96e2fef626 Fix CppModelManager::parse broken in recent commit
Reviewed-by: Friedemann Kleint
2010-02-23 15:54:49 +01:00
Friedemann Kleint
7d3d9cad32 Fix code model indexing crash on Mac.
Introduce multithread-locking to Core::MimeDatabase as it is
invoked from the indexer thread to sort apart headers and sources.
Add a convenience to operate on a sequence to avoid locking for each
file.
2010-02-22 16:00:47 +01:00
Wolfgang Beck
e134e24919 Source update. 2010-02-03 13:21:08 +10:00
Friedemann Kleint
f672bff338 Fix some code scanning issues.
foreach()-Loops.
2010-02-01 14:00:07 +01:00
Wolfgang Beck
4b33881729 Merge ichecker branch changes into the mainline. New project can be found under src/tools/ICheck 2010-01-19 15:26:08 +10:00
Christian Kamm
f90f9e4879 Find macro uses.
Reviewed-by: Erik Verbruggen
2009-12-21 14:57:05 +01:00
Christian Kamm
c3cc7cf4d8 Enhance data stored for macros and macro uses.
In preparation for finding macro uses.

* Macro: add offset and length
* MacroUse: add line
* Document: add convenience functions for finding a macro definition, use
  or undefined use at a given location.

Reviewed-by: Erik Verbruggen
2009-12-21 14:57:05 +01:00
Roberto Raggi
51de95c497 Use the text editor revision to ignore outdated parse results. 2009-12-15 15:52:55 +01:00
Roberto Raggi
aa8a670669 Hide the implementation details of CppModelManagerInterface::WorkingCopy. 2009-12-15 15:26:40 +01:00
Roberto Raggi
b168eec2a1 Replaced the hardcoded QHash<QString, QString> with CppModelManagerInterface::WorkingCopy. 2009-12-15 15:16:46 +01:00
Daniel Molkentin
5832c6b584 Add windows definitions to make the code model happy.
__stdcall for all compilers (MSVC and MinGW, possibly others may use it)
__w64 is MSVC only, deprecated there, but still used in some places

Reviewed-By: Roberto Raggi
2009-12-10 16:38:19 +01:00
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