From 4d8869727c5dd84ccf3e8264fbc22fa376c6ffc1 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sat, 15 Dec 2018 19:13:06 -0800 Subject: [PATCH 1/2] =?UTF-8?q?Include=20@=E2=80=8Bpropagate=5Finbounds=20?= =?UTF-8?q?docstring=20in=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/src/base/base.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/src/base/base.md b/doc/src/base/base.md index 2e057cb142112..2515417ab367c 100644 --- a/doc/src/base/base.md +++ b/doc/src/base/base.md @@ -229,6 +229,7 @@ Base.evalfile Base.esc Base.@inbounds Base.@boundscheck +Base.@propagate_inbounds Base.@inline Base.@noinline Base.@nospecialize From af696658755f496db7588eec6688fc060ab14030 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 26 Dec 2018 12:59:39 -0800 Subject: [PATCH 2/2] =?UTF-8?q?Link=20@=E2=80=8Bpropagate=5Finbounds=20doc?= =?UTF-8?q?string=20from=20devdocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/src/devdocs/boundscheck.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/src/devdocs/boundscheck.md b/doc/src/devdocs/boundscheck.md index 669cb526f9dfb..a9fb3baaae447 100644 --- a/doc/src/devdocs/boundscheck.md +++ b/doc/src/devdocs/boundscheck.md @@ -43,8 +43,9 @@ between the `@inbounds` and `@boundscheck` declarations. For instance, the defau methods have the chain `getindex(A::AbstractArray, i::Real)` calls `getindex(IndexStyle(A), A, i)` calls `_getindex(::IndexLinear, A, i)`. -To override the "one layer of inlining" rule, a function may be marked with `@propagate_inbounds` -to propagate an inbounds context (or out of bounds context) through one additional layer of inlining. +To override the "one layer of inlining" rule, a function may be marked with +[`Base.@propagate_inbounds`](@ref) to propagate an inbounds context (or out of bounds +context) through one additional layer of inlining. ## The bounds checking call hierarchy