[PATCH] D142439: Fix C++11 warnings in RangeSetTest.cpp

Philipp Tomsich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 24 01:26:52 PST 2023


philipp.tomsich created this revision.
Herald added a subscriber: steakhal.
Herald added a project: All.
philipp.tomsich requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This change fixes the following warnings:

     llvm/clang/unittests/StaticAnalyzer/RangeSetTest.cpp:727:55: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
       727 | TYPED_TEST_SUITE(RangeSetCastToNoopTest, NoopCastTypes);
  	 |                                                       ^
     llvm/clang/unittests/StaticAnalyzer/RangeSetTest.cpp:728:65: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
       728 | TYPED_TEST_SUITE(RangeSetCastToPromotionTest, PromotionCastTypes);
  	 |                                                                 ^
     llvm/clang/unittests/StaticAnalyzer/RangeSetTest.cpp:729:67: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
       729 | TYPED_TEST_SUITE(RangeSetCastToTruncationTest, TruncationCastTypes);
  	 |                                                                   ^
     llvm/clang/unittests/StaticAnalyzer/RangeSetTest.cpp:730:67: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
       730 | TYPED_TEST_SUITE(RangeSetCastToConversionTest, ConversionCastTypes);
  	 |                                                                   ^
     llvm/clang/unittests/StaticAnalyzer/RangeSetTest.cpp:732:46: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
       732 |                  PromotionConversionCastTypes);
  	 |                                              ^
     llvm/clang/unittests/StaticAnalyzer/RangeSetTest.cpp:734:47: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
       734 |                  TruncationConversionCastTypes);
  	 |                                               ^


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142439

Files:
  clang/unittests/StaticAnalyzer/RangeSetTest.cpp


Index: clang/unittests/StaticAnalyzer/RangeSetTest.cpp
===================================================================
--- clang/unittests/StaticAnalyzer/RangeSetTest.cpp
+++ clang/unittests/StaticAnalyzer/RangeSetTest.cpp
@@ -724,14 +724,14 @@
                      CastType<int64_t, uint8_t>, CastType<uint64_t, int32_t>,
                      CastType<uint64_t, int16_t>, CastType<uint64_t, int8_t>>;
 
-TYPED_TEST_SUITE(RangeSetCastToNoopTest, NoopCastTypes);
-TYPED_TEST_SUITE(RangeSetCastToPromotionTest, PromotionCastTypes);
-TYPED_TEST_SUITE(RangeSetCastToTruncationTest, TruncationCastTypes);
-TYPED_TEST_SUITE(RangeSetCastToConversionTest, ConversionCastTypes);
+TYPED_TEST_SUITE(RangeSetCastToNoopTest, NoopCastTypes, );
+TYPED_TEST_SUITE(RangeSetCastToPromotionTest, PromotionCastTypes, );
+TYPED_TEST_SUITE(RangeSetCastToTruncationTest, TruncationCastTypes, );
+TYPED_TEST_SUITE(RangeSetCastToConversionTest, ConversionCastTypes, );
 TYPED_TEST_SUITE(RangeSetCastToPromotionConversionTest,
-                 PromotionConversionCastTypes);
+                 PromotionConversionCastTypes, );
 TYPED_TEST_SUITE(RangeSetCastToTruncationConversionTest,
-                 TruncationConversionCastTypes);
+                 TruncationConversionCastTypes, );
 
 TYPED_TEST(RangeSetCastToNoopTest, RangeSetCastToNoopTest) {
   // Just to reduce the verbosity.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142439.491658.patch
Type: text/x-patch
Size: 1367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230124/507d33fb/attachment.bin>


More information about the cfe-commits mailing list