[C++11] Add 'override' keyword to virtual methods that override their base class.

llvm-svn: 203999
This commit is contained in:
Craig Topper
2014-03-15 04:29:04 +00:00
parent e3bfdc4e14
commit fb6b25b5e4
54 changed files with 551 additions and 557 deletions

View File

@@ -160,7 +160,7 @@ class SingleFrontendActionFactory : public FrontendActionFactory {
public:
SingleFrontendActionFactory(FrontendAction *Action) : Action(Action) {}
FrontendAction *create() { return Action; }
FrontendAction *create() override { return Action; }
};
}
@@ -380,7 +380,7 @@ public:
ASTBuilderAction(std::vector<ASTUnit *> &ASTs) : ASTs(ASTs) {}
bool runInvocation(CompilerInvocation *Invocation, FileManager *Files,
DiagnosticConsumer *DiagConsumer) {
DiagnosticConsumer *DiagConsumer) override {
// FIXME: This should use the provided FileManager.
ASTUnit *AST = ASTUnit::LoadFromCompilerInvocation(
Invocation, CompilerInstance::createDiagnostics(