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
6d6e18aa
Commit
6d6e18aa
authored
May 11, 2010
by
Roberto Raggi
Browse files
Renamed switchCurrentEntity()
parent
9af0e070
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/LookupContext.cpp
View file @
6d6e18aa
...
...
@@ -657,7 +657,7 @@ CreateBindings::~CreateBindings()
delete
_control
;
}
ClassOrNamespace
*
CreateBindings
::
switchCurrent
Entity
(
ClassOrNamespace
*
classOrNamespace
)
ClassOrNamespace
*
CreateBindings
::
switchCurrent
ClassOrNamespace
(
ClassOrNamespace
*
classOrNamespace
)
{
ClassOrNamespace
*
previous
=
_currentClassOrNamespace
;
_currentClassOrNamespace
=
classOrNamespace
;
...
...
@@ -693,9 +693,9 @@ ClassOrNamespace *CreateBindings::findClassOrNamespace(const QList<const Name *>
void
CreateBindings
::
process
(
Symbol
*
s
,
ClassOrNamespace
*
classOrNamespace
)
{
ClassOrNamespace
*
previous
=
switchCurrent
Entity
(
classOrNamespace
);
ClassOrNamespace
*
previous
=
switchCurrent
ClassOrNamespace
(
classOrNamespace
);
accept
(
s
);
(
void
)
switchCurrent
Entity
(
previous
);
(
void
)
switchCurrent
ClassOrNamespace
(
previous
);
}
void
CreateBindings
::
process
(
Symbol
*
symbol
)
...
...
@@ -743,7 +743,7 @@ ClassOrNamespace *CreateBindings::enterEntity(Symbol *symbol)
ClassOrNamespace
*
entity
=
_currentClassOrNamespace
->
findOrCreate
(
symbol
->
name
());
entity
->
addSymbol
(
symbol
);
return
switchCurrent
Entity
(
entity
);
return
switchCurrent
ClassOrNamespace
(
entity
);
}
ClassOrNamespace
*
CreateBindings
::
enterGlobalEntity
(
Symbol
*
symbol
)
...
...
@@ -751,7 +751,7 @@ ClassOrNamespace *CreateBindings::enterGlobalEntity(Symbol *symbol)
ClassOrNamespace
*
entity
=
_globalNamespace
->
findOrCreate
(
symbol
->
name
());
entity
->
addSymbol
(
symbol
);
return
switchCurrent
Entity
(
entity
);
return
switchCurrent
ClassOrNamespace
(
entity
);
}
bool
CreateBindings
::
visit
(
Namespace
*
ns
)
...
...
src/libs/cplusplus/LookupContext.h
View file @
6d6e18aa
...
...
@@ -121,22 +121,22 @@ public:
ClassOrNamespace
*
findClassOrNamespace
(
const
QList
<
const
Name
*>
&
path
);
/// \internal
void
process
(
Symbol
*
s
,
ClassOrNamespace
*
classOrNamespace
)
;
Control
*
control
()
const
;
/// \internal
ClassOrNamespace
*
allocClassOrNamespace
(
ClassOrNamespace
*
parent
);
void
lookupInScope
(
const
Name
*
name
,
Scope
*
scope
,
QList
<
Symbol
*>
*
result
,
const
TemplateNameId
*
templateId
);
/// \internal
Control
*
control
()
const
;
void
process
(
Symbol
*
s
,
ClassOrNamespace
*
classOrNamespace
)
;
/// \internal
void
lookupInScope
(
const
Name
*
name
,
Scope
*
scope
,
QList
<
Symbol
*>
*
result
,
const
TemplateNameId
*
templateId
);
ClassOrNamespace
*
allocClassOrNamespace
(
ClassOrNamespace
*
parent
);
protected:
using
SymbolVisitor
::
visit
;
ClassOrNamespace
*
switchCurrent
Entity
(
ClassOrNamespace
*
classOrNamespace
);
ClassOrNamespace
*
switchCurrent
ClassOrNamespace
(
ClassOrNamespace
*
classOrNamespace
);
ClassOrNamespace
*
enterEntity
(
Symbol
*
symbol
);
ClassOrNamespace
*
enterGlobalEntity
(
Symbol
*
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