]> granicus.if.org Git - clang/commitdiff
Restore macro expansion for HTMLPrint by using the original Preprocessor.
authorTed Kremenek <kremenek@apple.com>
Fri, 18 Apr 2008 05:35:23 +0000 (05:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 18 Apr 2008 05:35:23 +0000 (05:35 +0000)
This is a workaround until we figure out why a freshly create Preprocessor
doesn't expand macros from headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49897 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/HTMLPrint.cpp

index ba9cd9e400291c63288be88199c650fd9a44766d..b1c4c6d998fbab748775f8e52b995c7efd5c44cb 100644 (file)
@@ -67,7 +67,7 @@ HTMLPrinter::~HTMLPrinter() {
   // 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.