[clang] e7fdeda - [clang-format][NFC] Rename variable so no shadowing happens
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 4 12:30:11 PST 2021
Author: Björn Schäpers
Date: 2021-12-04T21:29:29+01:00
New Revision: e7fdeda2c9dbe545445335f060eb450d15577aec
URL: https://github.com/llvm/llvm-project/commit/e7fdeda2c9dbe545445335f060eb450d15577aec
DIFF: https://github.com/llvm/llvm-project/commit/e7fdeda2c9dbe545445335f060eb450d15577aec.diff
LOG: [clang-format][NFC] Rename variable so no shadowing happens
In the loop there is also a Node.
Differential Revision: https://reviews.llvm.org/D115063
Added:
Modified:
clang/lib/Format/UnwrappedLineFormatter.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp
index b9175c59216ba..9753c24bfcdb1 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -1015,9 +1015,9 @@ class OptimizingLineFormatter : public LineFormatter {
QueueType Queue;
// Insert start element into queue.
- StateNode *Node =
+ StateNode *RootNode =
new (Allocator.Allocate()) StateNode(InitialState, false, nullptr);
- Queue.push(QueueItem(OrderedPenalty(0, Count), Node));
+ Queue.push(QueueItem(OrderedPenalty(0, Count), RootNode));
++Count;
unsigned Penalty = 0;
More information about the cfe-commits
mailing list