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
Tobias Hunger
qt-creator
Commits
d2a62b07
Commit
d2a62b07
authored
May 26, 2010
by
Roberto Raggi
Browse files
Create bindings for anonymous typedefs.
parent
1263babf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/LookupContext.cpp
View file @
d2a62b07
...
...
@@ -755,7 +755,7 @@ bool CreateBindings::visit(Enum *e)
bool
CreateBindings
::
visit
(
Declaration
*
decl
)
{
if
(
decl
->
isTypedef
())
{
const
FullySpecifiedType
ty
=
decl
->
type
();
FullySpecifiedType
ty
=
decl
->
type
();
const
Identifier
*
typedefId
=
decl
->
identifier
();
if
(
typedefId
&&
!
(
ty
.
isConst
()
||
ty
.
isVolatile
()))
{
...
...
@@ -766,6 +766,11 @@ bool CreateBindings::visit(Declaration *decl)
Overview
oo
;
qDebug
()
<<
"found entity not found for"
<<
oo
(
namedTy
->
name
());
}
}
else
if
(
Class
*
klass
=
ty
->
asClassType
())
{
if
(
const
NameId
*
nameId
=
decl
->
name
()
->
asNameId
())
{
ClassOrNamespace
*
binding
=
_currentClassOrNamespace
->
findOrCreateType
(
nameId
);
binding
->
addSymbol
(
klass
);
}
}
}
}
...
...
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