Skip to content

Commit 44bd9b0

Browse files
committed
Add scope to clarify where PrintAsInParamType should be set NFC
Per review feedback.
1 parent 88efa46 commit 44bd9b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,8 +2588,10 @@ void PrintAST::printOneParameter(const ParamDecl *param, bool Curried,
25882588
}
25892589

25902590
// Set and restore in-parameter-position printing of types
2591-
llvm::SaveAndRestore<bool> savePrintParam(Options.PrintAsInParamType, true);
2592-
printTypeLoc(TheTypeLoc);
2591+
{
2592+
llvm::SaveAndRestore<bool> savePrintParam(Options.PrintAsInParamType, true);
2593+
printTypeLoc(TheTypeLoc);
2594+
}
25932595

25942596
if (param->isVariadic())
25952597
Printer << "...";

0 commit comments

Comments
 (0)