[PATCH] D106899: [LLVM] Add C++ 14 and C11 noreturn specifier
Alf via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 27 11:15:02 PDT 2021
gAlfonso-bit created this revision.
gAlfonso-bit added a reviewer: LLVM.
gAlfonso-bit added projects: LLVM, libc++, libc-project.
Herald added a subscriber: dexonsmith.
gAlfonso-bit requested review of this revision.
Herald added a subscriber: llvm-commits.
We should use the standardized [[noreturn]] in c++ and _Noreturn in C for C++ 14 and up, and C11 and up, respectively.
Only if those cases fail do we check the compiler and use the compiler attributes to mark functions as noreturn
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106899
Files:
llvm/include/llvm/Support/Compiler.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106899.362108.patch
Type: text/x-patch
Size: 11832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210727/5b4c00c5/attachment.bin>
More information about the llvm-commits
mailing list