Skip to content

Commit 18b58d4

Browse files
authored
[clang-format] Rename variable more sensitively (#100943)
Renaming to `Disallowed`.
1 parent 5e32698 commit 18b58d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Format/UnwrappedLineParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,7 +2554,7 @@ bool UnwrappedLineParser::parseParens(TokenType AmpAmpTokenType) {
25542554
const bool DoubleParens =
25552555
Prev && Prev->is(tok::l_paren) && Next && Next->is(tok::r_paren);
25562556
const auto *PrevPrev = Prev ? Prev->getPreviousNonComment() : nullptr;
2557-
const bool Blacklisted =
2557+
const bool Disallowed =
25582558
PrevPrev &&
25592559
(PrevPrev->isOneOf(tok::kw___attribute, tok::kw_decltype) ||
25602560
(SeenEqual &&
@@ -2566,7 +2566,7 @@ bool UnwrappedLineParser::parseParens(TokenType AmpAmpTokenType) {
25662566
(!NestedLambdas.empty() && !NestedLambdas.back())) &&
25672567
Prev && Prev->isOneOf(tok::kw_return, tok::kw_co_return) && Next &&
25682568
Next->is(tok::semi);
2569-
if ((DoubleParens && !Blacklisted) || ReturnParens) {
2569+
if ((DoubleParens && !Disallowed) || ReturnParens) {
25702570
LeftParen->Optional = true;
25712571
FormatTok->Optional = true;
25722572
}

0 commit comments

Comments
 (0)