[cfe-commits] r59721 - /cfe/trunk/include/clang/Lex/Preprocessor.h

Ted Kremenek kremenek at apple.com
Wed Nov 19 23:53:31 PST 2008


Author: kremenek
Date: Thu Nov 20 01:53:31 2008
New Revision: 59721

URL: http://llvm.org/viewvc/llvm-project?rev=59721&view=rev
Log:
Preprocessor::isCurrentLexer() now takes a PreprocessorLexer* argument to match against CurPPLexer instead of CurLexer.

Modified:
    cfe/trunk/include/clang/Lex/Preprocessor.h

Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=59721&r1=59720&r2=59721&view=diff

==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Thu Nov 20 01:53:31 2008
@@ -204,8 +204,8 @@
   
   /// isCurrentLexer - Return true if we are lexing directly from the specified
   /// lexer.
-  bool isCurrentLexer(const Lexer *L) const {
-    return CurLexer.get() == L;
+  bool isCurrentLexer(const PreprocessorLexer *L) const {
+    return CurPPLexer == L;
   }
   
   /// getCurrentLexer - Return the current file lexer being lexed from.  Note





More information about the cfe-commits mailing list