[llvm] d79bb30 - [NFC] Add trailing comma on TYPED_TEST_SUITE

Alexandre Rames via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 14 10:00:05 PDT 2021


Author: Alexandre Rames
Date: 2021-09-14T09:56:57-07:00
New Revision: d79bb30dbb08910816859ccaae1ca5d04fbd9501

URL: https://github.com/llvm/llvm-project/commit/d79bb30dbb08910816859ccaae1ca5d04fbd9501
DIFF: https://github.com/llvm/llvm-project/commit/d79bb30dbb08910816859ccaae1ca5d04fbd9501.diff

LOG: [NFC] Add trailing comma on TYPED_TEST_SUITE

This avoids a -pedantic warning:
warning: ISO C++11 requires at least one argument for the "..." in a variadic macro

See also https://github.com/google/googletest/issues/2271

Added: 
    

Modified: 
    llvm/unittests/Support/HashBuilderTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/HashBuilderTest.cpp b/llvm/unittests/Support/HashBuilderTest.cpp
index 48e25558f0781..d644107bbcf18 100644
--- a/llvm/unittests/Support/HashBuilderTest.cpp
+++ b/llvm/unittests/Support/HashBuilderTest.cpp
@@ -37,7 +37,7 @@ using HasherTAndEndiannessToTest =
                      HasherTAndEndianness<llvm::SHA256, llvm::support::little>,
                      HasherTAndEndianness<llvm::SHA256, llvm::support::native>>;
 template <typename HasherT> class HashBuilderTest : public testing::Test {};
-TYPED_TEST_SUITE(HashBuilderTest, HasherTAndEndiannessToTest);
+TYPED_TEST_SUITE(HashBuilderTest, HasherTAndEndiannessToTest, );
 
 template <typename HasherTAndEndianness>
 using HashBuilder = llvm::HashBuilder<typename HasherTAndEndianness::HasherT,


        


More information about the llvm-commits mailing list