diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-08-18 22:54:20 +0300 |
---|---|---|
committer | Kevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com> | 2020-09-01 09:37:03 +0300 |
commit | 0909f00a8bd978c8308427418c2e949b8971507e (patch) | |
tree | 67f4c60248ccfc2fd7b7e7bd0671e0b2df2a5364 | |
parent | 80cc196f6fa9973b372164f0404463f10e498e07 (diff) |
Enable bugprone-too-small-loop-variable clang-tidy check
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | test/benchmarks/benchlargesync.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index 9aa0cb88c..302f6a3ce 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,6 +4,7 @@ Checks: '-*, bugprone-forward-declaration-namespace, bugprone-macro-parentheses, bugprone-narrowing-conversions, + bugprone-too-small-loop-variable, cppcoreguidelines-init-variables, misc-*, -misc-non-private-member-variables-in-classes, diff --git a/test/benchmarks/benchlargesync.cpp b/test/benchmarks/benchlargesync.cpp index 9e78b9d5c..184c0a77d 100644 --- a/test/benchmarks/benchlargesync.cpp +++ b/test/benchmarks/benchlargesync.cpp @@ -22,7 +22,7 @@ void addBunchOfFiles(int depth, const QString &path, FileModifier &fi) { } if (depth >= maxDepth) return; - for (char dirNum = 1; dirNum <= dirPerDir; ++dirNum) { + for (int dirNum = 1; dirNum <= dirPerDir; ++dirNum) { QString name = QStringLiteral("dir") + QString::number(dirNum); QString subPath = path.isEmpty() ? name : path + "/" + name; fi.mkdir(subPath); |