Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
573b33d7
Commit
573b33d7
authored
Mar 25, 2009
by
Roberto Raggi
Browse files
Jump at the matching class declaration.
parent
ad5a0010
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
573b33d7
...
...
@@ -646,8 +646,20 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
typeOfExpression
(
expression
,
doc
,
lastSymbol
);
if
(
!
resolvedSymbols
.
isEmpty
())
{
Symbol
*
symbol
=
resolvedSymbols
.
first
().
second
;
if
(
symbol
)
{
TypeOfExpression
::
Result
result
=
resolvedSymbols
.
first
();
if
(
result
.
first
->
isForwardClassDeclarationType
())
{
while
(
!
resolvedSymbols
.
isEmpty
())
{
TypeOfExpression
::
Result
r
=
resolvedSymbols
.
takeFirst
();
if
(
!
r
.
first
->
isForwardClassDeclarationType
())
{
result
=
r
;
break
;
}
}
}
if
(
Symbol
*
symbol
=
result
.
second
)
{
Symbol
*
def
=
0
;
if
(
lookupDefinition
&&
!
lastSymbol
->
isFunction
())
def
=
findDefinition
(
symbol
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment