Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cpp/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]]`

Expand Down
2 changes: 1 addition & 1 deletion docs/cpp/inline-functions-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`. |
Expand Down