Skip to content

Remove trailing comma in function prototypes #5180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
14 changes: 7 additions & 7 deletions docs/atl-mfc-shared/reference/cstringt-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -998,11 +998,11 @@ Concatenates two strings or a character and a string.
```cpp
friend CStringT operator+(const CStringT& str1, const CStringT& str2);
friend CStringT operator+(const CStringT& str1, PCXSTR psz2);
friend CStringT operator+(PCXSTR psz1, const CStringT& str2,);
friend CStringT operator+(char ch1, const CStringT& str2,);
friend CStringT operator+(PCXSTR psz1, const CStringT& str2);
friend CStringT operator+(char ch1, const CStringT& str2);
friend CStringT operator+(const CStringT& str1, char ch2);
friend CStringT operator+(const CStringT& str1, wchar_t ch2);
friend CStringT operator+(wchar_t ch1, const CStringT& str2,);
friend CStringT operator+(wchar_t ch1, const CStringT& str2);
```

### Parameters
Expand Down Expand Up @@ -1102,8 +1102,8 @@ friend bool operator==(const CStringT& str1, PCXSTR psz2) throw();
friend bool operator==(const CStringT& str1, PCYSTR psz2) throw();
friend bool operator==(const CStringT& str1, XCHAR ch2) throw();
friend bool operator==(PCXSTR psz1, const CStringT& str2) throw();
friend bool operator==(PCYSTR psz1, const CStringT& str2,) throw();
friend bool operator==(XCHAR ch1, const CStringT& str2,) throw();
friend bool operator==(PCYSTR psz1, const CStringT& str2) throw();
friend bool operator==(XCHAR ch1, const CStringT& str2) throw();
```

### Parameters
Expand Down Expand Up @@ -1144,8 +1144,8 @@ friend bool operator!=(const CStringT& str1, PCXSTR psz2) throw();
friend bool operator!=(const CStringT& str1, PCYSTR psz2) throw();
friend bool operator!=(const CStringT& str1, XCHAR ch2) throw();
friend bool operator!=(PCXSTR psz1, const CStringT& str2) throw();
friend bool operator!=(PCYSTR psz1, const CStringT& str2,) throw();
friend bool operator!=(XCHAR ch1, const CStringT& str2,) throw();
friend bool operator!=(PCYSTR psz1, const CStringT& str2) throw();
friend bool operator!=(XCHAR ch1, const CStringT& str2) throw();
```

### Parameters
Expand Down
7 changes: 3 additions & 4 deletions docs/atl/reference/cstockpropimpl-class.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: CStockPropImpl Class"
title: "CStockPropImpl Class"
description: "Learn more about: CStockPropImpl Class"
ms.date: "05/06/2019"
f1_keywords: ["CStockPropImpl", "ATLCTL/ATL::CStockPropImpl", "ATLCTL/ATL::get_Appearance", "ATLCTL/ATL::get_AutoSize", "ATLCTL/ATL::get_BackColor", "ATLCTL/ATL::get_BackStyle", "ATLCTL/ATL::get_BorderColor", "ATLCTL/ATL::get_BorderStyle", "ATLCTL/ATL::get_BorderVisible", "ATLCTL/ATL::get_BorderWidth", "ATLCTL/ATL::get_Caption", "ATLCTL/ATL::get_DrawMode", "ATLCTL/ATL::get_DrawStyle", "ATLCTL/ATL::get_DrawWidth", "ATLCTL/ATL::get_Enabled", "ATLCTL/ATL::get_FillColor", "ATLCTL/ATL::get_FillStyle", "ATLCTL/ATL::get_Font", "ATLCTL/ATL::get_ForeColor", "ATLCTL/ATL::get_HWND", "ATLCTL/ATL::get_MouseIcon", "ATLCTL/ATL::get_MousePointer", "ATLCTL/ATL::get_Picture", "ATLCTL/ATL::get_ReadyState", "ATLCTL/ATL::get_TabStop", "ATLCTL/ATL::get_Text", "ATLCTL/ATL::getvalid", "ATLCTL/ATL::get_Window", "ATLCTL/ATL::put_Appearance", "ATLCTL/ATL::put_AutoSize", "ATLCTL/ATL::put_BackColor", "ATLCTL/ATL::put_BackStyle", "ATLCTL/ATL::put_BorderColor", "ATLCTL/ATL::put_BorderStyle", "ATLCTL/ATL::put_BorderVisible", "ATLCTL/ATL::put_BorderWidth", "ATLCTL/ATL::put_Caption", "ATLCTL/ATL::put_DrawMode", "ATLCTL/ATL::put_DrawStyle", "ATLCTL/ATL::put_DrawWidth", "ATLCTL/ATL::put_Enabled", "ATLCTL/ATL::put_FillColor", "ATLCTL/ATL::put_FillStyle", "ATLCTL/ATL::put_Font", "ATLCTL/ATL::put_ForeColor", "ATLCTL/ATL::put_HWND", "ATLCTL/ATL::put_MouseIcon", "ATLCTL/ATL::put_MousePointer", "ATLCTL/ATL::put_Picture", "ATLCTL/ATL::put_ReadyState", "ATLCTL/ATL::put_TabStop", "ATLCTL/ATL::put_Text", "ATLCTL/ATL::putvalid", "ATLCTL/ATL::put_Window", "ATLCTL/ATL::putref_Font", "ATLCTL/ATL::putref_MouseIcon", "ATLCTL/ATL::putref_Picture"]
helpviewer_keywords: ["CStockPropImpl class", "controls [ATL], stock properties", "stock properties, ATL controls"]
ms.assetid: 45f11d7d-6580-4a0e-872d-3bc8b836cfda
---
# CStockPropImpl Class

Expand Down Expand Up @@ -607,7 +606,7 @@ Returns S_OK on success, or an error HRESULT on failure.
Call this method to set the value of flag that indicates if the control cannot be any other size.

```
HRESULT STDMETHODCALLTYPE put_AutoSize(VARIANT_BOOL bAutoSize,);
HRESULT STDMETHODCALLTYPE put_AutoSize(VARIANT_BOOL bAutoSize);
```

### Parameters
Expand Down Expand Up @@ -1100,5 +1099,5 @@ The same as [CStockPropImpl::put_Picture](#put_picture), but with a reference co

## See also

[Class Overview](../../atl/atl-class-overview.md)<br/>
[Class Overview](../../atl/atl-class-overview.md)\
[IDispatchImpl Class](../../atl/reference/idispatchimpl-class.md)
5 changes: 2 additions & 3 deletions docs/c-runtime-library/reference/sopen-s-wsopen-s.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
description: "Learn more about: _sopen_s, _wsopen_s"
title: "_sopen_s, _wsopen_s"
description: "Learn more about: _sopen_s, _wsopen_s"
ms.date: 05/18/2022
api_name: ["_sopen_s", "_wsopen_s", "_o__sopen_s", "_o__wsopen_s"]
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-stdio-l1-1-0.dll"]
api_type: ["DLLExport"]
topic_type: ["apiref"]
f1_keywords: ["CORECRT_IO/_sopen_s", "CORECRT_WIO/_wsopen_s", "TCHAR/_tsopen_s", "_sopen_s", "_wsopen_s", "_tsopen_s", "sopen_s", "wsopen_s"]
helpviewer_keywords: ["sopen_s function", "_wsopen_s function", "wsopen_s function", "opening files, for sharing", "files [C++], opening", "_sopen_s function", "files [C++], sharing"]
ms.assetid: 059a0084-d08c-4973-9174-55e391b72aa2
---
# `_sopen_s`, `_wsopen_s`

Expand All @@ -29,7 +28,7 @@ errno_t _wsopen_s(
const wchar_t *filename,
int oflag,
int shflag,
int pmode,
int pmode
);
```

Expand Down
5 changes: 2 additions & 3 deletions docs/intrinsics/arm-intrinsics.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/intrinsics/x86-intrinsics-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ The following table lists the intrinsics available on x86 processors. The Techno
| [`_mm256_set1_ps`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_set1_ps) | AVX | immintrin.h | `__m256 _mm256_set1_ps(float);` |
| [`_mm256_setr_epi16`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setr_epi16) | AVX | immintrin.h | `(__m256i _mm256_setr_epi16(short, short, short, short, short, short, short, short, short, short, short, short, short, short, short, short);` |
| [`_mm256_setr_epi32`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setr_epi32) | AVX | immintrin.h | `__m256i _mm256_setr_epi32(int, int, int, int, int, int, int, int);` |
| [`_mm256_setr_epi8`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setr_epi8) | AVX | immintrin.h | `(__m256i _mm256_setr_epi8(char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char,);` |
| [`_mm256_setr_epi8`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setr_epi8) | AVX | immintrin.h | `(__m256i _mm256_setr_epi8(char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char);` |
| [`_mm256_setr_pd`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setr_pd) | AVX | immintrin.h | `__m256d _mm256_setr_pd(double, double, double, double);` |
| [`_mm256_setr_ps`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setr_ps) | AVX | immintrin.h | `__m256 _mm256_setr_ps(float, float, float, float, float, float, float, float);` |
| [`_mm256_setzero_pd`](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_setzero_pd) | AVX | immintrin.h | `__m256d _mm256_setzero_pd(void);` |
Expand Down
22 changes: 11 additions & 11 deletions docs/mfc/reference/cgopherconnection-class.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: CGopherConnection Class"
title: "CGopherConnection Class"
description: "Learn more about: CGopherConnection Class"
ms.date: "11/04/2016"
f1_keywords: ["CGopherConnection", "AFXINET/CGopherConnection", "AFXINET/CGopherConnection::CGopherConnection", "AFXINET/CGopherConnection::CreateLocator", "AFXINET/CGopherConnection::GetAttribute", "AFXINET/CGopherConnection::OpenFile"]
helpviewer_keywords: ["CGopherConnection [MFC], CGopherConnection", "CGopherConnection [MFC], CreateLocator", "CGopherConnection [MFC], GetAttribute", "CGopherConnection [MFC], OpenFile"]
ms.assetid: b5b96aea-ac99-430e-bd84-d1372b43f78f
---
# CGopherConnection Class

Expand Down Expand Up @@ -167,8 +166,9 @@ Call this member function to retrieve specific attribute information about an it

```
BOOL GetAttribute(
CGopherLocator& refLocator CString strRequestedAttributes,
CString& strResult,);
CGopherLocator& refLocator,
CString strRequestedAttributes,
CString& strResult);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in the missing comma between the first and second parameter.

```

### Parameters
Expand Down Expand Up @@ -222,11 +222,11 @@ Override the *dwContext* default to set the context identifier to a value of you

## See also

[CInternetConnection Class](../../mfc/reference/cinternetconnection-class.md)<br/>
[Hierarchy Chart](../../mfc/hierarchy-chart.md)<br/>
[CFtpConnection Class](../../mfc/reference/cftpconnection-class.md)<br/>
[CHttpConnection Class](../../mfc/reference/chttpconnection-class.md)<br/>
[CInternetConnection Class](../../mfc/reference/cinternetconnection-class.md)<br/>
[CGopherLocator Class](../../mfc/reference/cgopherlocator-class.md)<br/>
[CGopherFile Class](../../mfc/reference/cgopherfile-class.md)<br/>
[CInternetConnection Class](../../mfc/reference/cinternetconnection-class.md)\
[Hierarchy Chart](../../mfc/hierarchy-chart.md)\
[CFtpConnection Class](../../mfc/reference/cftpconnection-class.md)\
[CHttpConnection Class](../../mfc/reference/chttpconnection-class.md)\
[CInternetConnection Class](../../mfc/reference/cinternetconnection-class.md)\
[CGopherLocator Class](../../mfc/reference/cgopherlocator-class.md)\
[CGopherFile Class](../../mfc/reference/cgopherfile-class.md)\
[CInternetSession Class](../../mfc/reference/cinternetsession-class.md)
7 changes: 3 additions & 4 deletions docs/mfc/reference/cmfcdynamiclayout-class.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
description: "Learn more about: CMFCDynamicLayout Class"
title: "CMFCDynamicLayout Class"
description: "Learn more about: CMFCDynamicLayout Class"
ms.date: "08/29/2019"
f1_keywords: ["CMFCDynamicLayout", "AFXLAYOUT/CMFCDynamicLayout", "AFXLAYOUT/CMFCDynamicLayout::AddItem", "AFXLAYOUT/CMFCDynamicLayout::Adjust", "AFXLAYOUT/CMFCDynamicLayout::Create", "AFXLAYOUT/CMFCDynamicLayout::GetHostWnd", "AFXLAYOUT/CMFCDynamicLayout::GetMinSize", "AFXLAYOUT/CMFCDynamicLayout::GetWindowRect", "AFXLAYOUT/CMFCDynamicLayout::HasItem", "AFXLAYOUT/CMFCDynamicLayout::IsEmpty", "AFXLAYOUT/CMFCDynamicLayout::LoadResource", "AFXLAYOUT/CMFCDynamicLayout::SetMinSize"]
ms.assetid: c2df2976-f049-47fc-9cf0-abe3e01948bc
---
# CMFCDynamicLayout Class

Expand Down Expand Up @@ -170,7 +169,7 @@ The position and size of a child control is changed dynamically when a hosting w
Retrieves the rectangle for the window's current client area.

```cpp
void GetHostWndRect(CRect& rect,);
void GetHostWndRect(CRect& rect);
```

### Parameters
Expand Down Expand Up @@ -503,5 +502,5 @@ A [SizeSettings](#sizesettings_structure) value that encapsulates the requested

## See also

[Hierarchy Chart](../../mfc/hierarchy-chart.md)<br/>
[Hierarchy Chart](../../mfc/hierarchy-chart.md)\
[Classes](../../mfc/reference/mfc-classes.md)
6 changes: 3 additions & 3 deletions docs/standard-library/atomic-functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Learn more about: <atomic> functions"
title: "<atomic> functions"
description: "Learn more about: <atomic> functions"
ms.date: "07/11/2018"
f1_keywords: ["atomic/std::atomic_compare_exchange_strong", "atomic/std::atomic_compare_exchange_strong_explicit", "atomic/std::atomic_compare_exchange_weak", "atomic/std::atomic_compare_exchange_weak_explicit", "atomic/std::atomic_exchange", "atomic/std::atomic_exchange_explicit", "atomic/std::atomic_fetch_add", "atomic/std::atomic_fetch_add_explicit", "atomic/std::atomic_fetch_and", "atomic/std::atomic_fetch_and_explicit", "atomic/std::atomic_fetch_or", "atomic/std::atomic_fetch_or_explicit", "atomic/std::atomic_fetch_sub", "atomic/std::atomic_fetch_sub_explicit", "atomic/std::atomic_fetch_xor", "atomic/std::atomic_fetch_xor_explicit", "atomic/std::atomic_flag_clear", "atomic/std::atomic_flag_clear_explicit", "atomic/std::atomic_flag_test_and_set", "atomic/std::atomic_flag_test_and_set_explicit", "atomic/std::atomic_init", "atomic/std::atomic_is_lock_free", "atomic/std::atomic_load", "atomic/std::atomic_load_explicit", "atomic/std::atomic_signal_fence", "atomic/std::atomic_store", "atomic/std::atomic_store_explicit", "atomic/std::atomic_thread_fence", "atomic/std::kill_dependency"]
helpviewer_keywords: ["std::atomic_compare_exchange_strong [C++]", "std::atomic_compare_exchange_strong_explicit [C++]", "std::atomic_compare_exchange_weak [C++]", "std::atomic_compare_exchange_weak_explicit [C++]", "std::atomic_exchange [C++]", "std::atomic_exchange_explicit [C++]", "std::atomic_fetch_add [C++]", "std::atomic_fetch_add_explicit [C++]", "std::atomic_fetch_and [C++]", "std::atomic_fetch_and_explicit [C++]", "std::atomic_fetch_or [C++]", "std::atomic_fetch_or_explicit [C++]", "std::atomic_fetch_sub [C++]", "std::atomic_fetch_sub_explicit [C++]", "std::atomic_fetch_xor [C++]", "std::atomic_fetch_xor_explicit [C++]", "std::atomic_flag_clear [C++]", "std::atomic_flag_clear_explicit [C++]", "std::atomic_flag_test_and_set [C++]", "std::atomic_flag_test_and_set_explicit [C++]", "std::atomic_init [C++]", "std::atomic_is_lock_free [C++]", "std::atomic_load [C++]", "std::atomic_load_explicit [C++]", "std::atomic_signal_fence [C++]", "std::atomic_store [C++]", "std::atomic_store_explicit [C++]", "std::atomic_thread_fence [C++]", "std::kill_dependency [C++]"]
Expand Down Expand Up @@ -676,8 +676,8 @@ A [`memory_order`](../standard-library/atomic-enums.md#memory_order_enum).
Sets the **`bool`** flag in an [`atomic_flag`](../standard-library/atomic-flag-structure.md) object to **`true`**, within the constraints of the [`memory_order.memory_order_seq_cst`](../standard-library/atomic-enums.md#memory_order_enum).

```cpp
inline bool atomic_flag_test_and_set(volatile atomic_flag* Flag,) noexcept;
inline bool atomic_flag_test_and_set(atomic_flag* Flag,) noexcept;
inline bool atomic_flag_test_and_set(volatile atomic_flag* Flag) noexcept;
inline bool atomic_flag_test_and_set(atomic_flag* Flag) noexcept;
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/standard-library/basic-string-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -4201,7 +4201,7 @@ Specifies a new size for a string, appending or erasing elements as required.

```cpp
void resize(
size_type count,);
size_type count);

void resize(
size_type count,
Expand Down
5 changes: 2 additions & 3 deletions docs/standard-library/codecvt-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: "describes the Microsoft C runtime `codecvt` class API"
ms.date: "11/09/2020"
f1_keywords: ["xlocale/std::codecvt", "xlocale/std::codecvt::extern_type", "xlocale/std::codecvt::intern_type", "xlocale/std::codecvt::state_type", "xlocale/std::codecvt::always_noconv", "xlocale/std::codecvt::do_always_noconv", "xlocale/std::codecvt::do_encoding", "xlocale/std::codecvt::do_in", "xlocale/std::codecvt::do_length", "xlocale/std::codecvt::do_max_length", "xlocale/std::codecvt::do_out", "xlocale/std::codecvt::do_unshift", "xlocale/std::codecvt::encoding", "xlocale/std::codecvt::in", "xlocale/std::codecvt::length", "xlocale/std::codecvt::max_length", "xlocale/std::codecvt::out", "xlocale/std::codecvt::unshift"]
helpviewer_keywords: ["std::codecvt [C++]", "std::codecvt [C++], extern_type", "std::codecvt [C++], intern_type", "std::codecvt [C++], state_type", "std::codecvt [C++], always_noconv", "std::codecvt [C++], do_always_noconv", "std::codecvt [C++], do_encoding", "std::codecvt [C++], do_in", "std::codecvt [C++], do_length", "std::codecvt [C++], do_max_length", "std::codecvt [C++], do_out", "std::codecvt [C++], do_unshift", "std::codecvt [C++], encoding", "std::codecvt [C++], in", "std::codecvt [C++], length", "std::codecvt [C++], max_length", "std::codecvt [C++], out", "std::codecvt [C++], unshift"]
ms.assetid: 37d3efa1-2b7f-42b6-b04f-7a972c8c2c86
---
# `codecvt` Class

Expand Down Expand Up @@ -228,7 +227,7 @@ virtual result do_in(
const Byte*& next1,
CharType* first2,
CharType* last2,
CharType*& next2,) const;
CharType*& next2) const;
```

### Parameters
Expand Down Expand Up @@ -517,7 +516,7 @@ result in(
const Byte*& next1,
CharType* first2,
CharType* last2,
CharType*& next2,) const;
CharType*& next2) const;
```

### Parameters
Expand Down
5 changes: 2 additions & 3 deletions docs/standard-library/deque-functions.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
description: "Learn more about: <deque> functions"
title: "<deque> functions"
description: "Learn more about: <deque> functions"
ms.date: "11/04/2016"
f1_keywords: ["deque/std::swap"]
ms.assetid: 1d14be53-b0b7-4f66-90cc-65bdeac563fd
---
# `<deque>` functions

Expand All @@ -14,7 +13,7 @@ Exchanges the elements of two deques.
```cpp
void swap(
deque<Type, Allocator>& left,
deque<Type, Allocator>& right,);
deque<Type, Allocator>& right);
```

### Parameters
Expand Down
5 changes: 2 additions & 3 deletions docs/standard-library/insert-iterator-class.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: insert_iterator Class"
title: "insert_iterator Class"
description: "Learn more about: insert_iterator Class"
ms.date: 06/15/2022
f1_keywords: ["iterator/std::insert_iterator", "iterator/std::insert_iterator::container_type", "iterator/std::insert_iterator::reference"]
helpviewer_keywords: ["std::insert_iterator [C++]", "std::insert_iterator [C++], container_type", "std::insert_iterator [C++], reference"]
ms.assetid: d5d86405-872e-4e3b-9e68-c69a2b7e8221
ms.custom: devdivchpfy22
---

Expand Down Expand Up @@ -293,7 +292,7 @@ Inserts a value into the container and returns the iterator updated to point to

```cpp
insert_iterator<Container>& operator=(
typename Container::const_reference val,);
typename Container::const_reference val);

insert_iterator<Container>& operator=(
typename Container::value_type&& val);
Expand Down
Loading