Add ATTRIBUTE_UNUSED to methods not supposed to be used.

llvm-svn: 111087
This commit is contained in:
Argyrios Kyrtzidis 2010-08-15 01:15:27 +00:00
parent 1b30d9c0f0
commit 0a33cb62a6
2 changed files with 6 additions and 4 deletions

View File

@ -660,8 +660,9 @@ class RecordLayoutBuilder {
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);
};

View File

@ -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 @@ protected:
: 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.