This revision was automatically updated to reflect the committed changes. Closed by commit rGe7fdeda2c9db: [clang-format][NFC] Rename variable so no shadowing happens (authored by HazardyKnusperkeks).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115063/new/ https://reviews.llvm.org/D115063 Files: clang/lib/Format/UnwrappedLineFormatter.cpp Index: clang/lib/Format/UnwrappedLineFormatter.cpp =================================================================== --- clang/lib/Format/UnwrappedLineFormatter.cpp +++ clang/lib/Format/UnwrappedLineFormatter.cpp @@ -1015,9 +1015,9 @@ 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;
Index: clang/lib/Format/UnwrappedLineFormatter.cpp =================================================================== --- clang/lib/Format/UnwrappedLineFormatter.cpp +++ clang/lib/Format/UnwrappedLineFormatter.cpp @@ -1015,9 +1015,9 @@ 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;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits