getDeclSpecContextFromDeclaratorContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152766
91177308-0d34-0410-b5e6-
96231b3b80d8
Declarator::TheContext Context,
AccessSpecifier AS,
Decl **OwnedType) {
- DeclSpecContext DSC = DSC_normal;
- if (Context == Declarator::TrailingReturnContext)
- DSC = DSC_trailing;
+ DeclSpecContext DSC = getDeclSpecContextFromDeclaratorContext(Context);
// Parse the common declaration-specifiers piece.
DeclSpec DS(AttrFactory);
return DSC_class;
if (Context == Declarator::FileContext)
return DSC_top_level;
+ if (Context == Declarator::TrailingReturnContext)
+ return DSC_trailing;
return DSC_normal;
}