diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 3 | ||||
| -rw-r--r-- | clang/lib/Format/UnwrappedLineParser.h | 2 | 
2 files changed, 5 insertions, 0 deletions
| diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 87deccbb376..d928aa95804 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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/clang/lib/Format/UnwrappedLineParser.h b/clang/lib/Format/UnwrappedLineParser.h index 63f3659706b..20ff4f55d69 100644 --- a/clang/lib/Format/UnwrappedLineParser.h +++ b/clang/lib/Format/UnwrappedLineParser.h @@ -71,6 +71,8 @@ struct UnwrappedLine {  class UnwrappedLineConsumer {  public: +  virtual ~UnwrappedLineConsumer() { +  }    virtual void formatUnwrappedLine(const UnwrappedLine &Line) = 0;  }; | 

