[clang-tools-extra] 95320b5 - [clang-tidy][NFC] Fix modernize-loop-convert findings
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 01:53:35 PDT 2023
Author: Piotr Zegar
Date: 2023-08-27T08:52:09Z
New Revision: 95320b5ff7a8a66c1ce97da2f9c791082d732386
URL: https://github.com/llvm/llvm-project/commit/95320b5ff7a8a66c1ce97da2f9c791082d732386
DIFF: https://github.com/llvm/llvm-project/commit/95320b5ff7a8a66c1ce97da2f9c791082d732386.diff
LOG: [clang-tidy][NFC] Fix modernize-loop-convert findings
Fix issues found by clang-tidy in clang-tidy source directory.
Added:
Modified:
clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
index 598a9ae4433ce1..4628c09f196996 100644
--- a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
@@ -364,9 +364,7 @@ static void addFunctionCallArgs(ArrayRef<BindArgument> Args,
llvm::raw_ostream &Stream) {
StringRef Delimiter = "";
- for (int I = 0, Size = Args.size(); I < Size; ++I) {
- const BindArgument &B = Args[I];
-
+ for (const BindArgument &B : Args) {
Stream << Delimiter;
if (B.Kind == BK_Placeholder) {
More information about the cfe-commits
mailing list