From dd09025c0f870ac428fd5480c12d7aa2849e1a7b Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Sun, 27 Jul 2025 21:30:53 +0800
Subject: [PATCH 1/2] Normalize single space before `sup` element in "Keywords
(C++)" topic
---
docs/cpp/keywords-cpp.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/cpp/keywords-cpp.md b/docs/cpp/keywords-cpp.md
index 0bb5fff6c0..e68b54476c 100644
--- a/docs/cpp/keywords-cpp.md
+++ b/docs/cpp/keywords-cpp.md
@@ -166,11 +166,11 @@ The **`__based`** keyword has limited uses for 32-bit and 64-bit target compilat
[`__m64`](m64.md)\
[`__multiple_inheritance`](inheritance-keywords.md) e\
[`__ptr32`](ptr32-ptr64.md) e\
- [`__ptr64`](ptr32-ptr64.md)e\
+ [`__ptr64`](ptr32-ptr64.md) e\
[`__raise`](raise.md)\
[`__restrict`](extension-restrict.md) e\
- [`__single_inheritance`](inheritance-keywords.md)e\
- [`__sptr`](sptr-uptr.md)e\
+ [`__single_inheritance`](inheritance-keywords.md) e\
+ [`__sptr`](sptr-uptr.md) e\
[`__stdcall`](stdcall.md) e
:::column-end:::
:::column:::
From 743d5b40c0258812f638b94749dd387d222513fd Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Sun, 27 Jul 2025 21:34:02 +0800
Subject: [PATCH 2/2] Nits for "Keywords (C++)" topic
---
docs/cpp/keywords-cpp.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/cpp/keywords-cpp.md b/docs/cpp/keywords-cpp.md
index e68b54476c..8d9269c07f 100644
--- a/docs/cpp/keywords-cpp.md
+++ b/docs/cpp/keywords-cpp.md
@@ -115,9 +115,9 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
:::column-end:::
:::row-end:::
-a 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.
+a 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.
-b 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.
+b 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.
c Supported when [`/std:c++20`](../build/reference/std-specify-language-standard-version.md) or later (such as **`/std:c++latest`**) is specified.
@@ -125,7 +125,7 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
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.
-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.
+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.
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.
@@ -191,7 +191,7 @@ The **`__based`** keyword has limited uses for 32-bit and 64-bit target compilat
e 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).
-## Microsoft keywords in __declspec modifiers
+## Microsoft keywords in `__declspec` modifiers
These identifiers are extended attributes for the **`__declspec`** modifier. They're considered keywords within that context.