[PATCH] D96971: Allow but ignore `-Wreturn-std-move-in-c++11`

Adrian McCarthy via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 18 09:39:39 PST 2021


amccarth created this revision.
amccarth added reviewers: thakis, nullptr.cpp.
amccarth requested review of this revision.

This warning is no longer needed, but at least a few open source projects still build with this option (and `-Werror`).  Accepting but ignoring the option keeps these projects building.


https://reviews.llvm.org/D96971

Files:
  clang/include/clang/Basic/DiagnosticGroups.td


Index: clang/include/clang/Basic/DiagnosticGroups.td
===================================================================
--- clang/include/clang/Basic/DiagnosticGroups.td
+++ clang/include/clang/Basic/DiagnosticGroups.td
@@ -499,6 +499,7 @@
 def Padded : DiagGroup<"padded">;
 
 def PessimizingMove : DiagGroup<"pessimizing-move">;
+def : DiagGroup<"return-std-move-in-c++11">;
 def ReturnStdMove : DiagGroup<"return-std-move">;
 
 def PointerArith : DiagGroup<"pointer-arith">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96971.324679.patch
Type: text/x-patch
Size: 479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210218/e23c2857/attachment.bin>


More information about the cfe-commits mailing list