| [NFC][LLDB] Make it possible to detect if the compiler used in tests supports -fbounds-safety (#169112) This patch makes it possible to detect in LLDB shell and API tests if -fbounds-safety is supported by the compiler used for testing. The motivation behind this is to allow upstreaming https://github.com/swiftlang/llvm-project/pull/11835 but with the tests disabled in upstream because the full implementation of -fbounds-safety isn't available in Clang yet. For shell tests when -fbounds-safety is available the clang-bounds-safety feature is available which means tests can be annotated with # REQUIRES: clang-bounds-safety. API tests that need -fbounds-safety support in the compiler can use the new @skipUnlessBoundsSafety decorator. rdar://165225507 | 8 个月前 |