From 71c41d95618b0f7ccb9cdf008801a88eeffe6e14 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 18 Apr 2008 05:35:23 +0000 Subject: 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. llvm-svn: 49897 --- clang/Driver/HTMLPrint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/Driver/HTMLPrint.cpp') diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index ba9cd9e4002..b1c4c6d998f 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/Driver/HTMLPrint.cpp @@ -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. -- cgit v1.2.3