[cfe-commits] r169303 - in /cfe/trunk/lib/Format: Format.cpp UnwrappedLineParser.h
Daniel Jasper
djasper at google.com
Tue Dec 4 13:05:32 PST 2012
Author: djasper
Date: Tue Dec 4 15:05:31 2012
New Revision: 169303
URL: http://llvm.org/viewvc/llvm-project?rev=169303&view=rev
Log:
Add missing destructors found with -Wnon-virtual-dtor.
Modified:
cfe/trunk/lib/Format/Format.cpp
cfe/trunk/lib/Format/UnwrappedLineParser.h
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=169303&r1=169302&r2=169303&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Tue Dec 4 15:05:31 2012
@@ -686,6 +686,9 @@
StructuralError(false) {
}
+ virtual ~Formatter() {
+ }
+
tooling::Replacements format() {
UnwrappedLineParser Parser(Lex, SourceMgr, *this);
StructuralError = Parser.parse();
Modified: cfe/trunk/lib/Format/UnwrappedLineParser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.h?rev=169303&r1=169302&r2=169303&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.h (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.h Tue Dec 4 15:05:31 2012
@@ -71,6 +71,8 @@
class UnwrappedLineConsumer {
public:
+ virtual ~UnwrappedLineConsumer() {
+ }
virtual void formatUnwrappedLine(const UnwrappedLine &Line) = 0;
};
More information about the cfe-commits
mailing list