summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp30
1 files changed, 13 insertions, 17 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index 175a2c9a264..e27381bf779 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -53,20 +53,16 @@ public:
AddMissingHeaderDeps(Opts.AddMissingHeaderDeps),
SeenMissingHeader(false) {}
- virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
- SrcMgr::CharacteristicKind FileType,
- FileID PrevFID);
- virtual void InclusionDirective(SourceLocation HashLoc,
- const Token &IncludeTok,
- StringRef FileName,
- bool IsAngled,
- CharSourceRange FilenameRange,
- const FileEntry *File,
- StringRef SearchPath,
- StringRef RelativePath,
- const Module *Imported);
-
- virtual void EndOfMainFile() {
+ void FileChanged(SourceLocation Loc, FileChangeReason Reason,
+ SrcMgr::CharacteristicKind FileType,
+ FileID PrevFID) override;
+ void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
+ StringRef FileName, bool IsAngled,
+ CharSourceRange FilenameRange, const FileEntry *File,
+ StringRef SearchPath, StringRef RelativePath,
+ const Module *Imported) override;
+
+ void EndOfMainFile() override {
OutputDependencyFile();
}
@@ -79,11 +75,11 @@ class DFGASTReaderListener : public ASTReaderListener {
public:
DFGASTReaderListener(DFGImpl &Parent)
: Parent(Parent) { }
- virtual bool needsInputFileVisitation() { return true; }
- virtual bool needsSystemInputFileVisitation() {
+ bool needsInputFileVisitation() override { return true; }
+ bool needsSystemInputFileVisitation() override {
return Parent.includeSystemHeaders();
}
- virtual bool visitInputFile(StringRef Filename, bool isSystem);
+ bool visitInputFile(StringRef Filename, bool isSystem) override;
};
}
OpenPOWER on IntegriCloud