teak-llvm/lldb/packages/Python/lldbsuite/test
Raphael Isemann 207863261c Move the column marking functionality to the Highlighter framework
Summary:
The syntax highlighting feature so far is mutually exclusive with the lldb feature
that marks the current column in the line by underlining it via an ANSI color code.
Meaning that if you enable one, the other is automatically disabled by LLDB.

This was caused by the fact that both features inserted color codes into the the
source code and were likely to interfere with each other (which would result
in a broken source code printout to the user).

This patch moves the cursor code into the highlighting framework, which provides
the same feature to the user in normal non-C source code. For any source code
that is highlighted by Clang, we now also have cursor marking for the whole token
that is under the current source location. E.g., before we underlined only the '!' in the
expression '1 != 2', but now the whole token '!=' is underlined. The same for function
calls and so on. Below you can see two examples where we before only underlined
the first character of the token, but now underline the whole token.

{F7075400}
{F7075414}

It also simplifies the DisplaySourceLines method in the SourceManager as most of
the code in there was essentially just for getting this column marker to work as
a FormatEntity.

Reviewers: aprantl

Reviewed By: aprantl

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D51466

llvm-svn: 341003
2018-08-30 00:09:21 +00:00
..
android/platform Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
api Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
arm ObjectFileELF: Add support for arbitrarily named code sections 2018-04-30 13:23:47 +00:00
attic *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
benchmarks Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
driver/batch_mode Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
expression_command Fix broken builtin functions in the expression command 2018-08-23 20:40:45 +00:00
functionalities Respect platform sysroot when loading core files 2018-08-28 16:32:46 +00:00
help Fix the formatting for help on option value types. 2017-07-27 00:18:18 +00:00
issue_verification test infra: clear file-charged issues on rerun of file 2016-10-01 00:17:08 +00:00
lang Allow IRInterpreter to deal with non-power-of-2 sized types to support some bitfield accesses. 2018-08-28 22:50:01 +00:00
linux Revert "[LLDB] Support GNU-style compressed debug sections (.zdebug)" 2018-05-12 01:25:48 +00:00
logging Last batch of test-tree cleaning changes 2018-03-21 15:29:32 +00:00
macosx lldbtest.py: Unconditionally set the clang module cache path. 2018-08-21 16:13:37 +00:00
make Makefile.rules: Use an absolute path to the module cache directory. 2018-08-21 15:46:15 +00:00
plugins [LLDB] Unit tests basic support for OpenBSD 2018-06-04 11:59:18 +00:00
python_api [lldbsuite, windows] Mark tests as XFAIL on Windows or skip them 2018-08-02 21:26:19 +00:00
quit Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
sample_test Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
settings Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
source-manager Move the column marking functionality to the Highlighter framework 2018-08-30 00:09:21 +00:00
terminal Next batch of test-tree-cleaning changes 2018-03-15 13:47:09 +00:00
test_runner NFC: Fix some comment typos. 2018-05-28 04:22:07 +00:00
tools [vscode] Skip some of the vscode tests on Linux and fix one 2018-08-24 21:42:53 +00:00
types Make test sources compatible with android+libcxx+modules 2018-06-20 17:32:48 +00:00
warnings/uuid [dotest] Clean up test folder clean-up 2018-03-16 12:04:46 +00:00
__init__.py
.categories
bench.py Remove obsolete file 2018-02-06 21:04:06 +00:00
concurrent_base.py Move "concurrent events" tests back into one folder 2018-02-27 02:01:30 +00:00
configuration.py [dotest] Make --test-subdir work with --no-multiprocess 2018-08-16 19:56:38 +00:00
darwin_log.py Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
decorators.py Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
dosep.py [dotest] Make --test-subdir work with --no-multiprocess 2018-08-16 19:56:38 +00:00
dotest_args.py [dotest] Fix syntax error and typo. 2018-04-12 09:35:17 +00:00
dotest.py [dotest] Make --test-subdir work with --no-multiprocess 2018-08-16 19:56:38 +00:00
lldb_pylint_helper.py
lldbbench.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbcurses.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbdwarf.py Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
lldbinline.py dotest: make inline tests compatible with -f 2018-06-05 10:58:44 +00:00
lldbpexpect.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldbplatform.py Initial patchset to get the testsuite running against armv7 and arm64 iOS devices. 2017-09-25 18:19:39 +00:00
lldbplatformutil.py Adapt some tests to work with PPC64le architecture 2018-02-28 20:57:26 +00:00
lldbtest_config.py [test] Skip a test when using an out-of-tree debugserver 2018-03-08 19:46:39 +00:00
lldbtest.py lldbtest.py: Unconditionally set the clang module cache path. 2018-08-21 16:13:37 +00:00
lldbutil.py Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
lock.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Makefile
README-TestSuite Add a sample_test directory with simple starter 2017-03-01 20:25:48 +00:00
redo.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
test_categories.py [testsuite] Implement a category to skip libstdcxx tests 2018-07-10 20:37:24 +00:00
test_result.py Remove vestigial remnants of the test crash info hook 2018-02-14 16:08:26 +00:00