summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-11-14 11:11:20 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-11-14 11:11:20 +0100
commit8715ffdf1aafbfca7c3d7f1622fe586243f31df1 (patch)
tree45e37c2cabbafcba1b77668932b1b95cb2633c73 /llvm/lib
parenta2f6ae9abffcba260c22bb235879f0576bf3b783 (diff)
downloadbcm5719-llvm-8715ffdf1aafbfca7c3d7f1622fe586243f31df1.tar.gz
bcm5719-llvm-8715ffdf1aafbfca7c3d7f1622fe586243f31df1.zip
[lldb] Fix that trailing backslashes in source lines break the Clang highlighter
Summary: Clang's raw Lexer doesn't produce any tokens for trailing backslashes in a line. This doesn't work with LLDB's Clang highlighter which builds the source code to display from the list of tokens the Lexer returns. This causes that lines with trailing backslashes are lacking the backslash and the following newline when rendering source code in LLDB. This patch removes the trailing newline from the current line we are highlighting. This way Clang doesn't drop the backslash token and we just restore the newline after tokenising. Fixes rdar://57091487 Reviewers: JDevlieghere, labath Reviewed By: JDevlieghere, labath Subscribers: labath, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D70177
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud