r185302 - Use LLVM_DELETED_FUNCTION on unimplemented copy constructor and assignment operator.

Craig Topper craig.topper at gmail.com
Sun Jun 30 21:07:34 PDT 2013


Author: ctopper
Date: Sun Jun 30 23:07:34 2013
New Revision: 185302

URL: http://llvm.org/viewvc/llvm-project?rev=185302&view=rev
Log:
Use LLVM_DELETED_FUNCTION on unimplemented copy constructor and assignment operator.

Modified:
    cfe/trunk/lib/Format/FormatToken.h

Modified: cfe/trunk/lib/Format/FormatToken.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/FormatToken.h?rev=185302&r1=185301&r2=185302&view=diff
==============================================================================
--- cfe/trunk/lib/Format/FormatToken.h (original)
+++ cfe/trunk/lib/Format/FormatToken.h Sun Jun 30 23:07:34 2013
@@ -270,8 +270,8 @@ struct FormatToken {
 
 private:
   // Disallow copying.
-  FormatToken(const FormatToken &);
-  void operator=(const FormatToken &);
+  FormatToken(const FormatToken &) LLVM_DELETED_FUNCTION;
+  void operator=(const FormatToken &) LLVM_DELETED_FUNCTION;
 };
 
 } // namespace format





More information about the cfe-commits mailing list