You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/reference/ob-inline-function-expansion.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Controls inline expansion of functions.
66
66
Disables inline expansions. By default, expansion occurs at the compiler's discretion on all functions, often referred to as *auto-inlining*.
67
67
68
68
**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.
70
70
71
71
**2**
72
72
The default value. Allows expansion of functions marked as `inline`, `__inline`, or `__forceinline`, and any other function that the compiler chooses.
Copy file name to clipboardExpand all lines: docs/cpp/naked-cpp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ __declspec(naked) declarator
51
51
## Remarks
52
52
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.
53
53
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.
55
55
56
56
The compiler issues an error if the `naked` attribute is applied to anything other than the definition of a non-member method.
Copy file name to clipboardExpand all lines: docs/cpp/safebuffers.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,11 @@ __declspec( safebuffers )
56
56
> 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.
57
57
58
58
## 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.
60
60
61
61
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:
62
62
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.
64
64
65
65
- 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.
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warning-level-1-c4750.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ translation.priority.mt:
42
42
43
43
### To correct this error
44
44
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.
46
46
47
47
2. Ensure that the 'identifier' function does not contain a [_alloca](../../c-runtime-library/reference/alloca.md) function that is contained in a loop.
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warning-level-2-c4396.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ translation.priority.mt:
38
38
# Compiler Warning (level 2) C4396
39
39
"name" : the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
40
40
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.
0 commit comments