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

Timm Bäder via All-commits all-commits at lists.llvm.org
Mon Jun 5 05:57:25 PDT 2023


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

  Changed paths:
    M clang/lib/Frontend/TextDiagnostic.cpp
    M clang/test/Misc/caret-diags-multiline.cpp
    M clang/test/Parser/brackets.c
    M clang/test/Parser/brackets.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