diff options
author | Timm Baeder <tbaeder@redhat.com> | 2024-01-27 17:52:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 17:52:20 +0100 |
commit | 718aac9f7a19227b5c5ec85819a3a5ae24ce32e1 (patch) | |
tree | 5dab18c92e82d2c42f80de26908f0a1835e67a0c /llvm/tools/llvm-cov/SourceCoverageView.cpp | |
parent | 863b2c84c0fbcfb02d969fa36af4932d410a827b (diff) | |
download | llvm-718aac9f7a19227b5c5ec85819a3a5ae24ce32e1.zip llvm-718aac9f7a19227b5c5ec85819a3a5ae24ce32e1.tar.gz llvm-718aac9f7a19227b5c5ec85819a3a5ae24ce32e1.tar.bz2 |
[clang][Diagnostics] Highlight code snippets (#66514)
Add some primitive syntax highlighting to our code snippet output.
This adds "checkpoints" to the Preprocessor, which we can use to start lexing from. When printing a code snippet, we lex from the nearest checkpoint and highlight the tokens based on their token type.
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions