@@ -2960,32 +2960,34 @@ OMPClause *Parser::ParseOpenMPUsesAllocatorClause(OpenMPDirectiveKind DKind) {
2960
2960
SmallVector<SemaOpenMP::UsesAllocatorsData, 4 > Data;
2961
2961
do {
2962
2962
// Parse 'traits(expr) : Allocator' for >=5.2
2963
- if (getLangOpts ().OpenMP >= 52 &&
2964
- Tok.is (tok::identifier) &&
2963
+ if (getLangOpts ().OpenMP >= 52 && Tok.is (tok::identifier) &&
2965
2964
Tok.getIdentifierInfo ()->getName () == " traits" ) {
2966
2965
2967
2966
SemaOpenMP::UsesAllocatorsData &D = Data.emplace_back ();
2968
2967
2969
2968
ConsumeToken ();
2970
2969
2971
2970
// Parse '(' <expr> ')'
2972
- BalancedDelimiterTracker TraitParens (*this , tok::l_paren, tok::annot_pragma_openmp_end);
2971
+ BalancedDelimiterTracker TraitParens (*this , tok::l_paren,
2972
+ tok::annot_pragma_openmp_end);
2973
2973
TraitParens.consumeOpen ();
2974
2974
ExprResult AllocatorTraits =
2975
2975
getLangOpts ().CPlusPlus ? ParseCXXIdExpression () : ParseExpression ();
2976
2976
TraitParens.consumeClose ();
2977
2977
2978
2978
if (AllocatorTraits.isInvalid ()) {
2979
- SkipUntil ({tok::comma, tok::semi, tok::r_paren, tok::annot_pragma_openmp_end},
2980
- StopBeforeMatch);
2979
+ SkipUntil (
2980
+ {tok::comma, tok::semi, tok::r_paren, tok::annot_pragma_openmp_end},
2981
+ StopBeforeMatch);
2981
2982
break ;
2982
2983
}
2983
2984
2984
2985
// Expect ':'
2985
2986
if (Tok.isNot (tok::colon)) {
2986
2987
Diag (Tok, diag::err_expected) << tok::colon;
2987
- SkipUntil ({tok::comma, tok::semi, tok::r_paren, tok::annot_pragma_openmp_end},
2988
- StopBeforeMatch);
2988
+ SkipUntil (
2989
+ {tok::comma, tok::semi, tok::r_paren, tok::annot_pragma_openmp_end},
2990
+ StopBeforeMatch);
2989
2991
continue ;
2990
2992
}
2991
2993
ConsumeToken ();
@@ -2995,11 +2997,13 @@ OMPClause *Parser::ParseOpenMPUsesAllocatorClause(OpenMPDirectiveKind DKind) {
2995
2997
ExprResult AllocatorExpr =
2996
2998
getLangOpts ().CPlusPlus
2997
2999
? ParseCXXIdExpression ()
2998
- : tryParseCXXIdExpression (SS, /* isAddressOfOperand=*/ false , Replacement);
3000
+ : tryParseCXXIdExpression (SS, /* isAddressOfOperand=*/ false ,
3001
+ Replacement);
2999
3002
3000
3003
if (AllocatorExpr.isInvalid ()) {
3001
- SkipUntil ({tok::comma, tok::semi, tok::r_paren, tok::annot_pragma_openmp_end},
3002
- StopBeforeMatch);
3004
+ SkipUntil (
3005
+ {tok::comma, tok::semi, tok::r_paren, tok::annot_pragma_openmp_end},
3006
+ StopBeforeMatch);
3003
3007
break ;
3004
3008
}
3005
3009
0 commit comments