AArthur O'Dwyer[libc++] Replace #include "" with <> in libcxx/src/. NFCI.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc++] Replace #include "" with <> in libcxx/src/. NFCI. Our best guess is that the two syntaxes should have exactly equivalent effects, so, let's be consistent with what we do in libcxx/include/. I've left #include "include/x.h" and #include "../y.h" alone because I'm less sure that they're interchangeable, and they aren't inconsistent with libcxx/include/ because libcxx/include/ never does that kind of thing. Also, use the _LIBCPP_PUSH_MACROS/POP_MACROS dance for <__undef_macros>, even though it's technically unnecessary in a standalone .cpp file, just so we have consistently one way to do it. Differential Revision: https://reviews.llvm.org/D119561 | 4 年前 | |
[libc++] Rename *SAFE_STATIC to *CONSTINIT, and normalize its uses. In src/, most files can use constinit directly because they're always compiled with C++20. But some files, like "libcxxabi/src/fallback_malloc.cpp", can't, because they're #included directly from test cases in libcxxabi/test/ and therefore must (currently) compile as C++03. We might consider refactoring those offending tests, or at least marking them UNSUPPORTED: c++03. Differential Revision: https://reviews.llvm.org/D119264 | 4 年前 |