diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-02-20 18:46:41 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-02-20 18:46:41 +0000 |
| commit | e15a4f0a320e3c1248539511adee55a201e9ed2e (patch) | |
| tree | e74b63e38a51ec5611f79daf5df6b5a2d7102bdb /clang/lib/Format/UnwrappedLineParser.cpp | |
| parent | 4fdf604ba667503ae582304cebdd3df426778a6b (diff) | |
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
| -rw-r--r-- | clang/lib/Format/UnwrappedLineParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index b904e0e56d9e..573919798870 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -2515,7 +2515,7 @@ bool UnwrappedLineParser::parseParens(TokenType AmpAmpTokenType) { parseChildBlock(); break; case tok::r_paren: - if (!MightBeStmtExpr && + if (!MightBeStmtExpr && !Line->InMacroBody && Style.RemoveParentheses > FormatStyle::RPS_Leave) { const auto *Prev = LeftParen->Previous; const auto *Next = Tokens->peekNextToken(); |
