forked from OSchip/llvm-project
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203537
This commit is contained in:
parent
cf91493176
commit
3164f33f8f
|
@ -1327,7 +1327,7 @@ public:
|
|||
class IgnoringDiagConsumer : public DiagnosticConsumer {
|
||||
virtual void anchor();
|
||||
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
|
||||
const Diagnostic &Info) {
|
||||
const Diagnostic &Info) override {
|
||||
// Just ignore it.
|
||||
}
|
||||
};
|
||||
|
@ -1343,11 +1343,11 @@ public:
|
|||
|
||||
virtual ~ForwardingDiagnosticConsumer();
|
||||
|
||||
virtual void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
|
||||
const Diagnostic &Info);
|
||||
virtual void clear();
|
||||
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
|
||||
const Diagnostic &Info) override;
|
||||
void clear() override;
|
||||
|
||||
virtual bool IncludeInDiagnosticCounts() const;
|
||||
bool IncludeInDiagnosticCounts() const override;
|
||||
};
|
||||
|
||||
// Struct used for sending info about how a type should be printed.
|
||||
|
|
|
@ -113,8 +113,8 @@ public:
|
|||
iterator begin() const { return StatCalls.begin(); }
|
||||
iterator end() const { return StatCalls.end(); }
|
||||
|
||||
virtual LookupResult getStat(const char *Path, FileData &Data, bool isFile,
|
||||
vfs::File **F, vfs::FileSystem &FS);
|
||||
LookupResult getStat(const char *Path, FileData &Data, bool isFile,
|
||||
vfs::File **F, vfs::FileSystem &FS) override;
|
||||
};
|
||||
|
||||
} // end namespace clang
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace clang {
|
|||
public:
|
||||
PrettyStackTraceLoc(SourceManager &sm, SourceLocation L, const char *Msg)
|
||||
: SM(sm), Loc(L), Message(Msg) {}
|
||||
virtual void print(raw_ostream &OS) const;
|
||||
void print(raw_ostream &OS) const override;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace {
|
|||
class EmptyLookupIterator : public IdentifierIterator
|
||||
{
|
||||
public:
|
||||
virtual StringRef Next() { return StringRef(); }
|
||||
StringRef Next() override { return StringRef(); }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -488,7 +488,7 @@ namespace {
|
|||
<< " " << getLowerName() << "Expr->printPretty(OS, 0, Policy);\n"
|
||||
<< " OS << \"";
|
||||
}
|
||||
void writeDump(raw_ostream &OS) const {
|
||||
void writeDump(raw_ostream &OS) const override {
|
||||
}
|
||||
void writeDumpChildren(raw_ostream &OS) const override {
|
||||
OS << " if (SA->is" << getUpperName() << "Expr()) {\n";
|
||||
|
@ -869,7 +869,7 @@ namespace {
|
|||
OS << " }\n";
|
||||
}
|
||||
|
||||
void writeDump(raw_ostream &OS) const {}
|
||||
void writeDump(raw_ostream &OS) const override {}
|
||||
|
||||
void writeDumpChildren(raw_ostream &OS) const override {
|
||||
OS << " lastChild();\n";
|
||||
|
@ -922,7 +922,7 @@ namespace {
|
|||
OS << " }\n";
|
||||
}
|
||||
|
||||
void writeDump(raw_ostream &OS) const {}
|
||||
void writeDump(raw_ostream &OS) const override {}
|
||||
|
||||
void writeDumpChildren(raw_ostream &OS) const override {
|
||||
OS << " for (" << getAttrName() << "Attr::" << getLowerName()
|
||||
|
|
Loading…
Reference in New Issue