Skip to content

Commit 84f0628

Browse files
author
Colin Robertson
committed
Fix inline function keyword links
1 parent 343b81c commit 84f0628

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

docs/build/reference/ob-inline-function-expansion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Controls inline expansion of functions.
6666
Disables inline expansions. By default, expansion occurs at the compiler's discretion on all functions, often referred to as *auto-inlining*.
6767

6868
**1**
69-
Allows expansion only of functions marked [inline](../../misc/inline-inline-forceinline.md), [__inline](../../misc/inline-inline-forceinline.md), or [__forceinline](../../misc/inline-inline-forceinline.md), or in a C++ member function defined in a class declaration.
69+
Allows expansion only of functions marked [inline](../../cpp/inline-functions-cpp.md), [__inline](../../cpp/inline-functions-cpp.md), or [__forceinline](../../cpp/inline-functions-cpp.md), or in a C++ member function defined in a class declaration.
7070

7171
**2**
7272
The default value. Allows expansion of functions marked as `inline`, `__inline`, or `__forceinline`, and any other function that the compiler chooses.

docs/build/reference/optimization-pragmas-and-keywords.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Several keywords and pragmas that you use in your C or C++ code affect optimizat
4141

4242
- [__assume](../../intrinsics/assume.md)
4343

44-
- [inline, _inline, or \__forceinline](../../misc/inline-inline-forceinline.md)
44+
- [inline, _inline, or \__forceinline](../../cpp/inline-functions-cpp.md)
4545

4646
- [#pragma auto_inline](../../preprocessor/auto-inline.md)
4747

docs/c-language/inline-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ translation.priority.ht:
5959
**END Microsoft Specific**
6060

6161
## See Also
62-
[inline, __inline, \__forceinline](../misc/inline-inline-forceinline.md)
62+
[inline, __inline, \__forceinline](../cpp/inline-functions-cpp.md)

docs/c-language/summary-of-declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ translation.priority.ht:
5252
|-|-|-|
5353
|[__asm](../assembler/inline/asm.md)|[__clrcall](../cpp/clrcall.md)|[__stdcall](../cpp/stdcall.md)|
5454
|[__based](../cpp/based-grammar.md)|[__fastcall](../cpp/fastcall.md)|[__thiscall](../cpp/thiscall.md)|
55-
|[__cdecl](../cpp/cdecl.md)|[__inline](../misc/inline-inline-forceinline.md)|[__vectorcall](../cpp/vectorcall.md)|
55+
|[__cdecl](../cpp/cdecl.md)|[__inline](../cpp/inline-functions-cpp.md)|[__vectorcall](../cpp/vectorcall.md)|
5656

5757
*init-declarator-list*:
5858
*init-declarator*

docs/cpp/keywords-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
9191
|[__assume](../intrinsics/assume.md)|[__based](../cpp/based-pointers-cpp.md)|[__box](../misc/box.md) <sup>2</sup>|
9292
|[__cdecl](../cpp/cdecl.md)|[__declspec](../cpp/declspec.md)|[__delegate](../misc/delegate.md) <sup>2</sup>|
9393
|[__event](../cpp/event.md)|[__except](../cpp/try-except-statement.md)|[__fastcall](../cpp/fastcall.md)|
94-
|[__finally](../cpp/try-finally-statement.md)|[__forceinline](../misc/inline-inline-forceinline.md)|[__gc](../misc/gc.md) <sup>2</sup>|
94+
|[__finally](../cpp/try-finally-statement.md)|[__forceinline](../cpp/inline-functions-cpp.md)|[__gc](../misc/gc.md) <sup>2</sup>|
9595
|[__hook](../cpp/hook.md) <sup>3</sup>|[__identifier](../windows/identifier-cpp-cli.md)|[__if_exists](../cpp/if-exists-statement.md)|
96-
|[__if_not_exists](../cpp/if-not-exists-statement.md)|[__inline](../misc/inline-inline-forceinline.md)|[__int16](../cpp/int8-int16-int32-int64.md)|
96+
|[__if_not_exists](../cpp/if-not-exists-statement.md)|[__inline](../cpp/inline-functions-cpp.md)|[__int16](../cpp/int8-int16-int32-int64.md)|
9797
|[__int32](../cpp/int8-int16-int32-int64.md)|[__int64](../cpp/int8-int16-int32-int64.md)|[__int8](../cpp/int8-int16-int32-int64.md)|
9898
|[__interface](../cpp/interface.md)|[__leave](../cpp/try-finally-statement.md)|[__m128](../cpp/m128.md)|
9999
|[__m128d](../cpp/m128d.md)|[__m128i](../cpp/m128i.md)|[__m64](../cpp/m64.md)|
@@ -117,7 +117,7 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
117117
|[float](../cpp/fundamental-types-cpp.md)|[for](../cpp/for-statement-cpp.md)|[for each, in](../dotnet/for-each-in.md)|
118118
|[friend](../cpp/friend-cpp.md)|[friend_as](../preprocessor/hash-using-directive-cpp.md)|[gcnew](../windows/ref-new-gcnew-cpp-component-extensions.md)|
119119
|[generic](../windows/generics-cpp-component-extensions.md)|[goto](../cpp/goto-statement-cpp.md)|[if](../cpp/if-else-statement-cpp.md)|
120-
|[initonly](../dotnet/initonly-cpp-cli.md)|[inline](../misc/inline-inline-forceinline.md)|[int](../cpp/fundamental-types-cpp.md)|
120+
|[initonly](../dotnet/initonly-cpp-cli.md)|[inline](../cpp/inline-functions-cpp.md)|[int](../cpp/fundamental-types-cpp.md)|
121121
|[interface class](../windows/interface-class-cpp-component-extensions.md)|[interface struct](../windows/interface-class-cpp-component-extensions.md)|[interior_ptr](../windows/interior-ptr-cpp-cli.md)|
122122
|[literal](../windows/literal-cpp-component-extensions.md)|[long](../cpp/fundamental-types-cpp.md)|[mutable](../cpp/mutable-data-members-cpp.md)|
123123
|[naked](../cpp/naked-cpp.md) <sup>1</sup>|[namespace](../misc/namespace-declaration.md)|[new](../windows/new-new-slot-in-vtable-cpp-component-extensions.md)|

docs/cpp/naked-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ __declspec(naked) declarator
5151
## Remarks
5252
Because the `naked` attribute is only relevant to the definition of a function and is not a type modifier, naked functions must use extended attribute syntax and the [__declspec](../cpp/declspec.md) keyword.
5353

54-
The compiler cannot generate an inline function for a function marked with the naked attribute, even if the function is also marked with the [__forceinline](../misc/inline-inline-forceinline.md) keyword.
54+
The compiler cannot generate an inline function for a function marked with the naked attribute, even if the function is also marked with the [__forceinline](../cpp/inline-functions-cpp.md) keyword.
5555

5656
The compiler issues an error if the `naked` attribute is applied to anything other than the definition of a non-member method.
5757

docs/cpp/noinline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ class X {
5757
## See Also
5858
[__declspec](../cpp/declspec.md)
5959
[Keywords](../cpp/keywords-cpp.md)
60-
[inline, __inline, \__forceinline](../misc/inline-inline-forceinline.md)
60+
[inline, __inline, \__forceinline](../cpp/inline-functions-cpp.md)

docs/cpp/safebuffers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ __declspec( safebuffers )
5656
> Buffer security checks provide important security protection and have a negligible affect on performance. Therefore, we recommend that you do not suppress them, except in the rare case where the performance of a function is a critical concern and the function is known to be safe.
5757
5858
## Inline Functions
59-
A *primary function* can use an [inlining](../misc/inline-inline-forceinline.md) keyword to insert a copy of a *secondary function*. If the __`declspec(safebuffers)` keyword is applied to a function, buffer overrun detection is suppressed for that function. However, inlining affects the \_\_`declspec(safebuffers)` keyword in the following ways.
59+
A *primary function* can use an [inlining](../cpp/inline-functions-cpp.md) keyword to insert a copy of a *secondary function*. If the __`declspec(safebuffers)` keyword is applied to a function, buffer overrun detection is suppressed for that function. However, inlining affects the \_\_`declspec(safebuffers)` keyword in the following ways.
6060

6161
Suppose the **/GS** compiler option is specified for both functions, but the primary function specifies the __`declspec(safebuffers)` keyword. The data structures in the secondary function make it eligible for security checks, and the function does not suppress those checks. In this case:
6262

63-
- Specify the [__forceinline](../misc/inline-inline-forceinline.md) keyword on the secondary function to force the compiler to inline that function regardless of compiler optimizations.
63+
- Specify the [__forceinline](../cpp/inline-functions-cpp.md) keyword on the secondary function to force the compiler to inline that function regardless of compiler optimizations.
6464

6565
- Because the secondary function is eligible for security checks, security checks are also applied to the primary function even though it specifies the __`declspec(safebuffers)` keyword.
6666

@@ -95,5 +95,5 @@ int wmain() {
9595
## See Also
9696
[__declspec](../cpp/declspec.md)
9797
[Keywords](../cpp/keywords-cpp.md)
98-
[inline, __inline, \__forceinline](../misc/inline-inline-forceinline.md)
98+
[inline, __inline, \__forceinline](../cpp/inline-functions-cpp.md)
9999
[strict_gs_check](../preprocessor/strict-gs-check.md)

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4750.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ translation.priority.mt:
4242

4343
### To correct this error
4444

45-
1. Ensure that the 'identifier' function is not modified with the [__forceinline](../../misc/inline-inline-forceinline.md) specifier.
45+
1. Ensure that the 'identifier' function is not modified with the [__forceinline](../../cpp/inline-functions-cpp.md) specifier.
4646

4747
2. Ensure that the 'identifier' function does not contain a [_alloca](../../c-runtime-library/reference/alloca.md) function that is contained in a loop.
4848

docs/error-messages/compiler-warnings/compiler-warning-level-2-c4396.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ translation.priority.mt:
3838
# Compiler Warning (level 2) C4396
3939
"name" : the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
4040

41-
A specialization of a function template cannot specify any of the [inline](../../misc/inline-inline-forceinline.md) specifiers. The compiler issues warning C4396 and ignores the inline specifier.
41+
A specialization of a function template cannot specify any of the [inline](../../cpp/inline-functions-cpp.md) specifiers. The compiler issues warning C4396 and ignores the inline specifier.
4242

4343
### To correct this error
4444

0 commit comments

Comments
 (0)