[all-commits] [llvm/llvm-project] fc1262: [clang][Diagnostics] Split source ranges into line...

Timm Bäder via All-commits all-commits at lists.llvm.org
Thu Jun 1 23:52:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc1262bd58ac54ad0a0bfa9750254b81c742bbb5
      https://github.com/llvm/llvm-project/commit/fc1262bd58ac54ad0a0bfa9750254b81c742bbb5
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M clang/lib/Frontend/TextDiagnostic.cpp
    M clang/test/Misc/caret-diags-multiline.cpp

  Log Message:
  -----------
  [clang][Diagnostics] Split source ranges into line ranges before...

... emitting them.

This makes later code easier to understand, since we emit the code
snippets line by line anyway.
It also fixes the weird underlinig of multi-line source ranges.

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




More information about the All-commits mailing list