Files
clang-p2996/clang/lib/Frontend/TextDiagnostic.cpp
alexfh a986f5e218 Fix clang crash when printing highlighted code in diagnostic (after #66514) (#80442)
Implements the fix proposed by Evgeny Eltsin on
https://github.com/llvm/llvm-project/pull/66514#issuecomment-1924039038.

No test case provided, since the bug is extremely sensitive to the
preprocessor
state (headers, macros, including the ones defined on command line), and
it
turned out to be non-trivial to create an isolated test.
2024-02-02 16:31:45 +01:00

55 KiB