[clang-tools-extra] r284476 - Fix signed/unsigned comparison warnings
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 18 06:15:31 PDT 2016
Author: rksimon
Date: Tue Oct 18 08:15:31 2016
New Revision: 284476
URL: http://llvm.org/viewvc/llvm-project?rev=284476&view=rev
Log:
Fix signed/unsigned comparison warnings
Modified:
clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp
clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp
Modified: clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp?rev=284476&r1=284475&r2=284476&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/NamespaceAliaserTest.cpp Tue Oct 18 08:15:31 2016
@@ -51,7 +51,7 @@ private:
};
template <typename Check>
-std::string runChecker(StringRef Code, int ExpectedWarningCount) {
+std::string runChecker(StringRef Code, unsigned ExpectedWarningCount) {
std::map<StringRef, StringRef> AdditionalFileContents = {{"foo.h",
"namespace foo {\n"
"namespace bar {\n"
Modified: clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp?rev=284476&r1=284475&r2=284476&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/UsingInserterTest.cpp Tue Oct 18 08:15:31 2016
@@ -53,7 +53,7 @@ private:
};
template <typename Check>
-std::string runChecker(StringRef Code, int ExpectedWarningCount) {
+std::string runChecker(StringRef Code, unsigned ExpectedWarningCount) {
std::map<StringRef, StringRef> AdditionalFileContents = {{"foo.h",
"namespace foo {\n"
"namespace bar {\n"
More information about the cfe-commits
mailing list