Skip to content

Commit b5f1f8f

Browse files
authored
Merge pull request MicrosoftDocs#5587 from Rageking8/tweak-keywords-cpp-topic
Tweak "Keywords (C++)" topic
2 parents d99a921 + 743d5b4 commit b5f1f8f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/cpp/keywords-cpp.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
115115
:::column-end:::
116116
:::row-end:::
117117

118-
<sup>a</sup> The Microsoft-specific **`__asm`** keyword replaces C++ **`asm`** syntax. **`asm`** is reserved for compatibility with other C++ implementations, but not implemented. Use **`__asm`** for inline assembly on x86 targets. Microsoft C++ doesn't support Inline assembly for other targets.
118+
<sup>a</sup> The Microsoft-specific **`__asm`** keyword replaces C++ **`asm`** syntax. **`asm`** is reserved for compatibility with other C++ implementations, but not implemented. Use **`__asm`** for inline assembly on x86 targets. Microsoft C++ doesn't support inline assembly for other targets.
119119

120-
<sup>b</sup> The extended operator synonyms are keywords when [`/permissive-`](../build/reference/permissive-standards-conformance.md) or [`/Za` \(Disable language extensions)](../build/reference/za-ze-disable-language-extensions.md) is specified. They aren't keywords when Microsoft extensions are enabled.
120+
<sup>b</sup> The extended operator synonyms are keywords when [`/permissive-`](../build/reference/permissive-standards-conformance.md) or [`/Za` (Disable language extensions)](../build/reference/za-ze-disable-language-extensions.md) is specified. They aren't keywords when Microsoft extensions are enabled.
121121

122122
<sup>c</sup> Supported when [`/std:c++20`](../build/reference/std-specify-language-standard-version.md) or later (such as **`/std:c++latest`**) is specified.
123123

124124
## Microsoft-specific C++ keywords
125125

126126
In C++, identifiers that contain two consecutive underscores are reserved for compiler implementations. The Microsoft convention is to precede Microsoft-specific keywords with double underscores. These words can't be used as identifier names.
127127

128-
Microsoft extensions are enabled by default. To ensure that your programs are fully portable, you can disable Microsoft extensions by specifying the [`/permissive-`](../build/reference/permissive-standards-conformance.md) or [`/Za` \(Disable language extensions)](../build/reference/za-ze-disable-language-extensions.md) option during compilation. These options disable some Microsoft-specific keywords.
128+
Microsoft extensions are enabled by default. To ensure that your programs are fully portable, you can disable Microsoft extensions by specifying the [`/permissive-`](../build/reference/permissive-standards-conformance.md) or [`/Za` (Disable language extensions)](../build/reference/za-ze-disable-language-extensions.md) option during compilation. These options disable some Microsoft-specific keywords.
129129

130130
When Microsoft extensions are enabled, you can use the Microsoft-specific keywords in your programs. For ANSI conformance, these keywords are prefaced by a double underscore. For backward compatibility, single-underscore versions of many of the double-underscored keywords are supported. The **`__cdecl`** keyword is available with no leading underscore.
131131

@@ -166,11 +166,11 @@ The **`__based`** keyword has limited uses for 32-bit and 64-bit target compilat
166166
[`__m64`](m64.md)\
167167
[`__multiple_inheritance`](inheritance-keywords.md) <sup>e</sup>\
168168
[`__ptr32`](ptr32-ptr64.md) <sup>e</sup>\
169-
[`__ptr64`](ptr32-ptr64.md)<sup>e</sup>\
169+
[`__ptr64`](ptr32-ptr64.md) <sup>e</sup>\
170170
[`__raise`](raise.md)\
171171
[`__restrict`](extension-restrict.md) <sup>e</sup>\
172-
[`__single_inheritance`](inheritance-keywords.md)<sup>e</sup>\
173-
[`__sptr`](sptr-uptr.md)<sup>e</sup>\
172+
[`__single_inheritance`](inheritance-keywords.md) <sup>e</sup>\
173+
[`__sptr`](sptr-uptr.md) <sup>e</sup>\
174174
[`__stdcall`](stdcall.md) <sup>e</sup>
175175
:::column-end:::
176176
:::column:::
@@ -191,7 +191,7 @@ The **`__based`** keyword has limited uses for 32-bit and 64-bit target compilat
191191

192192
<sup>e</sup> For backward compatibility with previous versions, these keywords are available both with two leading underscores and a single leading underscore when Microsoft extensions are enabled (the default).
193193

194-
## Microsoft keywords in __declspec modifiers
194+
## Microsoft keywords in `__declspec` modifiers
195195

196196
These identifiers are extended attributes for the **`__declspec`** modifier. They're considered keywords within that context.
197197

0 commit comments

Comments
 (0)