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
d1e84135
Commit
d1e84135
authored
Dec 03, 2008
by
hjk
Browse files
Merge branch '0.9.1-beta' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.1-beta
parents
58d89c46
e689a173
Changes
1
Show whitespace changes
Inline
Side-by-side
shared/cplusplus/CheckDeclaration.cpp
View file @
d1e84135
...
@@ -236,13 +236,21 @@ bool CheckDeclaration::visit(FunctionDefinitionAST *ast)
...
@@ -236,13 +236,21 @@ bool CheckDeclaration::visit(FunctionDefinitionAST *ast)
_scope
->
enterSymbol
(
fun
);
_scope
->
enterSymbol
(
fun
);
if
(
ast
->
ctor_initializer
&&
(
ty
.
isValid
()
||
(
fun
->
identity
()
&&
!
fun
->
identity
()
->
isNameId
())))
{
if
(
ast
->
ctor_initializer
)
{
bool
looksLikeCtor
=
false
;
if
(
ty
.
isValid
()
||
!
fun
->
identity
())
looksLikeCtor
=
false
;
else
if
(
fun
->
identity
()
->
isNameId
()
||
fun
->
identity
()
->
isTemplateNameId
())
looksLikeCtor
=
true
;
if
(
!
looksLikeCtor
)
{
translationUnit
()
->
error
(
ast
->
ctor_initializer
->
firstToken
(),
translationUnit
()
->
error
(
ast
->
ctor_initializer
->
firstToken
(),
"only constructors take base initializers"
);
"only constructors take base initializers"
);
}
}
}
int
previousVisibility
=
semantic
()
->
switchVisibility
(
Symbol
::
Public
);
const
int
previousVisibility
=
semantic
()
->
switchVisibility
(
Symbol
::
Public
);
int
previousMethodKey
=
semantic
()
->
switchMethodKey
(
Function
::
NormalMethod
);
const
int
previousMethodKey
=
semantic
()
->
switchMethodKey
(
Function
::
NormalMethod
);
semantic
()
->
check
(
ast
->
function_body
,
fun
->
members
());
semantic
()
->
check
(
ast
->
function_body
,
fun
->
members
());
...
...
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