зеркало из https://github.com/microsoft/clang-1.git
Build AST for default ctor-initializer when constructor has
out of line definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
9b9f424329
Коммит
0849d38128
|
@ -171,9 +171,8 @@ void Parser::ParseLexedMethodDefs(ParsingClass &Class) {
|
|||
}
|
||||
if (Tok.is(tok::colon))
|
||||
ParseConstructorInitializer(LM.D);
|
||||
else {
|
||||
else
|
||||
Actions.ActOnDefaultInitializers(LM.D);
|
||||
}
|
||||
|
||||
// FIXME: What if ParseConstructorInitializer doesn't leave us with a '{'??
|
||||
ParseFunctionStatementBody(LM.D);
|
||||
|
|
|
@ -665,6 +665,8 @@ Parser::DeclPtrTy Parser::ParseFunctionDefinition(Declarator &D,
|
|||
// ctor-initializer.
|
||||
if (Tok.is(tok::colon))
|
||||
ParseConstructorInitializer(Res);
|
||||
else
|
||||
Actions.ActOnDefaultInitializers(Res);
|
||||
|
||||
return ParseFunctionStatementBody(Res);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче