From 94b661c77f447c1959ee81bb95543dab19f932a5 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Wed, 27 Apr 2022 13:30:47 +0100 Subject: [PATCH 1/2] Clarify that `__vectorcall` is still decorated in x64 --- docs/build/reference/decorated-names.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/reference/decorated-names.md b/docs/build/reference/decorated-names.md index 70a2e2d05d..c354024c09 100644 --- a/docs/build/reference/decorated-names.md +++ b/docs/build/reference/decorated-names.md @@ -47,7 +47,7 @@ The function and class names are encoded in the decorated name. The rest of the ## Format of a C decorated name -The form of decoration for a C function depends on the calling convention used in its declaration, as shown in the following table. This is also the decoration format that is used when C++ code is declared to have `extern "C"` linkage. The default calling convention is **`__cdecl`**. Note that in a 64-bit environment, functions are not decorated. +The form of decoration for a C function depends on the calling convention used in its declaration, as shown in the following table. This is also the decoration format that is used when C++ code is declared to have `extern "C"` linkage. The default calling convention is **`__cdecl`**. Note that in a 64-bit environment, functions are not decorated except for the `__vectorcall` calling convention. |Calling convention|Decoration| |------------------------|----------------| From 6eb8b4233e65cff502670a110489249bf52324c6 Mon Sep 17 00:00:00 2001 From: Colin Robertson Date: Tue, 24 May 2022 17:33:51 -0700 Subject: [PATCH 2/2] Make grammar checker happy --- docs/build/reference/decorated-names.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/reference/decorated-names.md b/docs/build/reference/decorated-names.md index c354024c09..f4f07662c7 100644 --- a/docs/build/reference/decorated-names.md +++ b/docs/build/reference/decorated-names.md @@ -47,7 +47,7 @@ The function and class names are encoded in the decorated name. The rest of the ## Format of a C decorated name -The form of decoration for a C function depends on the calling convention used in its declaration, as shown in the following table. This is also the decoration format that is used when C++ code is declared to have `extern "C"` linkage. The default calling convention is **`__cdecl`**. Note that in a 64-bit environment, functions are not decorated except for the `__vectorcall` calling convention. +The form of decoration for a C function depends on the calling convention used in its declaration, as shown in the following table. It's also the decoration format that's used when C++ code is declared to have `extern "C"` linkage. The default calling convention is **`__cdecl`**. In a 64-bit environment, C or `extern "C"` functions are only decorated when using the `__vectorcall` calling convention. |Calling convention|Decoration| |------------------------|----------------|