diff --git a/docs/cpp/attributes.md b/docs/cpp/attributes.md index 5e6cfc32fc..20f89c6ed1 100644 --- a/docs/cpp/attributes.md +++ b/docs/cpp/attributes.md @@ -177,7 +177,7 @@ The Microsoft-specific attribute `[[msvc::flatten]]` is similar to `[[msvc::forc ### `[[msvc::forceinline]]` -When placed before a function declaration, the Microsoft-specific attribute `[[msvc::forceinline]]` has the same meaning as `__forceinline`. +When placed before a function declaration, the Microsoft-specific attribute `[[msvc::forceinline]]` behaves similarly to `__forceinline`, but preserves the creation of a symbol in the translation unit where the function is defined. ### `[[msvc::forceinline_calls]]` diff --git a/docs/cpp/inline-functions-cpp.md b/docs/cpp/inline-functions-cpp.md index f67599ff01..3d5bde786e 100644 --- a/docs/cpp/inline-functions-cpp.md +++ b/docs/cpp/inline-functions-cpp.md @@ -180,7 +180,7 @@ The C++ Standard defines a common set of attributes. It also allows compiler ven |Attribute | Meaning | |---------|---------| -| [`[msvc::forceinline]`](/cpp/cpp/attributes#msvcforceinline)| Has the same meaning as **`__forceinline`**.| +| [`[msvc::forceinline]`](/cpp/cpp/attributes#msvcforceinline)| It behaves similarly to **`__forceinline`**, but preserves the creation of a symbol in the translation unit where the function (to which it is applied) is defined.| | [`[msvc::forceinline_calls]`](/cpp/cpp/attributes#msvcforceinline_calls) | Can be placed on or before a statement or block to cause the inline heuristic to force-inline all calls in that statement or block.| | [`[msvc::flatten]`](/cpp/cpp/attributes#msvcflatten) | Similar to `[[msvc::forceinline_calls]]`, but recursively force-inlines all calls in the scope it's applied to until no calls are left. | | [`[msvc::noinline]`](/cpp/cpp/attributes#msvcnoinline) | When placed before a function declaration, has the same meaning as `__declspec(noinline)`. |