[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

@@ -24,7 +24,7 @@ namespace tooling {
/// \brief Default \c PathComparator using \c llvm::sys::fs::equivalent().
struct DefaultPathComparator : public PathComparator {
virtual ~DefaultPathComparator() {}
virtual bool equivalent(StringRef FileA, StringRef FileB) const {
bool equivalent(StringRef FileA, StringRef FileB) const override {
return FileA == FileB || llvm::sys::fs::equivalent(FileA, FileB);
}
};