To improve code generation for C++ code that directly includes our
headers, the external function definitions will now be marked noexcept.
This may not be necessary for the internal definitions since we build
with the -fno-exceptions flag.
Details
Details
- Reviewers
sivachandra - Commits
- rG9b8a64b88dbc: [libc] add noexcept to external function headers
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/include/__llvm-libc-common.h | ||
---|---|---|
35 | Nit: The other names like _Noreturn are actually C keywords. In this case, though the identifier names prefixed with _<Capital letter> are allowed for standard library use, we should probably obscure this a little more into __NOEXCEPT similar to __BEGIN_C_DECLS. |
Nit: The other names like _Noreturn are actually C keywords. In this case, though the identifier names prefixed with _<Capital letter> are allowed for standard library use, we should probably obscure this a little more into __NOEXCEPT similar to __BEGIN_C_DECLS.