[cfe-commits] r49897 - /cfe/trunk/Driver/HTMLPrint.cpp

Ted Kremenek kremenek at apple.com
Thu Apr 17 22:35:23 PDT 2008


Author: kremenek
Date: Fri Apr 18 00:35:23 2008
New Revision: 49897

URL: http://llvm.org/viewvc/llvm-project?rev=49897&view=rev
Log:
Restore macro expansion for HTMLPrint by using the original Preprocessor.
This is a workaround until we figure out why a freshly create Preprocessor
doesn't expand macros from headers.

Modified:
    cfe/trunk/Driver/HTMLPrint.cpp

Modified: cfe/trunk/Driver/HTMLPrint.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/HTMLPrint.cpp?rev=49897&r1=49896&r2=49897&view=diff

==============================================================================
--- cfe/trunk/Driver/HTMLPrint.cpp (original)
+++ cfe/trunk/Driver/HTMLPrint.cpp Fri Apr 18 00:35:23 2008
@@ -67,7 +67,7 @@
   // for example.
   
   if (PP) html::SyntaxHighlight(R, FileID, *PP);
-  if (PPF) html::HighlightMacros(R, FileID, *PPF);  
+  if (PPF) html::HighlightMacros(R, FileID, *PP);  
   html::EscapeText(R, FileID, false, true);
   
   // Open the output.





More information about the cfe-commits mailing list