]> granicus.if.org Git - clang/commitdiff
Add missing destructors found with -Wnon-virtual-dtor.
authorDaniel Jasper <djasper@google.com>
Tue, 4 Dec 2012 21:05:31 +0000 (21:05 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 4 Dec 2012 21:05:31 +0000 (21:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169303 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.h

index 87deccbb376dedc40e3c178e1d4c1333eaea4980..d928aa958040c68fe1a1bbd5cda129fe46903a3a 100644 (file)
@@ -686,6 +686,9 @@ public:
         StructuralError(false) {
   }
 
+  virtual ~Formatter() {
+  }
+
   tooling::Replacements format() {
     UnwrappedLineParser Parser(Lex, SourceMgr, *this);
     StructuralError = Parser.parse();
index 63f3659706b620fd6a485c6014ca212e61906204..20ff4f55d69b26fac690e11df0676f581255abbf 100644 (file)
@@ -71,6 +71,8 @@ struct UnwrappedLine {
 
 class UnwrappedLineConsumer {
 public:
+  virtual ~UnwrappedLineConsumer() {
+  }
   virtual void formatUnwrappedLine(const UnwrappedLine &Line) = 0;
 };