[all-commits] [llvm/llvm-project] da1609: Improve the formatting of static_assert messages
cor3ntin via All-commits
all-commits at lists.llvm.org
Thu Jun 30 14:59:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: da1609ad73540978f66111e96ea500b97ca9b39a
https://github.com/llvm/llvm-project/commit/da1609ad73540978f66111e96ea500b97ca9b39a
Author: Corentin Jabot <corentinjabot at gmail.com>
Date: 2022-06-30 (Thu, 30 Jun 2022)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/C/drs/dr0xx.c
M clang/test/CXX/dcl.dcl/p4-0x.cpp
M clang/test/CXX/expr/expr.prim/expr.prim.id/p3.cpp
M clang/test/PCH/cxx-static_assert.cpp
M clang/test/Sema/static-assert.c
M clang/test/SemaCXX/int-ptr-cast-SFINAE.cpp
M clang/test/SemaCXX/static-assert.cpp
M libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_add.verify.cpp
M libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_add_explicit.verify.cpp
M libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_sub.verify.cpp
M libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_sub_explicit.verify.cpp
M libcxx/test/libcxx/input.output/file.streams/fstreams/filebuf/traits_mismatch.fail.cpp
M libcxx/test/libcxx/input.output/file.streams/fstreams/traits_mismatch.fail.cpp
M libcxx/test/libcxx/input.output/iostream.format/input.streams/traits_mismatch.fail.cpp
M libcxx/test/libcxx/input.output/iostream.format/output.streams/traits_mismatch.fail.cpp
M libcxx/test/libcxx/input.output/string.streams/traits_mismatch.fail.cpp
M libcxx/test/libcxx/iterators/predef.iterators/reverse.iterators/bad_template_argument.verify.cpp
M libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/function_type_default_deleter.fail.cpp
M libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.fail.cpp
M libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/pair.tuple_element.fail.cpp
M libcxx/test/libcxx/utilities/variant/variant.variant/variant.helper/variant_alternative.fail.cpp
M libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/sample.fail.cpp
M libcxx/test/std/algorithms/alg.sorting/alg.min.max/requires_forward_iterator.fail.cpp
M libcxx/test/std/containers/associative/map/map.cons/deduct.fail.cpp
M libcxx/test/std/containers/associative/multimap/multimap.cons/deduct.fail.cpp
M libcxx/test/std/containers/sequences/array/array.fill/fill.fail.cpp
M libcxx/test/std/containers/sequences/array/array.swap/swap.fail.cpp
M libcxx/test/std/containers/sequences/array/array.tuple/get.fail.cpp
M libcxx/test/std/containers/sequences/array/array.tuple/tuple_element.fail.cpp
M libcxx/test/std/containers/sequences/vector/vector.modifiers/resize_not_move_insertable.fail.cpp
M libcxx/test/std/containers/views/views.span/span.sub/subspan.verify.cpp
M libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.fail.cpp
M libcxx/test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp
M libcxx/test/std/numerics/numbers/illformed.verify.cpp
M libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/params.fail.cpp
M libcxx/test/std/strings/basic.string/char.bad.verify.cpp
M libcxx/test/std/strings/string.view/char.bad.fail.cpp
M libcxx/test/std/time/time.hms/hhmmss.fail.cpp
M libcxx/test/std/utilities/any/any.nonmembers/any.cast/any_cast_request_invalid_value_category.fail.cpp
M libcxx/test/std/utilities/any/any.nonmembers/any.cast/const_correctness.verify.cpp
M libcxx/test/std/utilities/any/any.nonmembers/any.cast/not_copy_constructible.verify.cpp
M libcxx/test/std/utilities/any/any.nonmembers/any.cast/reference_types.fail.cpp
M libcxx/test/std/utilities/intseq/intseq.make/make_integer_seq.fail.cpp
M libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ctor.fail.cpp
M libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/deduct.fail.cpp
M libcxx/test/std/utilities/optional/optional.object/optional_requires_destructible_object.fail.cpp
M libcxx/test/std/utilities/optional/optional.syn/optional_in_place_t.fail.cpp
M libcxx/test/std/utilities/utility/forward/forward.fail.cpp
M libcxx/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp
Log Message:
-----------
Improve the formatting of static_assert messages
Display 'static_assert failed: message' instead of
'static_assert failed "message"' to be consistent
with other implementations and be slightly more
readable.
Reviewed By: #libc, aaron.ballman, philnik, Mordante
Differential Revision: https://reviews.llvm.org/D128844
More information about the All-commits
mailing list