@@ -3695,22 +3695,22 @@ static void handleInitPriorityAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
36953695 D->addAttr (::new (S.Context ) InitPriorityAttr (S.Context , AL, prioritynum));
36963696}
36973697
3698- static void handleFlattenDeepAttr (Sema &S, Decl *D, const ParsedAttr &AL) {
3698+ static void handleFlattenDepthAttr (Sema &S, Decl *D, const ParsedAttr &AL) {
36993699 Expr *E = AL.getArgAsExpr (0 );
3700- uint32_t maxDepth ;
3701- if (!S.checkUInt32Argument (AL, E, maxDepth )) {
3700+ uint32_t depthHint ;
3701+ if (!S.checkUInt32Argument (AL, E, depthHint )) {
37023702 AL.setInvalid ();
37033703 return ;
37043704 }
37053705
3706- if (maxDepth == 0 ) {
3706+ if (depthHint == 0 ) {
37073707 S.Diag (AL.getLoc (), diag::err_attribute_argument_is_zero)
37083708 << AL << E->getSourceRange ();
37093709 AL.setInvalid ();
37103710 return ;
37113711 }
37123712
3713- D->addAttr (::new (S.Context ) FlattenDeepAttr (S.Context , AL, maxDepth ));
3713+ D->addAttr (::new (S.Context ) FlattenDepthAttr (S.Context , AL, depthHint ));
37143714}
37153715
37163716ErrorAttr *Sema::mergeErrorAttr (Decl *D, const AttributeCommonInfo &CI,
@@ -7254,8 +7254,8 @@ ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL,
72547254 case ParsedAttr::AT_Format:
72557255 handleFormatAttr (S, D, AL);
72567256 break ;
7257- case ParsedAttr::AT_FlattenDeep :
7258- handleFlattenDeepAttr (S, D, AL);
7257+ case ParsedAttr::AT_FlattenDepth :
7258+ handleFlattenDepthAttr (S, D, AL);
72597259 break ;
72607260 case ParsedAttr::AT_FormatMatches:
72617261 handleFormatMatchesAttr (S, D, AL);
0 commit comments