llvm-project/lldb/unittests
Raphael Isemann 8715ffdf1a [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
2019-11-14 11:11:20 +01:00
..
Breakpoint Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Core [LLDB] Fix handling for the clang name mangling extension for block invocations 2019-11-06 14:20:00 -08:00
Disassembler When disassembling Aarch64 target and vendor Apple, set the cpu to 2019-03-07 03:16:45 +00:00
Editline [lldb][NFC] Allow for-ranges on StringList 2019-08-16 14:27:35 +00:00
Expression whitespace cleanup 2019-10-21 22:48:27 +00:00
Host factor out an abstract base class for File 2019-10-03 04:31:46 +00:00
Interpreter [lldb][NFC] Remove WordComplete mode, make result array indexed from 0 and remove any undocumented/redundant return values 2019-08-22 07:41:23 +00:00
Language [lldb] Fix that trailing backslashes in source lines break the Clang highlighter 2019-11-14 11:11:20 +01:00
ObjectFile [Windows] Use information from the PE32 exceptions directory to construct unwind plans 2019-10-11 09:03:29 +00:00
Platform Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Process [LLDB] Implement pure virtual method in MockConnection 2019-11-13 15:37:57 -08:00
ScriptInterpreter [LLDB][Python] remove ArgInfo::count 2019-11-04 12:48:49 -08:00
Signals Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Symbol [lldb][NFC] Remove unused include in TestLineEntry.cpp 2019-09-20 10:30:38 +00:00
SymbolFile Adapt Windows test to API change. 2019-10-17 20:51:55 +00:00
Target Modernize the rest of the Find.* API (NFC) 2019-10-17 19:56:40 +00:00
TestingSupport [lldb] - Update unit tests after lib/ObjectYAML change. 2019-09-13 16:00:28 +00:00
UnwindAssembly Fix the unwinding plan augmentation from x86 assembly 2019-10-10 13:23:09 +00:00
Utility Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
debugserver [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
tools [CMake] Run the lldb-server tests with system debugserver. 2019-09-25 17:12:59 +00:00
CMakeLists.txt [CMake] Track test dependencies with add_lldb_test_dependency 2019-10-08 00:21:34 +00:00
gtest_common.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00