[clang-tools-extra] 1596cc8 - [NFCI][clang-tidy] FunctionCognitiveComplexityCheck::check(): try to fix windows arm build bots
Roman Lebedev via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 3 06:02:56 PDT 2020
Author: Roman Lebedev
Date: 2020-10-03T16:02:19+03:00
New Revision: 1596cc83509342eb37dbfe6b95e906759afc6741
URL: https://github.com/llvm/llvm-project/commit/1596cc83509342eb37dbfe6b95e906759afc6741
DIFF: https://github.com/llvm/llvm-project/commit/1596cc83509342eb37dbfe6b95e906759afc6741.diff
LOG: [NFCI][clang-tidy] FunctionCognitiveComplexityCheck::check(): try to fix windows arm build bots
http://lab.llvm.org:8011/builders/llvm-clang-win-x-armv7l/builds/1482/steps/build-llvm-project/logs/stdio
http://lab.llvm.org:8011/builders/llvm-clang-win-x-aarch64/builds/3285/steps/build-llvm-project/logs/stdio
Added:
Modified:
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
index 548aec7543ac..96fe9a2e29a4 100644
--- a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
@@ -533,7 +533,7 @@ void FunctionCognitiveComplexityCheck::check(
// Increase, on the other hand, can be 0.
diag(Detail.Loc, Msgs[MsgId], DiagnosticIDs::Note)
- << Increase << Detail.Nesting << 1 + Detail.Nesting;
+ << (unsigned)Increase << (unsigned)Detail.Nesting << 1 + Detail.Nesting;
}
}
More information about the cfe-commits
mailing list