[clang-format][NFC] Rename variable so no shadowing happens
authorBjörn Schäpers <bjoern@hazardy.de>
Fri, 3 Dec 2021 07:25:23 +0000 (08:25 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Sat, 4 Dec 2021 20:29:29 +0000 (21:29 +0100)
In the loop there is also a Node.

Differential Revision: https://reviews.llvm.org/D115063

clang/lib/Format/UnwrappedLineFormatter.cpp

index b9175c59216ba76e6f0ebd5376625a402734ba91..9753c24bfcdb10c20b922e2f95052bd606de2c25 100644 (file)
@@ -1015,9 +1015,9 @@ private:
     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;