[libc-commits] [PATCH] D106807: [libc] Add noexcept and noreturn qualifiers to appropriate C lib functions

Alf via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jul 26 09:53:16 PDT 2021


gAlfonso-bit created this revision.
gAlfonso-bit added a reviewer: LLVM.
Herald added subscribers: libc-commits, dexonsmith, ecnelises, tschuett, hiraditya.
Herald added a project: libc-project.
gAlfonso-bit requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Because the libc is in c++ and not C, we must specify noexcept so that these functions can be used in noexcept functions elsewhere in llvm


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106807

Files:
  libc/config/linux/x86_64/syscall.h.inc
  libc/src/__support/common.h
  libc/src/__support/integer_operations.h
  libc/src/assert/__assert_fail.cpp
  libc/src/ctype/ctype_utils.h
  libc/src/ctype/isalnum.cpp
  libc/src/ctype/isalpha.cpp
  libc/src/ctype/isalpha.h
  libc/src/ctype/isascii.cpp
  libc/src/ctype/isascii.h
  libc/src/ctype/isblank.cpp
  libc/src/ctype/isblank.h
  libc/src/ctype/iscntrl.cpp
  libc/src/ctype/iscntrl.h
  libc/src/ctype/isdigit.cpp
  libc/src/ctype/isdigit.h
  libc/src/ctype/isgraph.cpp
  libc/src/ctype/isgraph.h
  libc/src/ctype/islower.cpp
  libc/src/ctype/islower.h
  libc/src/ctype/isprint.cpp
  libc/src/ctype/isprint.h
  libc/src/ctype/ispunct.cpp
  libc/src/ctype/ispunct.h
  libc/src/ctype/isspace.cpp
  libc/src/ctype/isspace.h
  libc/src/ctype/isupper.cpp
  libc/src/ctype/isupper.h
  libc/src/ctype/isxdigit.cpp
  libc/src/ctype/isxdigit.h
  libc/src/ctype/toascii.h
  libc/src/ctype/tolower.cpp
  libc/src/ctype/tolower.h
  libc/src/ctype/toupper.cpp
  libc/src/ctype/toupper.h
  libc/src/errno/__errno_location.h
  libc/src/fenv/feclearexcept.h
  libc/src/fenv/fegetenv.h
  libc/src/fenv/fegetexceptflag.h
  libc/src/fenv/fegetround.h
  libc/src/fenv/feholdexcept.h
  libc/src/fenv/feraiseexcept.h
  libc/src/fenv/fesetenv.h
  libc/src/fenv/fesetexceptflag.h
  libc/src/fenv/fesetround.h
  libc/src/fenv/fetestexcept.h
  libc/src/fenv/feupdateenv.h
  libc/src/math/ceil.h
  libc/src/math/ceilf.h
  libc/src/math/ceill.h
  libc/src/math/copysign.h
  libc/src/math/copysignf.h
  libc/src/math/copysignl.h
  libc/src/math/cos.h
  libc/src/math/cosf.h
  libc/src/math/exp2f.h
  libc/src/math/expf.h
  libc/src/math/expm1f.h
  libc/src/math/fabs.h
  libc/src/math/fabsf.h
  libc/src/math/fabsl.h
  libc/src/math/fdim.h
  libc/src/math/fdimf.h
  libc/src/math/fdiml.h
  libc/src/math/floor.h
  libc/src/math/floorf.h
  libc/src/math/floorl.h
  libc/src/math/fma.h
  libc/src/math/fmaf.h
  libc/src/math/fmax.h
  libc/src/math/fmaxf.h
  libc/src/math/fmaxl.h
  libc/src/math/fmin.h
  libc/src/math/fminf.h
  libc/src/math/fminl.h
  libc/src/math/frexp.h
  libc/src/math/frexpf.h
  libc/src/math/frexpl.h
  libc/src/math/generic/math_utils.h
  libc/src/math/generic/sincosf_utils.h
  libc/src/math/hypot.h
  libc/src/math/hypotf.h
  libc/src/math/ilogb.h
  libc/src/math/ilogbf.h
  libc/src/math/ilogbl.h
  libc/src/math/ldexp.h
  libc/src/math/ldexpf.h
  libc/src/math/ldexpl.h
  libc/src/math/llrint.h
  libc/src/math/llrintf.h
  libc/src/math/llrintl.h
  libc/src/math/llround.h
  libc/src/math/llroundf.h
  libc/src/math/llroundl.h
  libc/src/math/logb.h
  libc/src/math/logbf.h
  libc/src/math/logbl.h
  libc/src/math/lrint.h
  libc/src/math/lrintf.h
  libc/src/math/lrintl.h
  libc/src/math/lround.h
  libc/src/math/lroundf.h
  libc/src/math/lroundl.h
  libc/src/math/modf.h
  libc/src/math/modff.h
  libc/src/math/modfl.h
  libc/src/math/nearbyint.h
  libc/src/math/nearbyintf.h
  libc/src/math/nearbyintl.h
  libc/src/math/nextafter.h
  libc/src/math/nextafterf.h
  libc/src/math/nextafterl.h
  libc/src/math/remainder.h
  libc/src/math/remainderf.h
  libc/src/math/remainderl.h
  libc/src/math/remquo.h
  libc/src/math/remquof.h
  libc/src/math/remquol.h
  libc/src/math/rint.h
  libc/src/math/rintf.h
  libc/src/math/rintl.h
  libc/src/math/round.h
  libc/src/math/roundf.h
  libc/src/math/roundl.h
  libc/src/math/sin.h
  libc/src/math/sincosf.h
  libc/src/math/sinf.h
  libc/src/math/sqrt.h
  libc/src/math/sqrtf.h
  libc/src/math/sqrtl.h
  libc/src/math/tan.h
  libc/src/math/trunc.h
  libc/src/math/truncf.h
  libc/src/math/truncl.h
  libc/src/signal/linux/sigaction.cpp
  libc/src/signal/linux/sigaddset.cpp
  libc/src/signal/linux/sigdelset.cpp
  libc/src/signal/linux/sigemptyset.cpp
  libc/src/signal/linux/sigfillset.cpp
  libc/src/signal/linux/signal.h
  libc/src/signal/raise.h
  libc/src/signal/sigaction.h
  libc/src/signal/sigaddset.h
  libc/src/signal/sigdelset.h
  libc/src/signal/sigemptyset.h
  libc/src/signal/sigfillset.h
  libc/src/signal/signal.h
  libc/src/signal/sigprocmask.h
  libc/src/stdio/FILE.h
  libc/src/stdio/fwrite.cpp
  libc/src/stdio/fwrite.h
  libc/src/stdlib/abort.cpp
  libc/src/stdlib/abs.h
  libc/src/stdlib/labs.h
  libc/src/stdlib/linux/_Exit.cpp
  libc/src/stdlib/llabs.h
  libc/src/string/memchr.h
  libc/src/string/memmove.cpp
  libc/src/sys/mman/mmap.h
  libc/src/sys/mman/munmap.h
  libc/src/threads/call_once.h
  libc/src/threads/linux/thrd_create.cpp
  libc/src/threads/linux/x86_64/thread_start_args.h.in
  libc/src/threads/mtx_init.h
  libc/src/threads/mtx_lock.h
  libc/src/threads/mtx_unlock.h
  libc/src/threads/thrd_create.h
  libc/src/threads/thrd_join.h
  libc/src/time/asctime.h
  libc/src/time/asctime_r.h
  libc/src/time/gmtime.h
  libc/src/time/gmtime_r.h
  libc/src/time/mktime.h
  libc/src/time/time_utils.h
  libc/src/unistd/write.h
  libc/utils/CPP/Array.h
  libc/utils/CPP/ArrayRef.h
  libc/utils/FPUtil/BasicOperations.h
  libc/utils/FPUtil/DivisionAndRemainderOperations.h
  libc/utils/FPUtil/FPBits.h
  libc/utils/FPUtil/Hypot.h
  libc/utils/FPUtil/LongDoubleBitsX86.h
  libc/utils/FPUtil/ManipulationFunctions.h
  libc/utils/FPUtil/NearestIntegerOperations.h
  libc/utils/FPUtil/NextAfterLongDoubleX86.h
  libc/utils/FPUtil/NormalFloat.h
  libc/utils/FPUtil/PolyEval.h
  libc/utils/FPUtil/Sqrt.h
  libc/utils/FPUtil/SqrtLongDoubleX86.h
  libc/utils/FPUtil/x86_64/FEnvImpl.h
  libc/utils/FPUtil/x86_64/FMA.h
  llvm/include/llvm/Support/Compiler.h
  llvm/lib/TableGen/Error.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106807.361706.patch
Type: text/x-patch
Size: 113901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210726/4021bd2b/attachment-0001.bin>


More information about the libc-commits mailing list