From b50636761b04707c4b234286def143461932a62e Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Sat, 6 Sep 2025 22:15:08 +0800 Subject: [PATCH 1/4] Add "Remarks" headings for warning references in range [C6251, C6310] --- docs/code-quality/c6255.md | 4 ++-- docs/code-quality/c6258.md | 4 ++-- docs/code-quality/c6260.md | 4 ++-- docs/code-quality/c6268.md | 4 ++-- docs/code-quality/c6269.md | 4 ++-- docs/code-quality/c6276.md | 4 ++-- docs/code-quality/c6277.md | 4 ++-- docs/code-quality/c6279.md | 4 ++-- docs/code-quality/c6280.md | 4 ++-- docs/code-quality/c6283.md | 4 ++-- docs/code-quality/c6285.md | 4 ++-- docs/code-quality/c6290.md | 4 ++-- docs/code-quality/c6291.md | 2 ++ 13 files changed, 26 insertions(+), 24 deletions(-) diff --git a/docs/code-quality/c6255.md b/docs/code-quality/c6255.md index 43f53740cee..8c79c955c8f 100644 --- a/docs/code-quality/c6255.md +++ b/docs/code-quality/c6255.md @@ -10,10 +10,10 @@ ms.assetid: bb6430b2-782a-4410-a8e1-609df06007de > _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead -This warning indicates that a call to `_alloca` has been detected outside of local exception handling. - ## Remarks +This warning indicates that a call to `_alloca` has been detected outside of local exception handling. + `_alloca` should always be called from within the protected range of an exception handler because it can raise a stack overflow exception on failure. If possible, instead of using `_alloca`, consider using `_malloca`, which is a more secure version of `_alloca`. Code analysis name: `UNPROTECTEDUSEOFALLOCA` diff --git a/docs/code-quality/c6258.md b/docs/code-quality/c6258.md index c6c0716a6d0..833dd35e708 100644 --- a/docs/code-quality/c6258.md +++ b/docs/code-quality/c6258.md @@ -10,10 +10,10 @@ ms.assetid: 62f3eed7-d9cd-46eb-8c38-0bc4f647941f > Using `TerminateThread` does not allow proper thread clean up. -This warning indicates that a call to `TerminateThread` has been detected. - ## Remarks +This warning indicates that a call to `TerminateThread` has been detected. + `TerminateThread` is a dangerous function that should only be used in the most extreme cases. For more information about problems associated with TerminateThread call, see [`TerminateThread` function](/windows/desktop/api/processthreadsapi/nf-processthreadsapi-terminatethread). Code analysis name: `USINGTERMINATETHREAD` diff --git a/docs/code-quality/c6260.md b/docs/code-quality/c6260.md index ed765072581..5def9c1bcb9 100644 --- a/docs/code-quality/c6260.md +++ b/docs/code-quality/c6260.md @@ -10,10 +10,10 @@ ms.assetid: 9cbedfcb-32b2-4fe4-99f7-a2d4a7f4422a > `sizeof` * `sizeof` is almost always wrong, did you intend to use a character count or a byte count? -This warning indicates that the results of two **`sizeof`** operations have been multiplied together. - ## Remarks +This warning indicates that the results of two **`sizeof`** operations have been multiplied together. + The C/C++ **`sizeof`** operator returns the number of bytes of storage an object uses. It's typically incorrect to multiply it by another **`sizeof`** operation. Usually, you're interested in the number of bytes in an object or the number of elements in an array (for example, the number of wide-characters in an array). There's some unintuitive behavior associated with **`sizeof`** operator. For example, in C, `sizeof ('\0') == 4`, because a character is of an integral type. In C++, the type of a character literal is **`char`**, so `sizeof ('\0') == 1`. However, in both C and C++, the following relation is true: diff --git a/docs/code-quality/c6268.md b/docs/code-quality/c6268.md index 49ae372e517..a45953a8c6d 100644 --- a/docs/code-quality/c6268.md +++ b/docs/code-quality/c6268.md @@ -10,10 +10,10 @@ ms.assetid: fd81e00a-de2f-498b-b3fe-53ce056042d7 > Incorrect order of operations: ('*TYPE1*')('*TYPE2*')x + y. Possible missing parentheses in ('*TYPE1*')(('*TYPE2*')x + y) -This warning indicates that a complex cast expression might involve a precedence problem when performing pointer arithmetic. Because casts group more closely than binary operators, the result might not be what the programmer intended. In some cases, this defect causes incorrect behavior or a program crash. - ## Remarks +This warning indicates that a complex cast expression might involve a precedence problem when performing pointer arithmetic. Because casts group more closely than binary operators, the result might not be what the programmer intended. In some cases, this defect causes incorrect behavior or a program crash. + In an expression such as: ```cpp diff --git a/docs/code-quality/c6269.md b/docs/code-quality/c6269.md index d910880ed70..91d890e7ac6 100644 --- a/docs/code-quality/c6269.md +++ b/docs/code-quality/c6269.md @@ -10,10 +10,10 @@ ms.assetid: a01fa7fa-fc6c-4af7-ac8c-585e44e60cca > Possible incorrect order of operations: dereference ignored -This warning indicates that the result of a pointer dereference is being ignored, which raises the question of why the pointer is being dereferenced in the first place. - ## Remarks +This warning indicates that the result of a pointer dereference is being ignored, which raises the question of why the pointer is being dereferenced in the first place. + The compiler will correctly optimize away the gratuitous dereference. In some cases, however, this defect may reflect a precedence or logic error. One common cause for this defect is an expression statement of the form: diff --git a/docs/code-quality/c6276.md b/docs/code-quality/c6276.md index 88eb047af53..b116e8871a1 100644 --- a/docs/code-quality/c6276.md +++ b/docs/code-quality/c6276.md @@ -10,10 +10,10 @@ ms.assetid: 88f288da-da81-4d32-ab0f-be9d01a2606a > Cast between semantically different string types. Use of invalid string can lead to undefined behavior. -This warning indicates a potentially incorrect cast from a narrow character string (`char*`) to a wide character string (`wchar_t*`). - ## Remarks +This warning indicates a potentially incorrect cast from a narrow character string (`char*`) to a wide character string (`wchar_t*`). + Because the Microsoft compiler implements wide strings with a character size of 2 bytes, casting from a narrow string might produce strings that aren't correctly terminated. If you use such strings with the `wcs*` functions in the runtime library, they could cause buffer overruns and access violations. Code analysis name: `CHAR_TO_WCHAR_CAST` diff --git a/docs/code-quality/c6277.md b/docs/code-quality/c6277.md index c01fd781f8a..30dfabbba6e 100644 --- a/docs/code-quality/c6277.md +++ b/docs/code-quality/c6277.md @@ -10,10 +10,10 @@ ms.assetid: 2b41252a-68c2-4e92-b005-0458db5f4430 > NULL application name with an unquoted path in call to '*function-name*': results in a security vulnerability if the path contains spaces -This warning indicates that the application name parameter is null and that there might be spaces in the executable path name. - ## Remarks +This warning indicates that the application name parameter is null and that there might be spaces in the executable path name. + Unless the executable name is fully qualified, there's likely to be a security problem. A malicious user could insert a rogue executable with the same name earlier in the path. To correct this warning, you can specify the application name instead of passing null. Alternatively, if you do pass null for the application name, use quotation marks around the executable path. Code analysis name: `CREATEPROCESS_ESCAPE` diff --git a/docs/code-quality/c6279.md b/docs/code-quality/c6279.md index ab28f2ecd13..398e1a0bc76 100644 --- a/docs/code-quality/c6279.md +++ b/docs/code-quality/c6279.md @@ -10,10 +10,10 @@ ms.assetid: 0af88b58-35df-456f-8c02-e8eeffe3b7de > '*variable-name*' is allocated with scalar new, deleted with array delete [] -This warning appears only in C++ code and indicates that the calling function has inconsistently allocated memory with the scalar `new` operator, but freed it with the array `delete[]` operator. If memory is allocated with scalar `new`, it should typically be freed with scalar `delete`. - ## Remarks +This warning appears only in C++ code and indicates that the calling function has inconsistently allocated memory with the scalar `new` operator, but freed it with the array `delete[]` operator. If memory is allocated with scalar `new`, it should typically be freed with scalar `delete`. + The exact ramifications of this defect are difficult to predict. It might cause random behavior or crashes due to usage of uninitialized memory as constructors aren't invoked. Or, it might cause memory allocations and crashes in situations where operators have been overridden. The analysis tool doesn't currently distinguish between these situations. To avoid these kinds of allocation problems altogether, use the mechanisms that are provided by the C++ Standard Library (STL). These include [`shared_ptr`](../standard-library/shared-ptr-class.md), [`unique_ptr`](../standard-library/unique-ptr-class.md), and containers such as [`vector`](../standard-library/vector.md). For more information, see [Smart pointers](../cpp/smart-pointers-modern-cpp.md) and [C++ Standard Library](../standard-library/cpp-standard-library-reference.md). diff --git a/docs/code-quality/c6280.md b/docs/code-quality/c6280.md index f03214777df..046e53583a4 100644 --- a/docs/code-quality/c6280.md +++ b/docs/code-quality/c6280.md @@ -10,10 +10,10 @@ ms.assetid: b91f2966-0876-4c9b-843a-e142f35be864 > '*variable-name*' is allocated with '*function-name-1*', but deleted with '*function-name-2*' -This warning indicates that the calling function has inconsistently allocated memory by using a function from one family and freed it by using a function from another. - ## Remarks +This warning indicates that the calling function has inconsistently allocated memory by using a function from one family and freed it by using a function from another. + The analyzer checks for this condition only when the `_Analysis_mode_(_Analysis_local_leak_checks_)` SAL annotation is specified. By default, this annotation is specified for Windows kernel mode (driver) code. For more information about SAL annotations, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). For example, this warning would be produced if memory is allocated by using `malloc` but freed by using `GlobalFree` or `delete`. In the specific cases of mismatches between array `new[]` and scalar `delete`, more precise warnings are reported instead of this one. diff --git a/docs/code-quality/c6283.md b/docs/code-quality/c6283.md index 436a46f1f52..12cb8a4095b 100644 --- a/docs/code-quality/c6283.md +++ b/docs/code-quality/c6283.md @@ -10,10 +10,10 @@ ms.assetid: 7760d32e-6d71-4c81-a6d2-719c9c76c2bb > '*variable-name*' is allocated with array new [], but deleted with scalar delete -This warning appears only in C++ code and indicates that the calling function has inconsistently allocated memory with the array `new []` operator, but freed it with the scalar `delete` operator. - ## Remarks +This warning appears only in C++ code and indicates that the calling function has inconsistently allocated memory with the array `new []` operator, but freed it with the scalar `delete` operator. + This defect might cause leaks, memory corruptions, and, in situations where operators have been overridden, crashes. If memory is allocated with array `new []`, it should typically be freed with array `delete[]`. Warning C6283 only applies to arrays of primitive types such as integers or characters. If elements of the array are objects of class type then warning [C6278](../code-quality/c6278.md) is issued. diff --git a/docs/code-quality/c6285.md b/docs/code-quality/c6285.md index 44221b6a57e..c867f27ea19 100644 --- a/docs/code-quality/c6285.md +++ b/docs/code-quality/c6285.md @@ -10,10 +10,10 @@ ms.assetid: f5bc6d3d-d33b-42c8-98d2-92ec8ab17193 > ('*non-zero constant*' \|\| '*non-zero constant*') is always a non-zero constant. Did you intend to use the bitwise-and operator? -This warning indicates that two constant values, both greater than one, were detected as arguments to a logical-or operation that occurs in a test context. This expression is always TRUE. - ## Remarks +This warning indicates that two constant values, both greater than one, were detected as arguments to a logical-or operation that occurs in a test context. This expression is always TRUE. + Constant values greater than one suggest that the arguments to logical-or could be bit fields. Consider whether a bitwise operator might be a more appropriate operator in this case. Code analysis name: `LOGICALOROFCONSTANTS` diff --git a/docs/code-quality/c6290.md b/docs/code-quality/c6290.md index 2557e2d286a..df7afb644e7 100644 --- a/docs/code-quality/c6290.md +++ b/docs/code-quality/c6290.md @@ -10,10 +10,10 @@ ms.assetid: 96a1acc4-724b-4b56-b091-661ddcc03884 > Bitwise operation on logical result: ! has higher precedence than &. Use && or (!(x & y)) instead -This warning indicates possible confusion in the use of an operator or an operator precedence. - ## Remarks +This warning indicates possible confusion in the use of an operator or an operator precedence. + The `!` operator yields a Boolean result, and it has higher precedence than the `&`. The bitwise-and (&) operator takes two arithmetic arguments. Therefore, one of the following errors has been detected: - The expression is mis-parenthesized: diff --git a/docs/code-quality/c6291.md b/docs/code-quality/c6291.md index 9e2421a92b6..28e40de030f 100644 --- a/docs/code-quality/c6291.md +++ b/docs/code-quality/c6291.md @@ -10,6 +10,8 @@ ms.assetid: d0457386-e403-43fa-b959-5b6a495fab42 > Bitwise operation on logical result: ! has higher precedence than \|. Use \|\| or (!(x \| y)) instead +## Remarks + The `!` operator yields a Boolean result, and the `|` (bitwise-or) operator takes two arithmetic arguments. The `!` operator also has higher precedence than `|`. Therefore, one of the following errors has been detected: From a1c5af69f07a1bef74085664dc304fa3b19eca6b Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Sat, 6 Sep 2025 22:16:30 +0800 Subject: [PATCH 2/4] Replace term "sample" with "example" for warning references in range [C6251, C6310] --- docs/code-quality/c6259.md | 2 +- docs/code-quality/c6271.md | 4 ++-- docs/code-quality/c6277.md | 2 +- docs/code-quality/c6278.md | 4 ++-- docs/code-quality/c6280.md | 2 +- docs/code-quality/c6290.md | 2 +- docs/code-quality/c6293.md | 2 +- docs/code-quality/c6294.md | 4 ++-- docs/code-quality/c6298.md | 4 ++-- docs/code-quality/c6302.md | 2 +- docs/code-quality/c6303.md | 4 ++-- docs/code-quality/c6308.md | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/code-quality/c6259.md b/docs/code-quality/c6259.md index 6819a938cdc..70153b87448 100644 --- a/docs/code-quality/c6259.md +++ b/docs/code-quality/c6259.md @@ -18,7 +18,7 @@ Code analysis name: `DEADCODEINBITORLIMITEDSWITCH` ## Example -The following sample code generates this warning because the 'switch' expression `(rand() & 3)` can't evaluate to case label (`case 4`): +The following example code generates this warning because the 'switch' expression `(rand() & 3)` can't evaluate to case label (`case 4`): ```cpp #include diff --git a/docs/code-quality/c6271.md b/docs/code-quality/c6271.md index 29c26267883..8f3a327731b 100644 --- a/docs/code-quality/c6271.md +++ b/docs/code-quality/c6271.md @@ -17,7 +17,7 @@ Code analysis name: `EXTRA_ARGUMENT_TO_FORMAT_FUNCTION` ## Example -The following sample code generates this warning: +The following example code generates this warning: ```cpp #include @@ -43,7 +43,7 @@ void f() } ``` -The following sample code calls the safe string manipulation function, `sprintf_s`, to correct this warning: +The following example code calls the safe string manipulation function, `sprintf_s`, to correct this warning: ```cpp #include diff --git a/docs/code-quality/c6277.md b/docs/code-quality/c6277.md index 30dfabbba6e..2af6a6c2da0 100644 --- a/docs/code-quality/c6277.md +++ b/docs/code-quality/c6277.md @@ -20,7 +20,7 @@ Code analysis name: `CREATEPROCESS_ESCAPE` ## Example -The following sample code generates warning C6277. The warning is caused by the NULL application name and from the executable path name having a space. Due to how the function parses spaces, there's a risk that a different executable could be run. For more information, see [`CreateProcessA`](/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessa). +The following example code generates warning C6277. The warning is caused by the NULL application name and from the executable path name having a space. Due to how the function parses spaces, there's a risk that a different executable could be run. For more information, see [`CreateProcessA`](/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessa). ```cpp #include diff --git a/docs/code-quality/c6278.md b/docs/code-quality/c6278.md index 8ae400a83c7..80e6343773c 100644 --- a/docs/code-quality/c6278.md +++ b/docs/code-quality/c6278.md @@ -30,7 +30,7 @@ Code analysis name: `ARRAY_NEW_DELETE_MISMATCH` ## Example -The following sample code generates warning C6278: +The following example code generates warning C6278: ```cpp class A @@ -46,7 +46,7 @@ void f( ) } ``` -To correct this warning, use the following sample code: +To correct this warning, use the following example code: ```cpp void f( ) diff --git a/docs/code-quality/c6280.md b/docs/code-quality/c6280.md index 046e53583a4..0d70a20e38e 100644 --- a/docs/code-quality/c6280.md +++ b/docs/code-quality/c6280.md @@ -22,7 +22,7 @@ Code analysis name: `MEMORY_ALLOCATION_MISMATCH` ## Example -The following sample code generates this warning. `pInt` is allocated using `calloc` but is freed using the mismatched function `delete`: +The following example code generates this warning. `pInt` is allocated using `calloc` but is freed using the mismatched function `delete`: ```cpp // C6280a_warning.cpp diff --git a/docs/code-quality/c6290.md b/docs/code-quality/c6290.md index df7afb644e7..b68eea38c13 100644 --- a/docs/code-quality/c6290.md +++ b/docs/code-quality/c6290.md @@ -46,7 +46,7 @@ void f(int x, int y) } ``` -To correct this warning, use the following sample code: +To correct this warning, use the following example code: ```cpp void f(int x, int y) diff --git a/docs/code-quality/c6293.md b/docs/code-quality/c6293.md index ae4618266c7..aab3bd7008b 100644 --- a/docs/code-quality/c6293.md +++ b/docs/code-quality/c6293.md @@ -20,7 +20,7 @@ Code analysis name: `LOOP_INDEX_GOES_NEGATIVE` ## Example -The following sample code generates this warning: +The following example code generates this warning: ```cpp void f( ) diff --git a/docs/code-quality/c6294.md b/docs/code-quality/c6294.md index c67163e3f5f..feea1e9fd8a 100644 --- a/docs/code-quality/c6294.md +++ b/docs/code-quality/c6294.md @@ -18,7 +18,7 @@ Code analysis name: `LOOP_BODY_NEVER_EXECUTED` ## Example -The following sample code generates this warning because MAX_VALUE is 0: +The following example code generates this warning because MAX_VALUE is 0: ```cpp #define MAX_VALUE 0 @@ -32,7 +32,7 @@ void f() } ``` -The following sample code corrects this warning by changing the value of MAX_VALUE to 25 +The following example code corrects this warning by changing the value of MAX_VALUE to 25 ```cpp #define MAX_VALUE 25 diff --git a/docs/code-quality/c6298.md b/docs/code-quality/c6298.md index 7887a8ee7c9..c77350238ff 100644 --- a/docs/code-quality/c6298.md +++ b/docs/code-quality/c6298.md @@ -20,7 +20,7 @@ Code analysis name: `CONST_STRING_TO_WRITABLE_STRING` ## Example -The following sample code generates this warning: +The following example code generates this warning: ```cpp #include @@ -58,7 +58,7 @@ void f() } ``` -To correct this warning, use the following sample code: +To correct this warning, use the following example code: ```cpp #include diff --git a/docs/code-quality/c6302.md b/docs/code-quality/c6302.md index e7e9a30709a..1c03b1fe8e5 100644 --- a/docs/code-quality/c6302.md +++ b/docs/code-quality/c6302.md @@ -27,7 +27,7 @@ void f() } ``` -The following sample code remediates this issue by using `%hs` to specify a single-byte character string. Alternatively it could have switched to `%S`, which is a narrow string when used with `wprintf` like functions. See [Format specification syntax: `printf` and `wprintf` functions](../c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md#type-field-characters) for more options. +The following example code remediates this issue by using `%hs` to specify a single-byte character string. Alternatively it could have switched to `%S`, which is a narrow string when used with `wprintf` like functions. See [Format specification syntax: `printf` and `wprintf` functions](../c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md#type-field-characters) for more options. ```cpp void f() diff --git a/docs/code-quality/c6303.md b/docs/code-quality/c6303.md index bb481fe624c..65391970ea7 100644 --- a/docs/code-quality/c6303.md +++ b/docs/code-quality/c6303.md @@ -17,7 +17,7 @@ Code analysis name: `WCHAR_CHAR_ARGUMENT_TO_FORMAT_FUNCTION` ## Example -The following sample code generates this warning. `buff` is a wide character string, but the `printf_s` call expects a short string as denoted by `%s`: +The following example code generates this warning. `buff` is a wide character string, but the `printf_s` call expects a short string as denoted by `%s`: ```cpp #include @@ -29,7 +29,7 @@ void f() } ``` -The following sample code remediates this issue by using `%ls` to specify a wide character string. Alternatively it could have switched to `%S`, which is a wide string when used with `printf` like functions. See [Format specification syntax: `printf` and `wprintf` functions](../c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md#type-field-characters) for more options. +The following example code remediates this issue by using `%ls` to specify a wide character string. Alternatively it could have switched to `%S`, which is a wide string when used with `printf` like functions. See [Format specification syntax: `printf` and `wprintf` functions](../c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md#type-field-characters) for more options. ```cpp #include diff --git a/docs/code-quality/c6308.md b/docs/code-quality/c6308.md index 07cba3b71f4..bfcdecf06d3 100644 --- a/docs/code-quality/c6308.md +++ b/docs/code-quality/c6308.md @@ -18,7 +18,7 @@ Code analysis name: `REALLOCLEAK` ## Example -The following sample code generates warning C6308. This issue stems from the assignment of the return value from `realloc` to `x`. If `realloc` fails and returns a null pointer, then the original memory pointed to by `x` won't be freed: +The following example code generates warning C6308. This issue stems from the assignment of the return value from `realloc` to `x`. If `realloc` fails and returns a null pointer, then the original memory pointed to by `x` won't be freed: ```cpp #include From 02fda7c1658d9fd387ba895eccad9f99e07c0e0b Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Sat, 6 Sep 2025 22:23:19 +0800 Subject: [PATCH 3/4] Update metadata for warning references in range [C6251, C6310] --- docs/code-quality/c6255.md | 3 +-- docs/code-quality/c6258.md | 3 +-- docs/code-quality/c6259.md | 3 +-- docs/code-quality/c6260.md | 3 +-- docs/code-quality/c6262.md | 2 +- docs/code-quality/c6263.md | 3 +-- docs/code-quality/c6268.md | 3 +-- docs/code-quality/c6269.md | 3 +-- docs/code-quality/c6270.md | 2 +- docs/code-quality/c6271.md | 2 +- docs/code-quality/c6272.md | 2 +- docs/code-quality/c6273.md | 2 +- docs/code-quality/c6274.md | 2 +- docs/code-quality/c6276.md | 3 +-- docs/code-quality/c6277.md | 3 +-- docs/code-quality/c6278.md | 3 +-- docs/code-quality/c6279.md | 3 +-- docs/code-quality/c6280.md | 3 +-- docs/code-quality/c6281.md | 3 +-- docs/code-quality/c6282.md | 3 +-- docs/code-quality/c6283.md | 3 +-- docs/code-quality/c6284.md | 2 +- docs/code-quality/c6285.md | 3 +-- docs/code-quality/c6286.md | 3 +-- docs/code-quality/c6287.md | 3 +-- docs/code-quality/c6288.md | 3 +-- docs/code-quality/c6289.md | 3 +-- docs/code-quality/c6290.md | 3 +-- docs/code-quality/c6291.md | 3 +-- docs/code-quality/c6292.md | 3 +-- docs/code-quality/c6293.md | 3 +-- docs/code-quality/c6294.md | 3 +-- docs/code-quality/c6295.md | 3 +-- docs/code-quality/c6296.md | 2 +- docs/code-quality/c6297.md | 3 +-- docs/code-quality/c6298.md | 3 +-- docs/code-quality/c6299.md | 3 +-- docs/code-quality/c6302.md | 2 +- docs/code-quality/c6303.md | 2 +- docs/code-quality/c6305.md | 3 +-- docs/code-quality/c6306.md | 3 +-- docs/code-quality/c6308.md | 3 +-- docs/code-quality/c6310.md | 3 +-- 43 files changed, 43 insertions(+), 76 deletions(-) diff --git a/docs/code-quality/c6255.md b/docs/code-quality/c6255.md index 8c79c955c8f..c8859f60aea 100644 --- a/docs/code-quality/c6255.md +++ b/docs/code-quality/c6255.md @@ -1,10 +1,9 @@ --- +title: "Warning C6255" description: "Learn more about: Warning C6255" -title: Warning C6255 ms.date: 11/04/2016 f1_keywords: ["C6255", "UNPROTECTEDUSEOFALLOCA", "__WARNING_UNPROTECTEDUSEOFALLOCA"] helpviewer_keywords: ["C6255"] -ms.assetid: bb6430b2-782a-4410-a8e1-609df06007de --- # Warning C6255 diff --git a/docs/code-quality/c6258.md b/docs/code-quality/c6258.md index 833dd35e708..e9efa609a9d 100644 --- a/docs/code-quality/c6258.md +++ b/docs/code-quality/c6258.md @@ -1,10 +1,9 @@ --- +title: "Warning C6258" description: "Learn more about: Warning C6258" -title: Warning C6258 ms.date: 11/04/2016 f1_keywords: ["C6258", "USINGTERMINATETHREAD", "__WARNING_USINGTERMINATETHREAD"] helpviewer_keywords: ["C6258"] -ms.assetid: 62f3eed7-d9cd-46eb-8c38-0bc4f647941f --- # Warning C6258 diff --git a/docs/code-quality/c6259.md b/docs/code-quality/c6259.md index 70153b87448..07203450c55 100644 --- a/docs/code-quality/c6259.md +++ b/docs/code-quality/c6259.md @@ -1,10 +1,9 @@ --- +title: "Warning C6259" description: "Learn more about: Warning C6259" -title: Warning C6259 ms.date: 11/04/2016 f1_keywords: ["C6259", "DEADCODEINBITORLIMITEDSWITCH", "__WARNING_DEADCODEINBITORLIMITEDSWITCH"] helpviewer_keywords: ["C6259"] -ms.assetid: a370bfd2-6634-402c-84c7-3d83fa0009b7 --- # Warning C6259 diff --git a/docs/code-quality/c6260.md b/docs/code-quality/c6260.md index 5def9c1bcb9..41c4541cf36 100644 --- a/docs/code-quality/c6260.md +++ b/docs/code-quality/c6260.md @@ -1,10 +1,9 @@ --- +title: "Warning C6260" description: "Learn more about: Warning C6260" -title: Warning C6260 ms.date: 11/04/2016 f1_keywords: ["C6260", "USEOFBYTEAREA", "__WARNING_USEOFBYTEAREA"] helpviewer_keywords: ["C6260"] -ms.assetid: 9cbedfcb-32b2-4fe4-99f7-a2d4a7f4422a --- # Warning C6260 diff --git a/docs/code-quality/c6262.md b/docs/code-quality/c6262.md index 775784567c4..1280eed743c 100644 --- a/docs/code-quality/c6262.md +++ b/docs/code-quality/c6262.md @@ -1,5 +1,5 @@ --- -title: Warning C6262 +title: "Warning C6262" description: "Visual Studio C++ Code Analysis warning C6262 description and resolution." ms.date: 10/14/2020 f1_keywords: ["C6262", "EXCESSIVESTACKUSAGE", "__WARNING_EXCESSIVESTACKUSAGE"] diff --git a/docs/code-quality/c6263.md b/docs/code-quality/c6263.md index a232723446f..3d8b854aa72 100644 --- a/docs/code-quality/c6263.md +++ b/docs/code-quality/c6263.md @@ -1,10 +1,9 @@ --- +title: "Warning C6263" description: "Learn more about: Warning C6263" -title: Warning C6263 ms.date: 11/04/2016 f1_keywords: ["C6263", "USINGALLOCAINLOOP", "__WARNING_USINGALLOCAINLOOP"] helpviewer_keywords: ["C6263"] -ms.assetid: bc360ad7-5f59-4480-a642-6c7e6beeb5f6 --- # Warning C6263 diff --git a/docs/code-quality/c6268.md b/docs/code-quality/c6268.md index a45953a8c6d..758c5b3a36b 100644 --- a/docs/code-quality/c6268.md +++ b/docs/code-quality/c6268.md @@ -1,10 +1,9 @@ --- +title: "Warning C6268" description: "Learn more about: Warning C6268" -title: Warning C6268 ms.date: 11/04/2016 f1_keywords: ["C6268", "MISPARENTHESIZED_CASTS", "__WARNING_MISPARENTHESIZED_CASTS"] helpviewer_keywords: ["C6268"] -ms.assetid: fd81e00a-de2f-498b-b3fe-53ce056042d7 --- # Warning C6268 diff --git a/docs/code-quality/c6269.md b/docs/code-quality/c6269.md index 91d890e7ac6..d7b26922a15 100644 --- a/docs/code-quality/c6269.md +++ b/docs/code-quality/c6269.md @@ -1,10 +1,9 @@ --- +title: "Warning C6269" description: "Learn more about: Warning C6269" -title: Warning C6269 ms.date: 11/04/2016 f1_keywords: ["C6269", "POINTER_DEREF_DISCARDED", "__WARNING_POINTER_DEREF_DISCARDED"] helpviewer_keywords: ["C6269"] -ms.assetid: a01fa7fa-fc6c-4af7-ac8c-585e44e60cca --- # Warning C6269 diff --git a/docs/code-quality/c6270.md b/docs/code-quality/c6270.md index 6a23a7f3057..ce3f1f68a54 100644 --- a/docs/code-quality/c6270.md +++ b/docs/code-quality/c6270.md @@ -1,6 +1,6 @@ --- +title: "Warning C6270" description: "Learn more about: Warning C6270" -title: Warning C6270 ms.date: 3/03/2023 f1_keywords: ["C6270", "MISSING_FLOAT_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_MISSING_FLOAT_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6270"] diff --git a/docs/code-quality/c6271.md b/docs/code-quality/c6271.md index 8f3a327731b..059c2c969f0 100644 --- a/docs/code-quality/c6271.md +++ b/docs/code-quality/c6271.md @@ -1,6 +1,6 @@ --- +title: "Warning C6271" description: "Learn more about: Warning C6271" -title: Warning C6271 ms.date: 3/06/2023 f1_keywords: ["C6271", "EXTRA_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_EXTRA_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6271"] diff --git a/docs/code-quality/c6272.md b/docs/code-quality/c6272.md index 5a25de9b994..98cc4975756 100644 --- a/docs/code-quality/c6272.md +++ b/docs/code-quality/c6272.md @@ -1,6 +1,6 @@ --- +title: "Warning C6272" description: "Learn more about: Warning C6272" -title: Warning C6272 ms.date: 03/07/2023 f1_keywords: ["C6272", "NON_FLOAT_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_NON_FLOAT_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6272"] diff --git a/docs/code-quality/c6273.md b/docs/code-quality/c6273.md index 7bf741fbf4b..4a84e4345b0 100644 --- a/docs/code-quality/c6273.md +++ b/docs/code-quality/c6273.md @@ -1,6 +1,6 @@ --- +title: "Warning C6273" description: "Learn more about: Warning C6273" -title: Warning C6273 ms.date: 03/07/2023 f1_keywords: ["C6273", "NON_INTEGER_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_NON_INTEGER_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6273"] diff --git a/docs/code-quality/c6274.md b/docs/code-quality/c6274.md index 79412891722..8a324e84008 100644 --- a/docs/code-quality/c6274.md +++ b/docs/code-quality/c6274.md @@ -1,6 +1,6 @@ --- +title: "Warning C6274" description: "Learn more about: Warning C6274" -title: Warning C6274 ms.date: 03/07/2023 f1_keywords: ["C6274", "NON_CHAR_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_NON_CHAR_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6274"] diff --git a/docs/code-quality/c6276.md b/docs/code-quality/c6276.md index b116e8871a1..e31ce0bf0a4 100644 --- a/docs/code-quality/c6276.md +++ b/docs/code-quality/c6276.md @@ -1,10 +1,9 @@ --- +title: "Warning C6276" description: "Learn more about: Warning C6276" -title: Warning C6276 ms.date: 09/28/2022 f1_keywords: ["C6276", "CHAR_TO_WCHAR_CAST", "__WARNING_CHAR_TO_WCHAR_CAST"] helpviewer_keywords: ["C6276"] -ms.assetid: 88f288da-da81-4d32-ab0f-be9d01a2606a --- # Warning C6276 diff --git a/docs/code-quality/c6277.md b/docs/code-quality/c6277.md index 2af6a6c2da0..9b80fad0fba 100644 --- a/docs/code-quality/c6277.md +++ b/docs/code-quality/c6277.md @@ -1,10 +1,9 @@ --- +title: "Warning C6277" description: "Learn more about: Warning C6277" -title: Warning C6277 ms.date: 09/28/2022 f1_keywords: ["C6277", "CREATEPROCESS_ESCAPE", "__WARNING_CREATEPROCESS_ESCAPE"] helpviewer_keywords: ["C6277"] -ms.assetid: 2b41252a-68c2-4e92-b005-0458db5f4430 --- # Warning C6277 diff --git a/docs/code-quality/c6278.md b/docs/code-quality/c6278.md index 80e6343773c..55e0ddb1a28 100644 --- a/docs/code-quality/c6278.md +++ b/docs/code-quality/c6278.md @@ -1,10 +1,9 @@ --- +title: "Warning C6278" description: "Learn more about: Warning C6278" -title: Warning C6278 ms.date: 10/03/2022 f1_keywords: ["C6278", "ARRAY_NEW_DELETE_MISMATCH", "__WARNING_ARRAY_NEW_DELETE_MISMATCH"] helpviewer_keywords: ["C6278"] -ms.assetid: 5cc3c393-c48a-4f91-9f38-03d7868be5e5 --- # Warning C6278 diff --git a/docs/code-quality/c6279.md b/docs/code-quality/c6279.md index 398e1a0bc76..8c9b92fc129 100644 --- a/docs/code-quality/c6279.md +++ b/docs/code-quality/c6279.md @@ -1,10 +1,9 @@ --- +title: "Warning C6279" description: "Learn more about: Warning C6279" -title: Warning C6279 ms.date: 10/03/2022 f1_keywords: ["C6279", "NEW_ARRAY_DELETE_MISMATCH", "__WARNING_NEW_ARRAY_DELETE_MISMATCH"] helpviewer_keywords: ["C6279"] -ms.assetid: 0af88b58-35df-456f-8c02-e8eeffe3b7de --- # Warning C6279 diff --git a/docs/code-quality/c6280.md b/docs/code-quality/c6280.md index 0d70a20e38e..0fa6146b704 100644 --- a/docs/code-quality/c6280.md +++ b/docs/code-quality/c6280.md @@ -1,10 +1,9 @@ --- +title: "Warning C6280" description: "Learn more about: Warning C6280" -title: Warning C6280 ms.date: 10/03/2022 f1_keywords: ["C6280", "MEMORY_ALLOCATION_MISMATCH", "__WARNING_MEMORY_ALLOCATION_MISMATCH"] helpviewer_keywords: ["C6280"] -ms.assetid: b91f2966-0876-4c9b-843a-e142f35be864 --- # Warning C6280 diff --git a/docs/code-quality/c6281.md b/docs/code-quality/c6281.md index f16c015ee52..4481fe9fc2e 100644 --- a/docs/code-quality/c6281.md +++ b/docs/code-quality/c6281.md @@ -1,10 +1,9 @@ --- +title: "Warning C6281" description: "Learn more about: Warning C6281" -title: Warning C6281 ms.date: 11/04/2016 f1_keywords: ["C6281", "BITWISERELATIONPRECEDENCEERROR", "__WARNING_BITWISERELATIONPRECEDENCEERROR"] helpviewer_keywords: ["C6281"] -ms.assetid: d0182269-8403-486b-ac3f-325522871bb1 --- # Warning C6281 diff --git a/docs/code-quality/c6282.md b/docs/code-quality/c6282.md index c48e6166325..c068864b18e 100644 --- a/docs/code-quality/c6282.md +++ b/docs/code-quality/c6282.md @@ -1,10 +1,9 @@ --- +title: "Warning C6282" description: "Learn more about: Warning C6282" -title: Warning C6282 ms.date: 11/04/2016 f1_keywords: ["C6282", "ASSIGNMENTREPLACESTEST", "__WARNING_ASSIGNMENTREPLACESTEST"] helpviewer_keywords: ["C6282"] -ms.assetid: 7dc153d5-fb9f-424a-8afa-4e2661efa51c --- # Warning C6282 diff --git a/docs/code-quality/c6283.md b/docs/code-quality/c6283.md index 12cb8a4095b..4607e25d0ce 100644 --- a/docs/code-quality/c6283.md +++ b/docs/code-quality/c6283.md @@ -1,10 +1,9 @@ --- +title: "Warning C6283" description: "Learn more about: Warning C6283" -title: Warning C6283 ms.date: 10/03/2022 f1_keywords: ["C6283", "PRIMITIVE_ARRAY_NEW_DELETE_MISMATCH", "__WARNING_PRIMITIVE_ARRAY_NEW_DELETE_MISMATCH"] helpviewer_keywords: ["C6283"] -ms.assetid: 7760d32e-6d71-4c81-a6d2-719c9c76c2bb --- # Warning C6283 diff --git a/docs/code-quality/c6284.md b/docs/code-quality/c6284.md index 4c29d20e333..7bb131248f1 100644 --- a/docs/code-quality/c6284.md +++ b/docs/code-quality/c6284.md @@ -1,6 +1,6 @@ --- +title: "Warning C6284" description: "Learn more about: Warning C6284" -title: Warning C6284 ms.date: 03/07/2023 f1_keywords: ["C6284", "OBJECT_AS_STRING_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_OBJECT_AS_STRING_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6284"] diff --git a/docs/code-quality/c6285.md b/docs/code-quality/c6285.md index c867f27ea19..d7b4077b96d 100644 --- a/docs/code-quality/c6285.md +++ b/docs/code-quality/c6285.md @@ -1,10 +1,9 @@ --- +title: "Warning C6285" description: "Learn more about: Warning C6285" -title: Warning C6285 ms.date: 11/04/2016 f1_keywords: ["C6285", "LOGICALOROFCONSTANTS", "__WARNING_LOGICALOROFCONSTANTS"] helpviewer_keywords: ["C6285"] -ms.assetid: f5bc6d3d-d33b-42c8-98d2-92ec8ab17193 --- # Warning C6285 diff --git a/docs/code-quality/c6286.md b/docs/code-quality/c6286.md index aeedbe05d59..5c850b5e3c2 100644 --- a/docs/code-quality/c6286.md +++ b/docs/code-quality/c6286.md @@ -1,10 +1,9 @@ --- +title: "Warning C6286" description: "Learn more about: Warning C6286" -title: Warning C6286 ms.date: 11/04/2016 f1_keywords: ["C6286", "NONZEROLOGICALORLOSINGSIDEEFFECTS", "__WARNING_NONZEROLOGICALORLOSINGSIDEEFFECTS"] helpviewer_keywords: ["C6286"] -ms.assetid: c79c5d4a-c02b-4b98-891a-d79e471f9da7 --- # Warning C6286 diff --git a/docs/code-quality/c6287.md b/docs/code-quality/c6287.md index 2847f5e85ec..ecf799346b7 100644 --- a/docs/code-quality/c6287.md +++ b/docs/code-quality/c6287.md @@ -1,10 +1,9 @@ --- +title: "Warning C6287" description: "Learn more about: Warning C6287" -title: Warning C6287 ms.date: 12/17/2019 f1_keywords: ["C6287", "REDUNDANTTEST", "__WARNING_REDUNDANTTEST"] helpviewer_keywords: ["C6287"] -ms.assetid: 9cb12641-8853-413a-b89e-f8b32c8dc5d3 --- # Warning C6287 diff --git a/docs/code-quality/c6288.md b/docs/code-quality/c6288.md index ffa9ae3b713..0057b6c8fea 100644 --- a/docs/code-quality/c6288.md +++ b/docs/code-quality/c6288.md @@ -1,10 +1,9 @@ --- +title: "Warning C6288" description: "Learn more about: Warning C6288" -title: Warning C6288 ms.date: 11/04/2016 f1_keywords: ["C6288", "MUTUALINCLUSIONOVERANDISFALSE", "__WARNING_MUTUALINCLUSIONOVERANDISFALSE"] helpviewer_keywords: ["C6288"] -ms.assetid: 3856b80a-c9f2-4e86-97fc-c913b0186788 --- # Warning C6288 diff --git a/docs/code-quality/c6289.md b/docs/code-quality/c6289.md index c5d8c1e205a..500153072b2 100644 --- a/docs/code-quality/c6289.md +++ b/docs/code-quality/c6289.md @@ -1,10 +1,9 @@ --- +title: "Warning C6289" description: "Learn more about: Warning C6289" -title: Warning C6289 ms.date: 11/04/2016 f1_keywords: ["C6289", "MUTUALEXCLUSIONOVERORISTRUE", "__WARNING_MUTUALEXCLUSIONOVERORISTRUE"] helpviewer_keywords: ["C6289"] -ms.assetid: 0fe09974-7577-468b-91a0-62dbe915443e --- # Warning C6289 diff --git a/docs/code-quality/c6290.md b/docs/code-quality/c6290.md index b68eea38c13..61854f30eed 100644 --- a/docs/code-quality/c6290.md +++ b/docs/code-quality/c6290.md @@ -1,10 +1,9 @@ --- +title: "Warning C6290" description: "Learn more about: Warning C6290" -title: Warning C6290 ms.date: 11/04/2016 f1_keywords: ["C6290", "LOGICALNOTBITWISEAND", "__WARNING_LOGICALNOTBITWISEAND"] helpviewer_keywords: ["C6290"] -ms.assetid: 96a1acc4-724b-4b56-b091-661ddcc03884 --- # Warning C6290 diff --git a/docs/code-quality/c6291.md b/docs/code-quality/c6291.md index 28e40de030f..cfdb0e86e6f 100644 --- a/docs/code-quality/c6291.md +++ b/docs/code-quality/c6291.md @@ -1,10 +1,9 @@ --- +title: "Warning C6291" description: "Learn more about: Warning C6291" -title: Warning C6291 ms.date: 11/04/2016 f1_keywords: ["C6291", "LOGICALNOTBITWISEOR", "__WARNING_LOGICALNOTBITWISEOR"] helpviewer_keywords: ["C6291"] -ms.assetid: d0457386-e403-43fa-b959-5b6a495fab42 --- # Warning C6291 diff --git a/docs/code-quality/c6292.md b/docs/code-quality/c6292.md index 9b1926a741c..d3f8731f944 100644 --- a/docs/code-quality/c6292.md +++ b/docs/code-quality/c6292.md @@ -1,10 +1,9 @@ --- +title: "Warning C6292" description: "Learn more about: Warning C6292" -title: Warning C6292 ms.date: 11/04/2016 f1_keywords: ["C6292", "LOOP_COUNTS_UP_FROM_MAX", "__WARNING_LOOP_COUNTS_UP_FROM_MAX"] helpviewer_keywords: ["C6292"] -ms.assetid: 23998c78-ebd7-4ba1-a391-7b31b170f8fe --- # Warning C6292 diff --git a/docs/code-quality/c6293.md b/docs/code-quality/c6293.md index aab3bd7008b..1624ad4ff61 100644 --- a/docs/code-quality/c6293.md +++ b/docs/code-quality/c6293.md @@ -1,10 +1,9 @@ --- +title: "Warning C6293" description: "Learn more about: Warning C6293" -title: Warning C6293 ms.date: 11/04/2016 f1_keywords: ["C6293", "LOOP_INDEX_GOES_NEGATIVE", "__WARNING_LOOP_INDEX_GOES_NEGATIVE"] helpviewer_keywords: ["C6293"] -ms.assetid: 24a475f6-fd93-4778-856a-9dd7941f7520 --- # Warning C6293 diff --git a/docs/code-quality/c6294.md b/docs/code-quality/c6294.md index feea1e9fd8a..d747530e5a5 100644 --- a/docs/code-quality/c6294.md +++ b/docs/code-quality/c6294.md @@ -1,10 +1,9 @@ --- +title: "Warning C6294" description: "Learn more about: Warning C6294" -title: Warning C6294 ms.date: 11/04/2016 f1_keywords: ["C6294", "LOOP_BODY_NEVER_EXECUTED", "__WARNING_LOOP_BODY_NEVER_EXECUTED"] helpviewer_keywords: ["C6294"] -ms.assetid: 1171d76f-b862-416d-b7c0-7a29be5c132d --- # Warning C6294 diff --git a/docs/code-quality/c6295.md b/docs/code-quality/c6295.md index f0c587ef8ed..80b75b427cb 100644 --- a/docs/code-quality/c6295.md +++ b/docs/code-quality/c6295.md @@ -1,10 +1,9 @@ --- +title: "Warning C6295" description: "Learn more about: Warning C6295" -title: Warning C6295 ms.date: 11/04/2016 f1_keywords: ["C6295", "INFINITE_LOOP", "__WARNING_INFINITE_LOOP"] helpviewer_keywords: ["C6295"] -ms.assetid: 64e890ee-b688-4487-938d-3928762b83a4 --- # Warning C6295 diff --git a/docs/code-quality/c6296.md b/docs/code-quality/c6296.md index e6f7da03400..a12e1eaafb5 100644 --- a/docs/code-quality/c6296.md +++ b/docs/code-quality/c6296.md @@ -1,5 +1,5 @@ --- -title: Warning C6296 +title: "Warning C6296" description: "Learn more about: Warning C6296" ms.date: 03/30/2025 f1_keywords: ["C6296", "LOOP_ONLY_EXECUTED_ONCE", "__WARNING_LOOP_ONLY_EXECUTED_ONCE"] diff --git a/docs/code-quality/c6297.md b/docs/code-quality/c6297.md index 2bbd49a68b4..d048cd48b79 100644 --- a/docs/code-quality/c6297.md +++ b/docs/code-quality/c6297.md @@ -1,10 +1,9 @@ --- -title: Warning C6297 +title: "Warning C6297" description: "Describes causes of MSVC Code analysis warning C6297, and how to fix the issue." ms.date: 07/15/2020 f1_keywords: ["C6297", "RESULTOFSHIFTCASTTOLARGERSIZE", "__WARNING_RESULTOFSHIFTCASTTOLARGERSIZE"] helpviewer_keywords: ["C6297"] -ms.assetid: 17b585f0-75e5-4fc0-935a-143ec67659f4 --- # Warning C6297 diff --git a/docs/code-quality/c6298.md b/docs/code-quality/c6298.md index c77350238ff..e86e5e4b260 100644 --- a/docs/code-quality/c6298.md +++ b/docs/code-quality/c6298.md @@ -1,10 +1,9 @@ --- +title: "Warning C6298" description: "Learn more about: Warning C6298" -title: Warning C6298 ms.date: 11/04/2016 f1_keywords: ["C6298", "CONST_STRING_TO_WRITABLE_STRING", "__WARNING_CONST_STRING_TO_WRITABLE_STRING"] helpviewer_keywords: ["C6298"] -ms.assetid: 986dc8e7-8596-4223-a66f-8616357d4399 --- # Warning C6298 diff --git a/docs/code-quality/c6299.md b/docs/code-quality/c6299.md index 43c347fecea..2a56ce73b7b 100644 --- a/docs/code-quality/c6299.md +++ b/docs/code-quality/c6299.md @@ -1,10 +1,9 @@ --- +title: "Warning C6299" description: "Learn more about: Warning C6299" -title: Warning C6299 ms.date: 11/04/2016 f1_keywords: ["C6299", "BITFIELD_TO_BOOL_COMPARISON", "__WARNING_BITFIELD_TO_BOOL_COMPARISON"] helpviewer_keywords: ["C6299"] -ms.assetid: 5129ac34-0d4f-4056-aea2-b0df2127dead --- # Warning C6299 diff --git a/docs/code-quality/c6302.md b/docs/code-quality/c6302.md index 1c03b1fe8e5..1de8b8f8611 100644 --- a/docs/code-quality/c6302.md +++ b/docs/code-quality/c6302.md @@ -1,6 +1,6 @@ --- +title: "Warning C6302" description: "Learn more about: Warning C6302" -title: Warning C6302 ms.date: 03/07/2023 f1_keywords: ["C6302", "CHAR_WCHAR_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_CHAR_WCHAR_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6302"] diff --git a/docs/code-quality/c6303.md b/docs/code-quality/c6303.md index 65391970ea7..003309b49f4 100644 --- a/docs/code-quality/c6303.md +++ b/docs/code-quality/c6303.md @@ -1,6 +1,6 @@ --- +title: "Warning C6303" description: "Learn more about: Warning C6303" -title: Warning C6303 ms.date: 03/07/2023 f1_keywords: ["C6303", "WCHAR_CHAR_ARGUMENT_TO_FORMAT_FUNCTION", "__WARNING_WCHAR_CHAR_ARGUMENT_TO_FORMAT_FUNCTION"] helpviewer_keywords: ["C6303"] diff --git a/docs/code-quality/c6305.md b/docs/code-quality/c6305.md index 72f3f0ec9d7..9ffba3948ee 100644 --- a/docs/code-quality/c6305.md +++ b/docs/code-quality/c6305.md @@ -1,10 +1,9 @@ --- +title: "Warning C6305" description: "Learn more about: Warning C6305" -title: Warning C6305 ms.date: 11/04/2016 f1_keywords: ["C6305", "SIZEOF_COUNTOF_MISMATCH", "__WARNING_SIZEOF_COUNTOF_MISMATCH"] helpviewer_keywords: ["C6305"] -ms.assetid: 4b3bdf86-b593-425e-89cb-9282878b21bd --- # Warning C6305 diff --git a/docs/code-quality/c6306.md b/docs/code-quality/c6306.md index 7235deeb6eb..c4d0f81a096 100644 --- a/docs/code-quality/c6306.md +++ b/docs/code-quality/c6306.md @@ -1,10 +1,9 @@ --- +title: "Warning C6306" description: "Learn more about: Warning C6306" -title: Warning C6306 ms.date: 11/04/2016 f1_keywords: ["C6306", "INCORRECT_VARARG_FUNCTIONCALL", "__WARNING_INCORRECT_VARARG_FUNCTIONCALL"] helpviewer_keywords: ["C6306"] -ms.assetid: 7502710c-7e0e-4412-aecc-b6821cb8c182 --- # Warning C6306 diff --git a/docs/code-quality/c6308.md b/docs/code-quality/c6308.md index bfcdecf06d3..0a92764dc8b 100644 --- a/docs/code-quality/c6308.md +++ b/docs/code-quality/c6308.md @@ -1,10 +1,9 @@ --- -title: Warning C6308 +title: "Warning C6308" description: "Understand the causes of Microsoft C/C++ code analysis warning C6308, and learn how to fix them." ms.date: 09/28/2022 f1_keywords: ["C6308", "REALLOCLEAK", "__WARNING_REALLOCLEAK"] helpviewer_keywords: ["C6308"] -ms.assetid: 1162cd96-9037-4576-9858-0c8361a12559 --- # Warning C6308 diff --git a/docs/code-quality/c6310.md b/docs/code-quality/c6310.md index 88dd7cb3800..30516b4684d 100644 --- a/docs/code-quality/c6310.md +++ b/docs/code-quality/c6310.md @@ -1,10 +1,9 @@ --- +title: "Warning C6310" description: "Learn more about: Warning C6310" -title: Warning C6310 ms.date: 11/04/2016 f1_keywords: ["C6310", "ILLEGALEXCEPTEXPRCONST", "__WARNING_ILLEGALEXCEPTEXPRCONST"] helpviewer_keywords: ["C6310"] -ms.assetid: e759eb63-883f-4c3e-bf2f-b924ff511405 --- # Warning C6310 From 08758007a8c80a3f6fa4861719bf4baec891d5f0 Mon Sep 17 00:00:00 2001 From: Rageking8 Date: Sat, 6 Sep 2025 22:25:04 +0800 Subject: [PATCH 4/4] Add leading example sentence in C6284 warning reference --- docs/code-quality/c6284.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/code-quality/c6284.md b/docs/code-quality/c6284.md index 7bb131248f1..81aeb042c5f 100644 --- a/docs/code-quality/c6284.md +++ b/docs/code-quality/c6284.md @@ -19,6 +19,8 @@ Code analysis name: `OBJECT_AS_STRING_ARGUMENT_TO_FORMAT_FUNCTION` ## Example +The following example generates C6284: + ```cpp #include #include