Add missing destructors found with -Wnon-virtual-dtor.

llvm-svn: 169303
This commit is contained in:
Daniel Jasper 2012-12-04 21:05:31 +00:00
parent c7cb3145a0
commit 61bd3a1dc6
2 changed files with 5 additions and 0 deletions

View File

@ -686,6 +686,9 @@ public:
StructuralError(false) {
}
virtual ~Formatter() {
}
tooling::Replacements format() {
UnwrappedLineParser Parser(Lex, SourceMgr, *this);
StructuralError = Parser.parse();

View File

@ -71,6 +71,8 @@ struct UnwrappedLine {
class UnwrappedLineConsumer {
public:
virtual ~UnwrappedLineConsumer() {
}
virtual void formatUnwrappedLine(const UnwrappedLine &Line) = 0;
};