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
Roberto Raggi
cd3022dc3e
Show all the warn messages.
2009-06-04 11:42:02 +02:00
Roberto Raggi
f55d5500c5
Warn for undefined types (not finished yet).
2009-06-04 11:32:29 +02:00
Roberto Raggi
bb9ae8aa4f
Check for missing Q_OBJECT macro.
2009-06-03 16:53:18 +02:00
Roberto Raggi
5134206e78
We need a valid name to resolve namespace symbols.
2009-06-03 15:46:36 +02:00
Roberto Raggi
a1c6efbd43
cleanup
2009-06-03 14:55:56 +02:00
Roberto Raggi
b78200221b
Warn for undefined namespaces in using namespace directives.
2009-06-03 14:16:13 +02:00
Roberto Raggi
7b44f1749a
Run the binding pass
2009-06-03 12:13:22 +02:00
Roberto Raggi
4081f1c7e7
Warning for undefined base classes.
2009-06-02 16:50:43 +02:00
Roberto Raggi
e8ba82f1f4
Protected modelmanager's snapshot.
2009-06-02 15:28:16 +02:00
Roberto Raggi
7ee7055485
Initial support for semantic searches.
2009-06-02 14:56:30 +02:00
dt
5c9916478f
First step towards dynamic ui completion. Add hooks in cppmodelmanager
...
This adds a way for plugins to tell the cppmodel that for certain files,
the actual contents come from it, instead of reading from the disk.
(For texteditors the cppmodel does that automatically.)
Reviewed-By: Roberto Raggi <roberto.raggi@nokia.com >
2009-05-12 14:44:57 +02:00
Alessandro Portale
6fa838ab1b
Rename "Workbench" to "Qt Creator"
2009-05-08 16:43:16 +02:00
Oswald Buddenhagen
6d5eeb7afb
add missing tr()s, etc., add some //: comments
2009-04-20 16:51:10 +02:00
Roberto Raggi
937340cc5f
Don't process the documents from QtConcurrent threads.
2009-03-17 14:39:52 +01:00
Roberto Raggi
a720d967ff
Parse only c/c++ files.
2009-03-16 12:31:34 +01:00
Roberto Raggi
99805d3c3e
Prune the list of the futures.
2009-03-11 12:21:02 +01:00
Roberto Raggi
ecab2093ae
Wait the future values.
2009-03-11 12:00:20 +01:00
Roberto Raggi
2780999d53
Improved the way we merge environments.
2009-03-09 12:51:48 +01:00