[clang] [BoundsSafety][Doc] Add BoundsSafetyAdoptionGuide.rst (PR #120674)

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 15 18:14:17 PST 2025


================
@@ -0,0 +1,87 @@
+======================================
+Adoption Guide for ``-fbounds-safety``
+======================================
+
+.. contents::
+   :local:
+
+Where to get ``-fbounds-safety``
+================================
+
+The open sourcing to llvm.org's ``llvm-project`` is still on going and the
+feature is not available yet. In the mean time, the preview implementation is
+available
+`here <https://github.com/swiftlang/llvm-project/tree/stable/20240723>`_ in a
+fork of ``llvm-project``. Please follow
+`Building LLVM with CMake <https://llvm.org/docs/CMake.html>`_ to build the
+compiler.
+
+Feature flag
+============
+
+Pass ``-fbounds-safety`` as a Clang compilation flag for the C file that you
----------------
delcypher wrote:

```suggestion
Pass ``-Xclang -fbounds-safety`` as a Clang compilation flag for the C file that you
```

https://github.com/llvm/llvm-project/pull/120674


More information about the cfe-commits mailing list