llvm-project/libcxx
Muhammad Usman Shahid 6542cb55a3 Rewording the "static_assert" to static assertion
This patch is basically the rewording of the static assert statement's
output(error) on screen after failing. Failing a _Static_assert in C
should not report that static_assert failed. It’d probably be better to
reword the diagnostic to be more like GCC and say “static assertion”
failed in both C and C++.

consider a c file having code

_Static_assert(0, "oh no!");

In clang the output is like:

<source>:1:1: error: static_assert failed: oh no!
_Static_assert(0, "oh no!");
^              ~
1 error generated.
Compiler returned: 1

Thus here the "static_assert" is not much good, it will be better to
reword it to the "static assertion failed" to more generic. as the gcc
prints as:

<source>:1:1: error: static assertion failed: "oh no!"
    1 | _Static_assert(0, "oh no!");
          | ^~~~~~~~~~~~~~
          Compiler returned: 1

The above can also be seen here. This patch is about rewording
the static_assert to static assertion.

Differential Revision: https://reviews.llvm.org/D129048
2022-07-21 06:34:14 -07:00
..
benchmarks [libc++] Implements Unicode grapheme clustering 2022-07-20 18:38:32 +02:00
cmake [libc++] Drop the legacy debug mode symbols by default 2022-07-19 17:16:06 -04:00
docs [libc++][ranges] Implement `std::ranges::partition_{point,copy}`. 2022-07-20 11:39:07 -07:00
include [libc++] Fix proxy iterator issues that trigger an assertion in Chromium. 2022-07-20 18:05:49 -07:00
lib [libc++][NFC] Add commit SHA for ABI change 2022-07-19 17:16:53 -04:00
src [libc++] Treat incomplete features just like other experimental features 2022-07-19 10:50:20 -04:00
test Rewording the "static_assert" to static assertion 2022-07-21 06:34:14 -07:00
utils [libc++] Implements Unicode grapheme clustering 2022-07-20 18:38:32 +02:00
.clang-format [libcxx] Remove extraneous '---' lines in .clang-format files 2022-06-15 01:34:37 -07:00
.clang-tidy [libc++] Make parameter names consistent and enforce the naming style using readability-identifier-naming 2022-07-08 18:17:47 +02:00
.gitignore
CMakeLists.txt [libc++] Drop the legacy debug mode symbols by default 2022-07-19 17:16:06 -04:00
CREDITS.TXT Microsoft's floating-point to_chars powered by Ryu and Ryu Printf 2021-12-12 16:34:50 +01:00
LICENSE.TXT
TODO.TXT [libc++] Disallow volatile types in std::allocator 2021-09-22 11:47:38 -04:00
appveyor-reqs-install.cmd
appveyor.yml [libc++] Re-apply "Always build c++experimental.a"" 2022-07-19 10:44:19 -04:00