]> granicus.if.org Git - clang/commitdiff
Add virtual dtor to PreprocessorLexer.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:48:57 +0000 (22:48 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:48:57 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59188 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/PreprocessorLexer.h
lib/Lex/PreprocessorLexer.cpp

index 12a0cef992edea02c778c2b57a1fca6a2924fbe1..bbe6dbeeac5ced3c47c62a96bdcabf66951afed8 100644 (file)
@@ -60,6 +60,7 @@ protected:
   friend class Preprocessor;
   
   PreprocessorLexer() {}
+  virtual ~PreprocessorLexer();
   
   virtual void IndirectLex(Token& Result) = 0;
   
index cbda79fd8bcc4ebf3590fd3266edae9b710f8c0e..f3d91af4ed11ef498368c01fdc282f9bcadd30ca 100644 (file)
@@ -18,6 +18,8 @@
 
 using namespace clang;
 
+PreprocessorLexer::~PreprocessorLexer() {}
+
 /// LexIncludeFilename - After the preprocessor has parsed a #include, lex and
 /// (potentially) macro expand the filename.
 void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) {