SuccessChanges

Summary

  1. [llvm] Add assertions for the smart pointers with the possibility to be null in DWARFLinker::loadClangModule (details)
  2. [clang-tidy] Handle uninstantiated templates in redundant get check (details)
  3. [clang-tidy] Simplify shrink to fit check (details)
  4. [clang-tidy] Simplify default member init check (details)
  5. [clang-tidy] Simplify redundant member init check (details)
  6. [clang-tidy] Simplify suspicious enum usage check (details)
  7. [clang-tidy] Simplify redundant branch condition check (details)
  8. [clang-tidy] Simplify special member functions check (details)
  9. [clang-tidy] Simplify boolean expr check (details)
  10. [clang-tidy] Simplify suspicious memset usage check (details)
Commit df6fb4d392e530fbf9d4e331711c500d47980dcc by a.v.lapshin
[llvm] Add assertions for the smart pointers with the possibility to be null in DWARFLinker::loadClangModule

Split from D91844.

The local variable `Unit` in function `DWARFLinker::loadClangModule`
in file `llvm/lib/DWARFLinker/DWARFLinker.cpp`. If the variable is not set
in the loop below its definition, it will trigger a null pointer dereference
after the loop.

Patch By: OikawaKirie

Reviewed By: avl

Differential Revision: https://reviews.llvm.org/D97185
The file was modifiedllvm/lib/DWARFLinker/DWARFLinker.cpp
Commit a5e3d87f66a1b833594f121fbd8c7334df5a1eeb by steveire
[clang-tidy] Handle uninstantiated templates in redundant get check

Differential Revision: https://reviews.llvm.org/D96222
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.h
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/readability-redundant-smartptr-get.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
Commit 296c6e85c19b7fc224109fe43af2fd9ed1d3d510 by steveire
[clang-tidy] Simplify shrink to fit check

Differential Revision: https://reviews.llvm.org/D97144
The file was modifiedclang-tools-extra/clang-tidy/modernize/ShrinkToFitCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ShrinkToFitCheck.h
Commit 9ba557cc0370ee5fa93dca04a20bd2b05bf19f45 by steveire
[clang-tidy] Simplify default member init check

Differential Revision: https://reviews.llvm.org/D97145
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.h
Commit 35763baf9aa927c2e8fc0a4af484c51391ecc30c by steveire
[clang-tidy] Simplify redundant member init check

Differential Revision: https://reviews.llvm.org/D97147
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.h
Commit df42f9950d5e4aaea2038581188ed9d786d09213 by steveire
[clang-tidy] Simplify suspicious enum usage check

Differential Revision: https://reviews.llvm.org/D97149
The file was modifiedclang-tools-extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
Commit a5feefa3c72e67ea94b50addf8f0975dae9a9696 by steveire
[clang-tidy] Simplify redundant branch condition check

Differential Revision: https://reviews.llvm.org/D97151
The file was modifiedclang-tools-extra/clang-tidy/bugprone/RedundantBranchConditionCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/RedundantBranchConditionCheck.h
Commit b672870886643a99dd74f3114995f2a091eab813 by steveire
[clang-tidy] Simplify special member functions check

Differential Revision: https://reviews.llvm.org/D97152
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp
Commit 302cc8421ee4ac1cf910dd6cd3306c6eae8d0d3e by steveire
[clang-tidy] Simplify boolean expr check

Differential Revision: https://reviews.llvm.org/D97153
The file was modifiedclang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.h
Commit 42ce00ec3947de89c1cda0138fe6adffeeeeace3 by steveire
[clang-tidy] Simplify suspicious memset usage check

Differential Revision: https://reviews.llvm.org/D97150
The file was modifiedclang-tools-extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp