[all-commits] [llvm/llvm-project] 718aac: [clang][Diagnostics] Highlight code snippets (#66514)
Timm Baeder via All-commits
all-commits at lists.llvm.org
Sat Jan 27 08:52:32 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 718aac9f7a19227b5c5ec85819a3a5ae24ce32e1
https://github.com/llvm/llvm-project/commit/718aac9f7a19227b5c5ec85819a3a5ae24ce32e1
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2024-01-27 (Sat, 27 Jan 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Frontend/TextDiagnostic.h
M clang/include/clang/Lex/Preprocessor.h
M clang/lib/Frontend/TextDiagnostic.cpp
M clang/lib/Frontend/TextDiagnosticPrinter.cpp
M clang/lib/Lex/Preprocessor.cpp
A clang/test/Frontend/diagnostic-pipe.c
Log Message:
-----------
[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.
More information about the All-commits
mailing list