[all-commits] [llvm/llvm-project] 09117b: [clang][sema] Print more information about failed ...

Timm Bäder via All-commits all-commits at lists.llvm.org
Wed Aug 10 23:45:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09117b21890c652994f7ada0229d309b35b44259
      https://github.com/llvm/llvm-project/commit/09117b21890c652994f7ada0229d309b35b44259
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/dcl.decl/dcl.meaning/dcl.array/p3.cpp
    M clang/test/CXX/drs/dr7xx.cpp
    M clang/test/CXX/temp/temp.decls/temp.variadic/init-capture.cpp
    M clang/test/Lexer/cxx1z-trigraphs.cpp
    M clang/test/PCH/cxx-templates.cpp
    M clang/test/Parser/objc-static-assert.mm
    M clang/test/Sema/static-assert.c
    M clang/test/SemaCXX/constant-expression-cxx11.cpp
    M clang/test/SemaCXX/recovery-expr-type.cpp
    M clang/test/SemaCXX/static-assert-cxx17.cpp
    M clang/test/SemaCXX/static-assert.cpp
    M clang/test/SemaTemplate/instantiate-var-template.cpp
    M clang/test/SemaTemplate/instantiation-dependence.cpp
    M clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp

  Log Message:
  -----------
  [clang][sema] Print more information about failed static assertions

For failed static assertions, try to take the expression apart and print
useful information about why it failed. In particular, look at binary
operators and print the compile-time evaluated value of the LHS/RHS.

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




More information about the All-commits mailing list