forked from OSchip/llvm-project
Patch by Stefan Bühler: Escape text in macro expansion when emitting HTML in the HTMLRewriter.
This fixes PR 4602. llvm-svn: 76647
This commit is contained in:
parent
1eede6c635
commit
6dec002981
|
@ -519,7 +519,7 @@ void html::HighlightMacros(Rewriter &R, FileID FID, Preprocessor& PP) {
|
|||
assert(SM.getFileID(LLoc.second) == FID &&
|
||||
"Start and end of expansion must be in the same ultimate file!");
|
||||
|
||||
std::string Expansion = PP.getSpelling(Tok);
|
||||
std::string Expansion = EscapeText(PP.getSpelling(Tok));
|
||||
unsigned LineLen = Expansion.size();
|
||||
|
||||
Token PrevTok = Tok;
|
||||
|
|
Loading…
Reference in New Issue