projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25f6379
)
[clang-format][NFC] Rename variable so no shadowing happens
author
Björn Schäpers
<bjoern@hazardy.de>
Fri, 3 Dec 2021 07:25:23 +0000
(08:25 +0100)
committer
Bjö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
patch
|
blob
|
history
diff --git
a/clang/lib/Format/UnwrappedLineFormatter.cpp
b/clang/lib/Format/UnwrappedLineFormatter.cpp
index b9175c59216ba76e6f0ebd5376625a402734ba91..9753c24bfcdb10c20b922e2f95052bd606de2c25 100644
(file)
--- a/
clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/
clang/lib/Format/UnwrappedLineFormatter.cpp
@@
-1015,9
+1015,9
@@
private:
QueueType Queue;
// Insert start element into queue.
- StateNode *Node =
+ StateNode *
Root
Node =
new (Allocator.Allocate()) StateNode(InitialState, false, nullptr);
- Queue.push(QueueItem(OrderedPenalty(0, Count), Node));
+ Queue.push(QueueItem(OrderedPenalty(0, Count),
Root
Node));
++Count;
unsigned Penalty = 0;