[cfe-commits] r111087 - in /cfe/trunk/lib: AST/RecordLayoutBuilder.cpp Frontend/VerifyDiagnosticsClient.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sat Aug 14 18:15:27 PDT 2010
Author: akirtzidis
Date: Sat Aug 14 20:15:27 2010
New Revision: 111087
URL: http://llvm.org/viewvc/llvm-project?rev=111087&view=rev
Log:
Add ATTRIBUTE_UNUSED to methods not supposed to be used.
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=111087&r1=111086&r2=111087&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Sat Aug 14 20:15:27 2010
@@ -660,8 +660,9 @@
void UpdateAlignment(unsigned NewAlignment);
- RecordLayoutBuilder(const RecordLayoutBuilder&); // DO NOT IMPLEMENT
- void operator=(const RecordLayoutBuilder&); // DO NOT IMPLEMENT
+ // DO NOT IMPLEMENT
+ RecordLayoutBuilder(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED;
+ void operator=(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED;
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=111087&r1=111086&r2=111087&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp (original)
+++ cfe/trunk/lib/Frontend/VerifyDiagnosticsClient.cpp Sat Aug 14 20:15:27 2010
@@ -18,6 +18,7 @@
#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,
@@ -100,8 +101,8 @@
: Location(Location), Text(Text), Count(Count) { }
private:
- Directive(const Directive&); // DO NOT IMPLEMENT
- void operator=(const Directive&); // DO NOT IMPLEMENT
+ Directive(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
+ void operator=(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
};
/// StandardDirective - Directive with string matching.
More information about the cfe-commits
mailing list