dt
fd5ee47949
Forward declaration is not enough, so include the header.
2009-09-23 17:38:36 +02:00
Roberto Raggi
9b501d6369
Use TASK_SEARCH instead of TASK_INDEX.
2009-09-23 16:52:42 +02:00
Roberto Raggi
6ea5fdcded
Speed up the search of a reference to a name.
2009-09-23 16:52:42 +02:00
Roberto Raggi
8848be4caa
Find references
2009-09-23 16:52:41 +02:00
Thorbjørn Lindeijer
bf74d21d6c
Avoid completing a closing parenthesis in the wrong place
...
Need to check the character to the right of the cursor.
2009-09-22 16:54:16 +02:00
mae
061865efa4
move auto parentheses handling into the cpp editor
2009-09-17 12:37:20 +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
b8b37cb0b5
Fixed the completion to take into account auto parentheses insertion
...
Also skip semicolons in when auto parentheses insertion is enabled.
Done with mae.
2009-09-16 16:48:14 +02:00
con
32e0340eab
Version bump.
2009-09-10 17:02:57 +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
aba678604c
Optimized startOfOperator a bit
2009-08-28 13:51:06 +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
Thiago Macieira
d0457b70e3
Compile the C++ parser library with Sun CC 5.9.
...
Things you mustn't do:
1) end an enum with a comma
2) #include <cxxxx> and not use std::
3) use anonymous structures
All three things are invalid C++. Anonymous structures inside
anonymous unions are allowed by GCC, but that doesn't mean it's valid.
2009-08-03 14:59:42 +02:00
Daniel Molkentin
bf755ad118
Enable include completion also for ObjectiveC's 'import'
2009-07-31 16:35:07 +02:00
Daniel Molkentin
acdcf82eae
Clarify what the dialog in CppFileSettingsWidget::slotEdit() actually does
2009-07-28 12:05:28 +02:00
Thorbjørn Lindeijer
9412b138b6
Made trailing slash trigger the next include completion
...
The completion for the directory wasn't triggered because one of the
items matched the typed string, so the list of completion wasn't empty
and no new trigger was allowed.
By not matching items when a trailing slash is typed, the list is
allowed to trigger again from the new location.
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com >
2009-07-24 14:32:39 +02:00
Thorbjørn Lindeijer
5271117e5b
Avoid inserting another closing character when completing includes
...
When a closing character is already there, it shouldn't be appended.
Done by generalizing the same code for automatically inserted brackets
after C++ symbols.
2009-07-24 13:52:49 +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
Thorbjørn Lindeijer
47a2097341
Implemented include completion
...
Done-with: danimo
2009-07-23 16:49:36 +02:00
Robert Loehning
2d15fda219
Including QStringMatcher
...
Reviewed-by: Thorbjørn Lindeijer
2009-07-22 10:51:11 +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
Alessandro Portale
d3f9757916
Removing some unused semicolons after Q_UNUSED
...
There were both variants, with and without extra semicolon.
2009-07-13 17:35:17 +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
Thorbjørn Lindeijer
300b60fa98
Fixed warnings about unused variables
2009-07-10 11:52:12 +02:00
Roberto Raggi
85c501c976
Fixed possible crash when completing function-like arguments.
2009-07-09 16:20:20 +02:00
Roberto Raggi
43a957e6e3
Disabled the quick fix engine.
...
We don't really have any useful quickfix implemented so there's no reason
to waste time visiting the AST.
2009-07-07 17:06:11 +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
Thorbjørn Lindeijer
e51811657b
No need to open file for reading when just writing to it
2009-06-29 14:30:43 +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
Friedemann Kleint
2f7b3e1257
Fix overwriting of new license header template.
2009-06-22 16:27:06 +02:00
Friedemann Kleint
696cfa0432
Add a license template setting to the CppTools settings.
...
Acked-by: con <qtc-committer@nokia.com >
2009-06-22 16:22:15 +02:00
Thorbjørn Lindeijer
1b168b686d
Fixed colors of function argument hint with some palettes
...
Bad idea to hardcode the background color. Now using the style directly
to draw a fake tooltip as background for the function argument hint.
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com >
2009-06-22 14:14:05 +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
7d1bf1fe57
Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainline
2009-06-11 17:03:53 +02:00
Thorbjørn Lindeijer
0d8456a73e
Some capitalization fixes
2009-06-11 15:14:40 +02:00
Roberto Raggi
d08b90b494
Merge branch '1.2' of git@scm.dev.nokia.troll.no:creator/mainline
2009-06-11 11:32:47 +02:00
Thorbjørn Lindeijer
0da4881c3e
Made case-insensitive code completion really case-insensitive
...
There was still some "smartness" that made uppercase characters match
case-sensitive, regardless of the case-sensitivity setting. This annoyed
or at least confused many people who prefer case-insensitivity.
Reviewed-by: con
2009-06-10 16:25:59 +02:00