Skip to content

Commit 12354c0

Browse files
author
Colin Robertson
authored
Update C26826.
Canonicalize core guidelines link. Include version info. Make Acrolinx happier.
1 parent 6ba6d45 commit 12354c0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/code-quality/c26826.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ helpviewer_keywords: ["C26826"]
99

1010
> Don't use C-style variable arguments (f.55).
1111
12-
For more information, see [F.55: Don't use `va_arg` arguments](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#f55-dont-use-va_arg-arguments) in the C++ Core Guidelines.
12+
For more information, see [F.55: Don't use `va_arg` arguments](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#F-varargs) in the C++ Core Guidelines.
1313

14-
This check warns on all usages of `va_list`, `va_start`, `va_arg`, and `va_end`, discouraging the use of C-style variable arguments. C-style variable arguments are unsafe because they require the programmer to assume that the arguments are all passed / read with the correct types.
14+
## Remarks
15+
16+
This check warns on all usages of `va_list`, `va_start`, `va_arg`, and `va_end`, discouraging the use of C-style variable arguments. C-style variable arguments are unsafe because they require the programmer to assume that the arguments are all passed and read with the correct types.
17+
18+
Warning C26826 is available starting in Visual Studio 2022 version 17.1.
1519

1620
## Example
1721

@@ -41,4 +45,3 @@ Alternatives to C-style variable arguments include:
4145
- variadic templates
4246
- `std::variant` arguments
4347
- `std::initializer_list`
44-

0 commit comments

Comments
 (0)