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
Marco Bubke
flatpak-qt-creator
Commits
9af0e070
Commit
9af0e070
authored
May 11, 2010
by
Roberto Raggi
Browse files
Renamed lookup_helper().
parent
fc357c31
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/LookupContext.cpp
View file @
9af0e070
...
...
@@ -199,7 +199,7 @@ QList<Symbol *> LookupContext::lookup(const Name *name, Scope *scope) const
for
(;
scope
;
scope
=
scope
->
enclosingScope
())
{
if
(
id
&&
scope
->
isBlockScope
())
{
bindings
()
->
lookup
_hel
pe
r
(
name
,
scope
,
&
candidates
,
/*templateId = */
0
);
bindings
()
->
lookup
InSco
pe
(
name
,
scope
,
&
candidates
,
/*templateId = */
0
);
if
(
!
candidates
.
isEmpty
())
break
;
// it's a local.
...
...
@@ -223,7 +223,7 @@ QList<Symbol *> LookupContext::lookup(const Name *name, Scope *scope) const
}
else
if
(
scope
->
isFunctionScope
())
{
Function
*
fun
=
scope
->
owner
()
->
asFunction
();
bindings
()
->
lookup
_hel
pe
r
(
name
,
fun
->
arguments
(),
&
candidates
,
/*templateId = */
0
);
bindings
()
->
lookup
InSco
pe
(
name
,
fun
->
arguments
(),
&
candidates
,
/*templateId = */
0
);
if
(
!
candidates
.
isEmpty
())
break
;
// it's a formal argument.
...
...
@@ -246,7 +246,7 @@ QList<Symbol *> LookupContext::lookup(const Name *name, Scope *scope) const
}
else
if
(
scope
->
isObjCMethodScope
())
{
ObjCMethod
*
method
=
scope
->
owner
()
->
asObjCMethod
();
bindings
()
->
lookup
_hel
pe
r
(
name
,
method
->
arguments
(),
&
candidates
,
/*templateId = */
0
);
bindings
()
->
lookup
InSco
pe
(
name
,
method
->
arguments
(),
&
candidates
,
/*templateId = */
0
);
if
(
!
candidates
.
isEmpty
())
break
;
// it's a formal argument.
...
...
@@ -356,11 +356,11 @@ void ClassOrNamespace::lookup_helper(const Name *name, ClassOrNamespace *binding
foreach
(
Symbol
*
s
,
binding
->
symbols
())
{
if
(
ScopedSymbol
*
scoped
=
s
->
asScopedSymbol
())
_factory
->
lookup
_hel
pe
r
(
name
,
scoped
->
members
(),
result
,
templateId
);
_factory
->
lookup
InSco
pe
(
name
,
scoped
->
members
(),
result
,
templateId
);
}
foreach
(
Enum
*
e
,
binding
->
enums
())
_factory
->
lookup
_hel
pe
r
(
name
,
e
->
members
(),
result
,
templateId
);
_factory
->
lookup
InSco
pe
(
name
,
e
->
members
(),
result
,
templateId
);
foreach
(
ClassOrNamespace
*
u
,
binding
->
usings
())
lookup_helper
(
name
,
u
,
result
,
processed
,
binding
->
_templateId
);
...
...
@@ -369,7 +369,7 @@ void ClassOrNamespace::lookup_helper(const Name *name, ClassOrNamespace *binding
}
}
void
CreateBindings
::
lookup
_hel
pe
r
(
const
Name
*
name
,
Scope
*
scope
,
void
CreateBindings
::
lookup
InSco
pe
(
const
Name
*
name
,
Scope
*
scope
,
QList
<
Symbol
*>
*
result
,
const
TemplateNameId
*
templateId
)
{
...
...
src/libs/cplusplus/LookupContext.h
View file @
9af0e070
...
...
@@ -130,7 +130,7 @@ public:
Control
*
control
()
const
;
/// \internal
void
lookup
_hel
pe
r
(
const
Name
*
name
,
Scope
*
scope
,
QList
<
Symbol
*>
*
result
,
void
lookup
InSco
pe
(
const
Name
*
name
,
Scope
*
scope
,
QList
<
Symbol
*>
*
result
,
const
TemplateNameId
*
templateId
);
protected:
...
...
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