Erik Verbruggen
dea74862d3
Fixed the line retreival for find-usages.
...
Instead of using the pre-processed source, the original one is used.
This makes a difference when a macro is used in the line, where the pre-
processed source would have a "#gen true" token.
Task-number: QTCREATORBUG-3345
2011-01-17 14:47:20 +01:00
Erik Verbruggen
daafa533d6
Fix find-usages in template classes.
...
The problem was that the scope of the class declaration in a template-class
declaration is the template, not the scope in which that template is defined.
The scope-check was not taking this into account.
Task-number: QTCREATORBUG-3183
Reviewed-by: Roberto Raggi
2011-01-17 13:42:45 +01:00
con
d1023c7614
It's 2011 now.
...
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
con
04e32b0049
License headers.
2010-12-17 16:03:42 +01:00
Christian Kamm
7c2d3659e7
C++: Fix an infinite loop in reportResult.
...
Done-with: Roberto Raggi
2010-09-02 15:24:44 +02:00
Roberto Raggi
c12866a467
Merge CPlusPlus::NameId and CPlusPlus::Identifier.
2010-09-02 12:51:01 +02:00
Roberto Raggi
05f2fd6669
Renamed Symbol::scope() to Symbol::enclosingScope().
2010-08-26 16:16:22 +02:00
Roberto Raggi
688d382ad9
Some cleanup in the C++ AST.
2010-08-26 16:07:14 +02:00
Roberto Raggi
c5d48034bb
Compare the scope pointers for local scopes.
2010-08-26 13:38:07 +02:00
Roberto Raggi
9b1a92426e
Compare the instances when searching for the usages of a template parameter.
2010-08-12 12:51:54 +02:00
Roberto Raggi
8a32c41f6f
Removed TemplateArgumentList
2010-08-11 15:25:20 +02:00
Roberto Raggi
f3746289b9
Push the template-prototype scope.
2010-08-11 15:25:20 +02:00
Roberto Raggi
41b4af0501
Get rid of the prefix findOrInsert for the functions in CPlusPlus::Control.
2010-08-11 15:25:19 +02:00
Roberto Raggi
f74ba9daef
Introduced CPlusPlus::Template and process the template declarations.
2010-08-11 15:25:19 +02:00
Roberto Raggi
354b9712e4
Merged ScopedSymbol and Scope.
2010-08-11 15:25:18 +02:00
Roberto Raggi
98a62c19fe
Push the function scope as soon as we're done processing the core-declarator.
2010-08-10 15:54:31 +02:00
Roberto Raggi
0f301f8679
New implementation of CPlusPlus::FindUsages
2010-08-10 15:19:32 +02:00
Roberto Raggi
463f83630f
Speed up the comutation of the local members.
2010-08-06 11:35:00 +02:00
Roberto Raggi
5cdbf62d60
Simplified the lookup.
2010-08-05 15:02:59 +02:00
Roberto Raggi
ccf3244932
Check only NameId and TemplateNameId
2010-08-05 13:38:27 +02:00
Roberto Raggi
12ecb527ac
Simplified FindUsages.
2010-08-05 12:49:29 +02:00
Roberto Raggi
fff4203a46
Introduced helpers to rewrite types and names.
...
Done-with: Erik Verbruggen
2010-07-16 11:04:52 +02:00
Roberto Raggi
da817310c2
Get rid of PostfixExpressionAST and store the base expression together with the PostfixAST nodes.
2010-06-23 14:39:14 +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
1c078ec2a3
Ensure we keep the context around for as long as it is needed.
2010-05-31 12:37:15 +02:00
Roberto Raggi
653ca110fe
Removed DeprecatedLookupContext.
2010-05-26 15:56:12 +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
5058dd670a
Reuse TypeOfExpression.
2010-05-17 13:06:49 +02:00
Roberto Raggi
60f76c96e8
Improved LookupItem and get rid of some deprecated code.
2010-05-14 13:55:21 +02:00
Roberto Raggi
d9527680a9
Try to use the new LookupContext.
2010-05-05 16:36:46 +02:00
Roberto Raggi
32a84df5c0
Deprecated the current LookupContext.
2010-05-05 16:36:44 +02:00
Erik Verbruggen
48889e7574
Changed FindUsages to look into Q_PROPERTYs.
2010-03-12 11:32:43 +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
Erik Verbruggen
e609e9a701
Simplified ObjC selectors in the AST.
2010-02-23 17:43:52 +01:00
Roberto Raggi
75229edcf9
Process the formal arguments of inline methods when searching the usages of a symbol.
2010-02-11 10:18:05 +01:00
Erik Verbruggen
b58cb740e5
Changed ObjC message arguments to have SimpleName for the name part.
2010-02-08 09:34:51 +01:00
Roberto Raggi
bcfb9d2385
Removed stray & character.
2010-01-08 14:58:21 +01:00
Roberto Raggi
aae5b92125
Use mappedReduce when searching for the usages of a symbol.
2009-12-04 13:04:47 +01:00
Roberto Raggi
43df685c68
Removed useless arguments
2009-12-03 11:59:37 +01:00
Roberto Raggi
d5c2dedd8a
Save the usages.
2009-12-02 12:16:41 +01:00
Roberto Raggi
fade61a8a9
Use const literals.
2009-12-01 11:46:36 +01:00
Roberto Raggi
ecf40d2426
Get rid off QPair<FullySpecifiedType, Symbol *>. Use LookupItem intead.
2009-11-17 14:24:09 +01:00
Roberto Raggi
5d7def6d2a
Refactored the AST visitors.
...
Now, the ASTVisitor constructor takes a valid reference to a TranslationUnit.
2009-11-17 13:30:39 +01:00
Roberto Raggi
baffd97efb
Fixed parsing of ctor-initializers and added a manual test for the AST matchers
2009-11-13 12:38:18 +01:00
con
43bccb41ed
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/debugger/debuggermanager.h
src/plugins/qmleditor/qmleditorplugin.cpp
src/plugins/qt4projectmanager/qt4runconfiguration.cpp
2009-11-11 16:14:29 +01:00
Roberto Raggi
0ae2d96a9b
Fixed the AST field names.
2009-11-10 16:47:16 +01:00
Roberto Raggi
cdb1443219
Cleanup specifiers.
2009-11-10 16:20:13 +01:00
Roberto Raggi
4fc2ccf0c5
Cleanup ptr operators.
2009-11-10 16:20:13 +01:00