Commit Graph

137 Commits

Author SHA1 Message Date
Roberto Raggi
d18b0195e5 Introduced CPlusPlus::FastPreprocessor. 2009-06-03 15:51:37 +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
31e0b43395 Initial work on the binding pass. 2009-06-03 11:56:13 +02:00
Roberto Raggi
f7afe3ee4b Made the C++ front-end more Creator-friendly. 2009-06-03 11:10:04 +02:00
Roberto Raggi
2a8b5a2e2b Refactored the lookup of name and template name ids. 2009-05-28 15:24:17 +02:00
Roberto Raggi
6a3382d8de Say hello to LookupContext::resolveNestedNameSpecifier() 2009-05-28 12:39:56 +02:00
Roberto Raggi
faaab90a15 Added LookupContext::resolveOperatorNameId() with the bits needed to resolve operator name ids. 2009-05-28 12:10:45 +02:00
Roberto Raggi
d9a65beacc Moved the lookup of qualified name ids in LookupContext::resolveQualifiedNameId() 2009-05-28 11:59:11 +02:00
Roberto Raggi
a1ec4e2a94 Introduced Name::identifier().
Name::identifier() returns the identifier used to declare the name.
2009-05-28 11:49:59 +02:00
Thorbjørn Lindeijer
653757e781 Fixed HTML escaping issues in the function argument widget
HTML escaping was moved out of the TypePrettyPrinter since it interferes
with other logic there. Instead, the region to mark is now available
from the Overview and used by the FunctionArgumentWidget to put the
current argument in bold.
2009-05-28 11:00:33 +02:00
Roberto Raggi
10a2274bd4 Removed obsolete code. 2009-05-27 16:32:32 +02:00
Thorbjørn Lindeijer
985aa5727f Fixed a missing space in the tooltips after a template id
Reviewed-by: Roberto Raggi
2009-05-27 16:00:11 +02:00
Thorbjørn Lindeijer
878bc07201 Introduced a backwards scanner for finding expression under cursor
The backwards scanner lazily tokenizes strings. This optimizes the
common case where scanning one or two lines is enough while at the same
time we extended the limit from 5 to 10 lines.

Reviewed-by: Roberto Raggi
2009-05-27 16:00:10 +02:00
Roberto Raggi
b93c9ce347 Some cleanup in the lookup context. 2009-05-27 15:54:13 +02:00
Roberto Raggi
bdf6c3d0be Store the encoded file name in a QString. 2009-05-27 15:34:13 +02:00
Thorbjørn Lindeijer
efc0b20859 Made typing parenthesis even faster
Only attempt to activate the completion when there is a function id on
the left of the parenthesis.

Reviewed-by: Roberto Raggi
2009-05-27 11:38:57 +02:00
Thorbjørn Lindeijer
765aa56d6e Preprocessing an empty expression is always empty
Fixes performance issue with typing opening parentheses.

Reviewed-by: Roberto Raggi
2009-05-27 09:44:44 +02:00
Roberto Raggi
1f26af5c5e Oops! Removed "ugly" and buggy "return". 2009-05-19 15:34:17 +02:00
Roberto Raggi
398451b9d5 Improved LookupContext::buildVisibleScopes(). 2009-05-19 14:15:56 +02:00
Roberto Raggi
754b1c0f0f Set the cv-qualifiers when instantiating template functions. 2009-05-19 13:35:18 +02:00
Roberto Raggi
743e00f1ab Improved name substitution. 2009-05-19 13:24:58 +02:00
Roberto Raggi
33b11f23d3 Fixed prettyprint of template types. 2009-05-19 12:33:55 +02:00
Thorbjørn Lindeijer
55c69ffea4 Do not expand the list of candidates when resolving fully qualified ids
Still too unstable after all.

This reverts commit 6f3c9f7002.
2009-05-19 12:16:25 +02:00
Thorbjørn Lindeijer
6f3c9f7002 Revert "Do not expand the list of candidates when resolving fully qualified ids"
This reverts commit 84ba24ac71.

It might work now cause of the fix done in commit
f3767148c0.
2009-05-18 15:30:37 +02:00
Roberto Raggi
d46a1447f1 Fixed possible crash in std::isspace(ch) when ch is a unicode char. 2009-05-15 16:01:02 +02:00
Roberto Raggi
483449e420 There is no output stream so there's nothing to expand. 2009-05-13 18:16:28 +02:00
Roberto Raggi
caad98ec4c Refactored a bit the preprocessor so we can use it to generate file dependencies. 2009-05-13 15:29:59 +02:00
Alessandro Portale
97b3e71d08 Rename qworkbenchlibrary.pri to qtcreatorlibrary.pri 2009-05-08 16:42:48 +02:00
Thorbjørn Lindeijer
cb75dd05ea Prevent endless loop when no matching brace is found
Would show up when typing ")," where the closing brace doesn't have a
matching opening brace, for example.

Done with Roberto Raggi.
2009-04-09 11:16:24 +02:00
Roberto Raggi
f3767148c0 Fixed: Possible crash when resolving fully qualified name ids.
Task: 249227
2009-04-06 16:49:58 +02:00
Roberto Raggi
68d8d83093 Simplified the code that looks for the identifier under the cursor. 2009-03-30 15:33:14 +02:00
Roberto Raggi
fde8ca4a16 Added Document::ParseDeclarator. 2009-03-30 15:08:21 +02:00
Thorbjørn Lindeijer
222b4faba8 Don't try to jump to unresolved included files
It popped up an error saying the file couldn't be found. Better not show
a link at all.
2009-03-26 18:21:11 +01:00
Thorbjørn Lindeijer
86e400c9dc Trigger function argument widget on comma
Done with Roberto Raggi.
2009-03-26 13:01:39 +01:00
Thorbjørn Lindeijer
84ba24ac71 Do not expand the list of candidates when resolving fully qualified ids
Crashes, Roberto will fix properly later.
2009-03-26 11:18:09 +01:00
Roberto Raggi
249aaa0ab6 Fixed the lookup of qualified name ids. 2009-03-25 12:29:15 +01:00
Roberto Raggi
424dd77e18 Added support for Q_SIGNAL and Q_SLOT. 2009-03-25 11:50:17 +01:00
Thorbjørn Lindeijer
b789ffa91b Added and corrected copyright headers 2009-03-20 14:59:12 +01:00
dt
f7240bd665 Fixes: bin dir of msvc qt versions was not added to the path
The setting of msvc environments variables overwrote that. Fix that by running the script with the correct environment.
2009-03-19 18:30:11 +01:00
Roberto Raggi
4613da1c8b Mark the generated tokens in the token stream. 2009-03-04 14:36:47 +01:00
Roberto Raggi
064201ff85 Mark the generated regions of text. 2009-03-04 14:36:47 +01:00
Roberto Raggi
e253f39360 Store the actual arguments of the macro expansions. 2009-03-04 11:47:30 +01:00
Roberto Raggi
5bbb882b3d Introduced expandBuiltinMacro(). 2009-03-03 17:23:12 +01:00
Roberto Raggi
ca7cc122cb Simplified Preprocessor::preprocess() 2009-03-03 17:06:42 +01:00
Roberto Raggi
7327a8ea4d Introduced skipActualArguments(). 2009-03-03 16:59:55 +01:00
Roberto Raggi
1d75990667 Introduced processObjectLikeMacro(). 2009-03-03 16:56:55 +01:00
Roberto Raggi
b316939dff Introduced expandObjectLikeMacro(). 2009-03-03 16:46:21 +01:00
Roberto Raggi
55d0e4f860 Improved the way we expand function-like macros when we can't collect all the arguments. 2009-03-03 16:32:08 +01:00
Roberto Raggi
656d70fa74 Introduced expandFunctionLikeMacro(). 2009-03-03 16:19:03 +01:00