[PATCH] D101214: Disable deprecated-copy warnings on various LLVM code to bring the bot back to green

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 25 12:42:14 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG504eee28fe0f: Disable deprecated-copy warnings on various LLVM code to bring the bot back to… (authored by nemanjai, committed by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D101214?vs=340209&id=340379#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101214/new/

https://reviews.llvm.org/D101214

Files:
  llvm/utils/unittest/googlemock/include/gmock/gmock.h


Index: llvm/utils/unittest/googlemock/include/gmock/gmock.h
===================================================================
--- llvm/utils/unittest/googlemock/include/gmock/gmock.h
+++ llvm/utils/unittest/googlemock/include/gmock/gmock.h
@@ -55,6 +55,11 @@
 //
 // where all clauses are optional and WillOnce() can be repeated.
 
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-copy"
+#endif
+
 #include "gmock/gmock-actions.h"
 #include "gmock/gmock-cardinalities.h"
 #include "gmock/gmock-generated-actions.h"
@@ -91,4 +96,7 @@
 
 }  // namespace testing
 
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
 #endif  // GMOCK_INCLUDE_GMOCK_GMOCK_H_


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101214.340379.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210425/baf0a3ff/attachment.bin>


More information about the llvm-commits mailing list