[cfe-commits] r111101 - in /cfe/trunk/lib: AST/RecordLayoutBuilder.cpp Frontend/VerifyDiagnosticsClient.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Sun Aug 15 03:17:39 PDT 2010


Author: akirtzidis
Date: Sun Aug 15 05:17:39 2010
New Revision: 111101

URL: http://llvm.org/viewvc/llvm-project?rev=111101&view=rev
Log:
Remove ATTRIBUTE_UNUSED from the common pattern of disallowing copying.

Modified:
    cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
    cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp

Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=111101&r1=111100&r2=111101&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Sun Aug 15 05:17:39 2010
@@ -660,9 +660,8 @@
 
   void UpdateAlignment(unsigned NewAlignment);
 
-  // DO NOT IMPLEMENT
-  RecordLayoutBuilder(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED;
-  void operator=(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED;
+  RecordLayoutBuilder(const RecordLayoutBuilder&);   // DO NOT IMPLEMENT
+  void operator=(const RecordLayoutBuilder&); // DO NOT IMPLEMENT
 public:
   static const CXXMethodDecl *ComputeKeyFunction(const CXXRecordDecl *RD);
 };

Modified: cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp?rev=111101&r1=111100&r2=111101&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp (original)
+++ cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp Sun Aug 15 05:17:39 2010
@@ -18,7 +18,6 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/Regex.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 
 VerifyDiagnosticsClient::VerifyDiagnosticsClient(Diagnostic &_Diags,
@@ -101,8 +100,8 @@
     : Location(Location), Text(Text), Count(Count) { }
 
 private:
-  Directive(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
-  void operator=(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
+  Directive(const Directive&); // DO NOT IMPLEMENT
+  void operator=(const Directive&); // DO NOT IMPLEMENT
 };
 
 /// StandardDirective - Directive with string matching.





More information about the cfe-commits mailing list