[all-commits] [llvm/llvm-project] 66202d: Make 'static assertion failed' diagnostics point t...

Jorge Pinto Sousa via All-commits all-commits at lists.llvm.org
Thu Apr 13 05:15:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66202d83b5d47479ae0f8117aebb523ba7eff82d
      https://github.com/llvm/llvm-project/commit/66202d83b5d47479ae0f8117aebb523ba7eff82d
  Author: Jorge Pinto Sousa <jorge.pinto.sousa at proton.me>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/SemaCXX/static-assert.cpp

  Log Message:
  -----------
  Make 'static assertion failed' diagnostics point to the static assertion expression

"static assertion failed" pointed to the static_assert token and
then underlined the static assertion expression:

<source>:3:1: error: static assertion failed
    static_assert(false);
    ^             ~~~~~
    1 error generated.
See Godbolt: https://godbolt.org/z/r38booz59

Now it points to and highlights the assertion expression.

Fixes https://github.com/llvm/llvm-project/issues/61951
Differential Revision: https://reviews.llvm.org/D147745




More information about the All-commits mailing list