Erik Verbruggen
e7088e9c42
Fixed autotests.
2010-06-23 12:45:22 +02:00
Erik Verbruggen
11dca3f1ce
Fixed compilation problem.
2010-06-23 12:27:35 +02:00
Erik Verbruggen
d00ece77d7
Fix compilation problem.
2010-06-23 11:01:05 +02:00
Erik Verbruggen
2ad794c54f
Fixed type resolving for ObjC ptr receiver types in objc_msg_send expressions.
2010-06-18 10:58:35 +02:00
Christian Kamm
eb2ac188f2
C++: Make 'follow symbol' for classes work in more cases.
...
Previously, it would still fail if a forward declaration and declaration
for a class were in the same file.
Task-number: QTCREATORBUG-20
2010-06-18 09:28:32 +02:00
Thorbjørn Lindeijer
a1a565b9c5
Two more columnNumber() calls that should be positionInBlock()
...
columnNumber() relies on text wrapping, and we're only interested in the
position of the cursor in the block.
2010-06-16 18:03:43 +02:00
Christian Kamm
e1a0f5abef
C++: Make 'follow symbol' work with forward declared classes.
...
If it encounters a forward declaration, it tries to find the class
declaration globally now.
Task-number: QTCREATORBUG-20
2010-06-16 15:37:39 +02:00
Thorbjørn Lindeijer
173cdff56c
Merge branch '2.0'
...
Conflicts:
src/plugins/cppeditor/cppquickfix.cpp
src/plugins/mercurial/mercurialjobrunner.cpp
src/plugins/subversion/subversionplugin.cpp
2010-06-15 13:22:33 +02:00
Thorbjørn Lindeijer
a6e5298591
Fixed handling of text wrapping and a text layout corner case
...
Due to using QTextCursor::columnNumber() instead of
QTextCursor::positionInBlock(), a lot of code would not work correctly
when used with wrapped lines.
In addition, there was an issue with columnNumber() returning 0 right
after inserting a character before the last character of a line.
Reviewed-by: mae
2010-06-15 12:25:01 +02:00
Erik Verbruggen
05639e4688
Merge branch 'origin/2.0' (early part)
2010-06-15 11:30:51 +02:00
Thorbjørn Lindeijer
6875a50d27
Don't pass QChar as const & since it's just a unsigned short
...
Reviewed-by: ogoffart
2010-06-14 16:10:35 +02:00
Erik Verbruggen
e42ca194c5
Introduced token caching to prevent repetetive tokenizing.
...
Also removed TokenUnderCursor as it's functionality is in the token cache.
Reviewed-by: ckamm
2010-06-14 10:10:05 +02:00
Bill King
d074a0bfcc
Fix single bit value cannot be signed, change to match declarations elsewhere.
2010-06-11 13:37:24 +10:00
Roberto Raggi
cceaffca5b
Keep the Control around for as long needed.
2010-06-04 17:58:29 +02:00
Erik Verbruggen
a56fd7b9f4
Fixed the return type for objc_msg_send expressions.
2010-06-04 15:39:31 +02:00
Erik Verbruggen
424b9724d6
Revert "Introduced a token cache for the C++ editor."
...
This reverts commit c2393df023 .
2010-06-04 12:37:26 +02:00
Erik Verbruggen
66a3bbe3f9
Fixed possible null-pointer deref.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
eed0241d97
Fixed a couple of null-checks/-returns.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
10ed2c536e
Fixed hidden parameters.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
c2393df023
Introduced a token cache for the C++ editor.
...
This should speed things up a bit, because before, the line was tokenized at
least 3 times.
2010-06-04 09:36:05 +02:00
Erik Verbruggen
414d9fe3e0
Fixed possible null-pointer crash.
2010-06-03 17:06:18 +02:00
Roberto Raggi
ed501b9bc3
Look at the injected class name.
2010-06-01 14:00:02 +02:00
Roberto Raggi
0dfe7b9b95
Fixed unqualified name lookup.
2010-06-01 12:22:07 +02:00
Roberto Raggi
f085dd2167
Some initial support for template parameters in our semantic highlighter.
2010-06-01 11:59:13 +02:00
Roberto Raggi
ecb951cab0
Compile.
2010-05-31 16:01:27 +02:00
Roberto Raggi
cca38a737e
Disable the cacheing of template instantiations.
2010-05-31 12:37:16 +02:00
Roberto Raggi
1c078ec2a3
Ensure we keep the context around for as long as it is needed.
2010-05-31 12:37:15 +02:00
Roberto Raggi
a31de2c37a
Fixed header protection.
2010-05-28 17:17:11 +02:00
Erik Verbruggen
344e0b9ca7
Removed debug line.
2010-05-28 17:03:15 +02:00
Erik Verbruggen
8390d165bd
Fixed missing include, and #undeffed debug code.
2010-05-28 17:02:32 +02:00
Erik Verbruggen
41bc5dac15
Added a utility method to search by line/column.
2010-05-28 16:29:53 +02:00
Erik Verbruggen
3eee397abd
Moved ASTPath to its own header/source files.
2010-05-28 16:29:53 +02:00
Oswald Buddenhagen
123937fb2a
Merge remote branch 'origin/2.0'
2010-05-28 12:45:41 +02:00
Erik Verbruggen
3082395c14
Disabled invalid ObjC++ discovery code.
...
Task-number: QTCREATORBUG-1501
Reviewed-by: Roberto Raggi
2010-05-28 12:15:54 +02:00
Roberto Raggi
e343b33342
Check for possible 0x0 accesses.
2010-05-28 11:15:08 +02:00
Roberto Raggi
64e9f652e0
Handle using declarations
2010-05-27 16:33:18 +02:00
Thorbjørn Lindeijer
ee6d7ae384
Fixed position of current argument highlight for constructors
...
It was broken due to a leading space which was trimmed off, breaking the
begin and end positions. Instead, don't trim, but just make sure not to
add a leading space when it is not necessary.
Done-with: Christian Kamm <christian.d.kamm@nokia.com >
Task-number: QTCREATORBUG-1398
2010-05-27 14:49:45 +02:00
Roberto Raggi
653ca110fe
Removed DeprecatedLookupContext.
2010-05-26 15:56:12 +02:00
Roberto Raggi
d2a62b07f0
Create bindings for anonymous typedefs.
2010-05-26 10:10:23 +02:00
Roberto Raggi
ce3a90fc78
Highlight namespaces.
2010-05-25 17:49:43 +02:00
Roberto Raggi
f335855ade
Warn about unexpected using declarations.
2010-05-25 17:15:23 +02:00
Roberto Raggi
405353ab23
Removed the CppBindings.
2010-05-25 17:15:23 +02:00
Roberto Raggi
b68a16f1b5
Highlight user defined types.
2010-05-25 17:15:22 +02:00
Roberto Raggi
2a0f901e16
Use the document in the snapshot when available.
2010-05-25 17:15:22 +02:00
Roberto Raggi
e6c377c75c
New implementation of CheckUndefinedSymbols.
2010-05-25 17:15:22 +02:00
Roberto Raggi
744d294f3b
Improved lookup of qualified names.
2010-05-25 17:15:21 +02:00
Roberto Raggi
0ce09d9d87
Added an optinal member `length' to Document::DiagnosticMessage.
2010-05-25 17:15:21 +02:00
Roberto Raggi
09bf431ab5
Fixed jump to the matching definition.
2010-05-21 11:35:37 +02:00
Roberto Raggi
8ecbb44183
Turn on C++0x support.
2010-05-21 10:51:48 +02:00
Erik Verbruggen
b9ac631b4a
Fixed expression resolving for ObjC message send expressions.
2010-05-20 18:37:12 +02:00