From: Daniel Jasper Date: Tue, 4 Dec 2012 21:05:31 +0000 (+0000) Subject: Add missing destructors found with -Wnon-virtual-dtor. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=accb0b0ad36138855e7d81f210588ad9b3c9de48;p=clang Add missing destructors found with -Wnon-virtual-dtor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169303 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 87deccbb37..d928aa9580 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -686,6 +686,9 @@ public: StructuralError(false) { } + virtual ~Formatter() { + } + tooling::Replacements format() { UnwrappedLineParser Parser(Lex, SourceMgr, *this); StructuralError = Parser.parse(); diff --git a/lib/Format/UnwrappedLineParser.h b/lib/Format/UnwrappedLineParser.h index 63f3659706..20ff4f55d6 100644 --- a/lib/Format/UnwrappedLineParser.h +++ b/lib/Format/UnwrappedLineParser.h @@ -71,6 +71,8 @@ struct UnwrappedLine { class UnwrappedLineConsumer { public: + virtual ~UnwrappedLineConsumer() { + } virtual void formatUnwrappedLine(const UnwrappedLine &Line) = 0; };