parent
087dc8b831
commit
05c680adb1
|
|
@ -1109,7 +1109,8 @@ static QualType ConvertDeclSpecToType(TypeProcessingState &state) {
|
||||||
S.Diag(DS.getConstSpecLoc(), diag::warn_typecheck_function_qualifiers)
|
S.Diag(DS.getConstSpecLoc(), diag::warn_typecheck_function_qualifiers)
|
||||||
<< Result << DS.getSourceRange();
|
<< Result << DS.getSourceRange();
|
||||||
else if (TypeQuals & DeclSpec::TQ_volatile)
|
else if (TypeQuals & DeclSpec::TQ_volatile)
|
||||||
S.Diag(DS.getVolatileSpecLoc(), diag::warn_typecheck_function_qualifiers)
|
S.Diag(DS.getVolatileSpecLoc(),
|
||||||
|
diag::warn_typecheck_function_qualifiers)
|
||||||
<< Result << DS.getSourceRange();
|
<< Result << DS.getSourceRange();
|
||||||
else {
|
else {
|
||||||
assert((TypeQuals & (DeclSpec::TQ_restrict | DeclSpec::TQ_atomic)) &&
|
assert((TypeQuals & (DeclSpec::TQ_restrict | DeclSpec::TQ_atomic)) &&
|
||||||
|
|
@ -3057,7 +3058,8 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ClsType.isNull())
|
if (!ClsType.isNull())
|
||||||
T = S.BuildMemberPointerType(T, ClsType, DeclType.Loc, D.getIdentifier());
|
T = S.BuildMemberPointerType(T, ClsType, DeclType.Loc,
|
||||||
|
D.getIdentifier());
|
||||||
if (T.isNull()) {
|
if (T.isNull()) {
|
||||||
T = Context.IntTy;
|
T = Context.IntTy;
|
||||||
D.setInvalidType(true);
|
D.setInvalidType(true);
|
||||||
|
|
@ -3247,7 +3249,8 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
|
||||||
case Declarator::TemplateTypeArgContext:
|
case Declarator::TemplateTypeArgContext:
|
||||||
// FIXME: We may want to allow parameter packs in block-literal contexts
|
// FIXME: We may want to allow parameter packs in block-literal contexts
|
||||||
// in the future.
|
// in the future.
|
||||||
S.Diag(D.getEllipsisLoc(), diag::err_ellipsis_in_declarator_not_parameter);
|
S.Diag(D.getEllipsisLoc(),
|
||||||
|
diag::err_ellipsis_in_declarator_not_parameter);
|
||||||
D.setEllipsisLoc(SourceLocation());
|
D.setEllipsisLoc(SourceLocation());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue