Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1302de08
Commit
1302de08
authored
May 14, 2010
by
Roberto Raggi
Browse files
Jump at the function's definition.
parent
5d13a206
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/ResolveExpression.cpp
View file @
1302de08
...
...
@@ -555,6 +555,7 @@ bool ResolveExpression::visit(MemberAccessAST *ast)
// The candidate types for the base expression are stored in
// _results.
const
QList
<
LookupItem
>
baseResults
=
_results
;
_results
.
clear
();
// Evaluate the expression-id that follows the access operator.
const
Name
*
memberName
=
0
;
...
...
src/plugins/cppeditor/cppeditor.cpp
View file @
1302de08
...
...
@@ -1427,7 +1427,7 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
TypeOfExpression
typeOfExpression
;
typeOfExpression
.
init
(
doc
,
snapshot
);
QList
<
LookupItem
>
resolvedSymbols
=
typeOfExpression
(
expression
,
scope
,
TypeOfExpression
::
Preprocess
);
const
QList
<
LookupItem
>
resolvedSymbols
=
typeOfExpression
(
expression
,
scope
,
TypeOfExpression
::
Preprocess
);
if
(
!
resolvedSymbols
.
isEmpty
())
{
const
LookupItem
result
=
skipForwardDeclarations
(
resolvedSymbols
);
...
...
@@ -1435,12 +1435,8 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
if
(
Symbol
*
symbol
=
result
.
declaration
())
{
Symbol
*
def
=
0
;
qWarning
()
<<
"find definition?"
;
#warning port me
#if 0
if (resolveTarget && !lastSymbol->isFunction())
if
(
resolveTarget
)
def
=
findDefinition
(
symbol
,
snapshot
);
#endif
link
=
linkToSymbol
(
def
?
def
:
symbol
);
link
.
begin
=
beginOfToken
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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