diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-17 22:24:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-17 22:24:51 +0000 |
commit | 7c7e9b3bbe74065f3a6e2c2e238c0b83442b5744 (patch) | |
tree | 449e311a9f2e94f92a66c1b07736d84f2b830904 /clang/Driver/HTMLPrint.cpp | |
parent | 306492d8cbd308b99d388694cf8dd893c9b3168c (diff) | |
download | bcm5719-llvm-7c7e9b3bbe74065f3a6e2c2e238c0b83442b5744.tar.gz bcm5719-llvm-7c7e9b3bbe74065f3a6e2c2e238c0b83442b5744.zip |
Handle text escaping (e.g. & -> &) last, to avoid interactions between 'replace' operations and insert operations. This fixes a problem with "&;&" on line 666 of the gcc.c example I sent out.
llvm-svn: 49874
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
-rw-r--r-- | clang/Driver/HTMLPrint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index 54678dea3e3..ff04b0e6097 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/Driver/HTMLPrint.cpp @@ -55,7 +55,6 @@ HTMLPrinter::~HTMLPrinter() { // Format the file. unsigned FileID = R.getSourceMgr().getMainFileID(); - html::EscapeText(R, FileID, false, true); html::AddLineNumbers(R, FileID); html::AddHeaderFooterInternalBuiltinCSS(R, FileID); @@ -67,6 +66,7 @@ HTMLPrinter::~HTMLPrinter() { html::SyntaxHighlight(R, FileID, *PP); html::HighlightMacros(R, FileID, *PP); } + html::EscapeText(R, FileID, false, true); // Open the output. |