[C++11] Remove 'virtual' keyword from methods marked with 'override' keyword.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2014-03-10 03:53:12 +00:00
parent 292fcee823
commit 49e139b7f7
14 changed files with 62 additions and 67 deletions

View File

@@ -162,12 +162,12 @@ class DeltaActiveSetHelper : public DeltaAlgorithm {
protected:
/// UpdatedSearchState - Callback used when the search state changes.
virtual void UpdatedSearchState(const changeset_ty &Changes,
void UpdatedSearchState(const changeset_ty &Changes,
const changesetlist_ty &Sets) override {
DDAI.UpdatedSearchState(Changes, Sets, Required);
}
virtual bool ExecuteOneTest(const changeset_ty &S) override {
bool ExecuteOneTest(const changeset_ty &S) override {
return DDAI.GetTestResult(S, Required);
}

View File

@@ -58,7 +58,7 @@ public:
virtual ~DataFileStreamer() {
close(Fd);
}
virtual size_t GetBytes(unsigned char *buf, size_t len) override {
size_t GetBytes(unsigned char *buf, size_t len) override {
NumStreamFetches++;
return read(Fd, buf, len);
}

View File

@@ -91,12 +91,12 @@ public:
init(InputData.begin(), InputData.end(), RequiresNullTerminator);
}
virtual const char *getBufferIdentifier() const override {
const char *getBufferIdentifier() const override {
// The name is stored after the class itself.
return reinterpret_cast<const char*>(this + 1);
}
virtual BufferKind getBufferKind() const override {
BufferKind getBufferKind() const override {
return MemoryBuffer_Malloc;
}
};
@@ -217,12 +217,12 @@ public:
}
}
virtual const char *getBufferIdentifier() const override {
const char *getBufferIdentifier() const override {
// The name is stored after the class itself.
return reinterpret_cast<const char *>(this + 1);
}
virtual BufferKind getBufferKind() const override {
BufferKind getBufferKind() const override {
return MemoryBuffer_MMap;
}
};

View File

@@ -25,20 +25,18 @@ public:
assert(LastChar >= FirstChar && "Invalid start/end range");
}
virtual uint64_t getBase() const override { return 0; }
virtual uint64_t getExtent() const override {
uint64_t getBase() const override { return 0; }
uint64_t getExtent() const override {
return LastChar - FirstChar;
}
virtual int readByte(uint64_t address, uint8_t* ptr) const override;
virtual int readBytes(uint64_t address,
uint64_t size,
uint8_t *buf) const override;
virtual const uint8_t *getPointer(uint64_t address,
uint64_t size) const override;
virtual bool isValidAddress(uint64_t address) const override {
int readByte(uint64_t address, uint8_t* ptr) const override;
int readBytes(uint64_t address, uint64_t size,
uint8_t *buf) const override;
const uint8_t *getPointer(uint64_t address, uint64_t size) const override;
bool isValidAddress(uint64_t address) const override {
return validAddress(address);
}
virtual bool isObjectEnd(uint64_t address) const override {
bool isObjectEnd(uint64_t address) const override {
return objectEnd(address);
}

View File

@@ -48,8 +48,8 @@ _do_message::message(int ev) const {
class _generic_error_category : public _do_message {
public:
virtual const char* name() const override;
virtual std::string message(int ev) const override;
const char* name() const override;
std::string message(int ev) const override;
};
const char*
@@ -74,9 +74,9 @@ generic_category() {
class _system_error_category : public _do_message {
public:
virtual const char* name() const override;
virtual std::string message(int ev) const override;
virtual error_condition default_error_condition(int ev) const override;
const char* name() const override;
std::string message(int ev) const override;
error_condition default_error_condition(int ev) const override;
};
const char*