SuccessChanges

Summary

  1. Fix Block::eraseArguments to properly update the cached positions (details)
  2. Fix Block::eraseArguments: keep track the first removed element while removing (details)
  3. Revert "[clang-itdy] Simplify virtual near-miss check" (details)
  4. [lld-macho] Implement options -rename_section -rename_segment (details)
  5. [clang-format] Fix AlignConsecutiveDeclarations handling of pointers (details)
Commit 7b06786de239a4ab7d53ee8ca0b2f5a9b15a871a by joker.eph
Fix Block::eraseArguments to properly update the cached positions

This is fixing correctness and ASAN failure post-ee90bb3486948.
The file was modifiedmlir/lib/IR/Block.cpp
Commit 014575932fc3acbb0f1c5b46ff2bfcebf69e6e62 by joker.eph
Fix Block::eraseArguments: keep track the first removed element while removing

Not only this is likely more efficient than BitVector::find_first(), but
also if the BitVector is empty find_first() returns -1, which
llvm::drop_begin isn't robust against.
The file was modifiedmlir/lib/IR/Block.cpp
Commit 415acb2c5994a95be739b908785ea8260baa18fd by steveire
Revert "[clang-itdy] Simplify virtual near-miss check"

This reverts commit 9a4b574dd6a07d6811356529ebb8a3f15d6e40a2.
The file was modifiedclang-tools-extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/bugprone-virtual-near-miss.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/VirtualNearMissCheck.h
Commit 6f9dd843db4096cb3a63ce55e3f144e52dcaa98e by gkm
[lld-macho] Implement options -rename_section -rename_segment

Implement command-line options to rename output sections & segments.

Differential Revision: https://reviews.llvm.org/D97600
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/MachO/Writer.cpp
The file was modifiedlld/MachO/Options.td
The file was modifiedlld/MachO/Config.h
The file was addedlld/test/MachO/rename.s
Commit e0b1df924ae06d6d88582334087d2eacc6702e8f by bjoern
[clang-format] Fix AlignConsecutiveDeclarations handling of pointers

This is a bug fix of https://bugs.llvm.org/show_bug.cgi?id=49175

The expected code format:

unsigned int*       a;
int*                b;
unsigned int Const* c;

The actual code after formatting (without this patch):

unsigned int* a;
int*          b;
unsigned int Const* c;

Differential Revision: https://reviews.llvm.org/D97137
The file was modifiedclang/lib/Format/WhitespaceManager.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp