diff --git a/docs/code-quality/c6401.md b/docs/code-quality/c6401.md index 954dbdddef9..071f30b46bc 100644 --- a/docs/code-quality/c6401.md +++ b/docs/code-quality/c6401.md @@ -1,10 +1,9 @@ --- +title: "Warning C6401" description: "Learn more about: Warning C6401" -title: Warning C6401 ms.date: 11/04/2016 f1_keywords: ["C6401", "DEFAULT_LOCALE_CONSTANT_STRING_COMPARISON", "__WARNING_DEFAULT_LOCALE_CONSTANT_STRING_COMPARISON"] helpviewer_keywords: ["C6401"] -ms.assetid: d57b1c94-57a3-4d4b-a7de-8b9ffbac3ebe --- # Warning C6401 diff --git a/docs/code-quality/c6411.md b/docs/code-quality/c6411.md index a4a99565a83..4e1627384d3 100644 --- a/docs/code-quality/c6411.md +++ b/docs/code-quality/c6411.md @@ -1,5 +1,5 @@ --- -title: Warning C6411 +title: "Warning C6411" description: "Learn more about: Warning C6411" ms.date: 11/04/2016 f1_keywords: ["C6411", "POTENTIAL_READ_OVERRUN"] diff --git a/docs/code-quality/c6412.md b/docs/code-quality/c6412.md index 230011ec6ec..cd387c66074 100644 --- a/docs/code-quality/c6412.md +++ b/docs/code-quality/c6412.md @@ -1,5 +1,5 @@ --- -title: Warning C6412 +title: "Warning C6412" description: "Learn more about: Warning C6412" ms.date: 11/04/2016 f1_keywords: ["C6412", "POTENTIAL_WRITE_OVERRUN"] diff --git a/docs/code-quality/c6500.md b/docs/code-quality/c6500.md index db2024951ba..4b2373b63d5 100644 --- a/docs/code-quality/c6500.md +++ b/docs/code-quality/c6500.md @@ -1,20 +1,19 @@ --- +title: "Warning C6500" description: "Learn more about: Warning C6500" -title: Warning C6500 ms.date: 11/04/2016 f1_keywords: ["C6500", "INVALID_ATTRIBUTE_PROPERTY", "__WARNING_INVALID_ATTRIBUTE_PROPERTY"] helpviewer_keywords: ["C6500"] -ms.assetid: bfc61ec1-8ac5-4465-a23c-91418fbc4552 --- # Warning C6500 > Invalid annotation: value for '*name*' property is invalid +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that a property value used in the annotation isn't valid. For example, it can occur if an incorrect level of dereference is used in the `Deref` property, or if you use a constant value that is larger than `size_t` for properties like `ElementSize`. Code analysis name: `INVALID_ATTRIBUTE_PROPERTY` @@ -35,7 +34,7 @@ using namespace vc_attributes; void f( [Pre( Deref=2, Access=Read )] char buffer[] ); ``` -To correct this warning, specify the correct level of dereference, as shown in the following sample code: +To correct this warning, specify the correct level of dereference, as shown in the following example code: ```cpp // C diff --git a/docs/code-quality/c6501.md b/docs/code-quality/c6501.md index 437e4e78f41..6b552356726 100644 --- a/docs/code-quality/c6501.md +++ b/docs/code-quality/c6501.md @@ -1,20 +1,19 @@ --- +title: "Warning C6501" description: "Learn more about: Warning C6501" -title: Warning C6501 ms.date: 11/04/2016 f1_keywords: ["C6501", "CONFLICTING_ATTRIBUTE_PROPERTY_VALUES", "__WARNING_CONFLICTING_ATTRIBUTE_PROPERTY_VALUES"] helpviewer_keywords: ["C6501"] -ms.assetid: f9e8b847-2516-4bbb-bb1c-c87cfbacf254 --- # Warning C6501 > Annotation conflict: '*name*' property conflicts with previously specified property +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates the presence of conflicting properties in the annotation. The warning typically occurs when multiple properties that serve similar purpose are used to annotate a parameter or return value. To correct the warning, you must choose the property that best addresses your need. Code analysis name: `CONFLICTING_ATTRIBUTE_PROPERTY_VALUES` diff --git a/docs/code-quality/c6503.md b/docs/code-quality/c6503.md index 919cad1a16e..5c320d0eaed 100644 --- a/docs/code-quality/c6503.md +++ b/docs/code-quality/c6503.md @@ -1,20 +1,19 @@ --- +title: "Warning C6503" description: "Learn more about: Warning C6503" -title: Warning C6503 ms.date: 11/04/2016 f1_keywords: ["C6503", "REFERENCES_CANT_BE_NULL", "__WARNING_REFERENCES_CANT_BE_NULL"] helpviewer_keywords: ["C6503"] -ms.assetid: a6212938-bef9-4830-becb-6baa70b53e97 --- # Warning C6503 > Invalid annotation: references and arrays may not be marked `Null=Yes` or `Null=Maybe` +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that `Null` property is incorrectly used on a reference or array type. A reference or array type holds the address of an object and must point to a valid object. Because reference and array types can't be null, you must correct the error by either removing the `Null` property or by setting the `Null` property value to `No`. Code analysis name: `REFERENCES_CANT_BE_NULL` diff --git a/docs/code-quality/c6504.md b/docs/code-quality/c6504.md index d7683b709d0..eb9d24fa536 100644 --- a/docs/code-quality/c6504.md +++ b/docs/code-quality/c6504.md @@ -1,5 +1,5 @@ --- -title: Warning C6504 +title: "Warning C6504" description: "Learn more about: Warning C6504" ms.date: 10/03/2022 f1_keywords: ["C6504", "NULL_ON_NON_POINTER", "__WARNING_NULL_ON_NON_POINTER"] @@ -9,10 +9,10 @@ helpviewer_keywords: ["C6504"] > Invalid annotation: property may only be used on values of pointer, pointer-to-member, or array type -This warning indicates the use of a pointer-specific SAL annotation on a non-pointer data type. - ## Remarks +This warning indicates the use of a pointer-specific SAL annotation on a non-pointer data type. + For more information about what data types are supported by properties, see [Annotation Properties](using-sal-annotations-to-reduce-c-cpp-code-defects.md). Code analysis name: `NULL_ON_NON_POINTER` diff --git a/docs/code-quality/c6505.md b/docs/code-quality/c6505.md index 3edfe826bbf..317778e442c 100644 --- a/docs/code-quality/c6505.md +++ b/docs/code-quality/c6505.md @@ -1,10 +1,9 @@ --- +title: "Warning C6505" description: "Learn more about: Warning C6505" -title: Warning C6505 ms.date: 11/04/2016 f1_keywords: ["C6505", "MUSTCHECK_ON_VOID", "__WARNING_MUSTCHECK_ON_VOID"] helpviewer_keywords: ["C6505"] -ms.assetid: 1883ce60-48d7-41c8-add8-814e4b8b908b --- # Warning C6505 diff --git a/docs/code-quality/c6506.md b/docs/code-quality/c6506.md index 377aef78138..6cd1cf750b2 100644 --- a/docs/code-quality/c6506.md +++ b/docs/code-quality/c6506.md @@ -1,5 +1,5 @@ --- -title: Warning C6506 +title: "Warning C6506" description: "Learn more about: Warning C6506" ms.date: 11/04/2016 f1_keywords: ["C6506", "BUFFER_SIZE_ON_NON_POINTER_OR_ARRAY", "__WARNING_BUFFER_SIZE_ON_NON_POINTER_OR_ARRAY"] @@ -27,7 +27,7 @@ void f(_Out_ char c) } ``` -To correct this warning, use a pointer or an array type, as shown in the following sample code: +To correct this warning, use a pointer or an array type, as shown in the following example code: ```cpp #include diff --git a/docs/code-quality/c6508.md b/docs/code-quality/c6508.md index 3915b736ae7..f48ec901cc3 100644 --- a/docs/code-quality/c6508.md +++ b/docs/code-quality/c6508.md @@ -1,20 +1,19 @@ --- +title: "Warning C6508" description: "Learn more about: Warning C6508" -title: Warning C6508 ms.date: 11/04/2016 f1_keywords: ["C6508", "WRITE_ACCESS_ON_CONST", "__WARNING_WRITE_ACCESS_ON_CONST"] helpviewer_keywords: ["C6508"] -ms.assetid: ac5b23c8-ab9e-481b-bc97-8404f0b63100 --- # Warning C6508 > Invalid annotation: write access is not allowed on const values +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that the Access property specified on a const parameter implies that it can be written to. For constant values, Access=Read is the only valid setting. Code analysis name: `WRITE_ACCESS_ON_CONST` diff --git a/docs/code-quality/c6509.md b/docs/code-quality/c6509.md index 5266f53e763..e969a7c5d47 100644 --- a/docs/code-quality/c6509.md +++ b/docs/code-quality/c6509.md @@ -1,10 +1,9 @@ --- +title: "Warning C6509" description: "Learn more about: Warning C6509" -title: Warning C6509 ms.date: 11/04/2016 f1_keywords: ["C6509", "RETURN_USED_ON_PRECONDITION", "__WARNING_RETURN_USED_ON_PRECONDITION"] helpviewer_keywords: ["C6509"] -ms.assetid: 6311bfd9-8372-48da-b01b-1c8775c38449 --- # Warning C6509 diff --git a/docs/code-quality/c6510.md b/docs/code-quality/c6510.md index e6d2366a4cf..b390495e5f6 100644 --- a/docs/code-quality/c6510.md +++ b/docs/code-quality/c6510.md @@ -1,10 +1,9 @@ --- +title: "Warning C6510" description: "Learn more about: Warning C6510" -title: Warning C6510 ms.date: 11/04/2016 f1_keywords: ["C6510", "NULLTERMINATED_ON_NON_POINTER", "__WARNING_NULLTERMINATED_ON_NON_POINTER"] helpviewer_keywords: ["C6510"] -ms.assetid: b7fc5eb4-3311-442c-ac79-401e88ef2129 --- # Warning C6510 diff --git a/docs/code-quality/c6511.md b/docs/code-quality/c6511.md index 262a03838f3..37d75c8a480 100644 --- a/docs/code-quality/c6511.md +++ b/docs/code-quality/c6511.md @@ -1,20 +1,19 @@ --- +title: "Warning C6511" description: "Learn more about: Warning C6511" -title: Warning C6511 ms.date: 11/04/2016 f1_keywords: ["C6511", "MUSTCHECK_MAYBE", "__WARNING_MUSTCHECK_MAYBE"] helpviewer_keywords: ["C6511"] -ms.assetid: 1a0ac213-c205-4fb1-9bc3-3dc7885329fa --- # Warning C6511 > Invalid annotation: MustCheck property must be Yes or No +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates an invalid value for `MustCheck` property was specified. The only valid values for this property are: Yes and No. Code analysis name: `MUSTCHECK_MAYBE` diff --git a/docs/code-quality/c6513.md b/docs/code-quality/c6513.md index be19005461a..7f4d110c621 100644 --- a/docs/code-quality/c6513.md +++ b/docs/code-quality/c6513.md @@ -1,20 +1,19 @@ --- +title: "Warning C6513" description: "Learn more about: Warning C6513" -title: Warning C6513 ms.date: 11/04/2016 f1_keywords: ["C6513", "ELEMENT_SIZE_WITHOUT_BUFFER_SIZE", "__WARNING_ELEMENT_SIZE_WITHOUT_BUFFER_SIZE"] helpviewer_keywords: ["C6513"] -ms.assetid: b27780ac-b237-4b26-a796-68a920da73a3 --- # Warning C6513 > Invalid annotation: ElementSizeConst requires additional size properties +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that `ElementSizeConst` requires other properties that are missing from the annotation. Specifying `ElementSizeConst` alone doesn't provide any benefit to the analysis process. In addition to specifying `ElementSize`, other properties such as `ValidElementsConst` or `WritableElementsConst` must also be specified. Code analysis name: `ELEMENT_SIZE_WITHOUT_BUFFER_SIZE` diff --git a/docs/code-quality/c6514.md b/docs/code-quality/c6514.md index cad312ecf26..b0826ee86ce 100644 --- a/docs/code-quality/c6514.md +++ b/docs/code-quality/c6514.md @@ -1,10 +1,9 @@ --- +title: "Warning C6514" description: "Learn more about: Warning C6514" -title: Warning C6514 ms.date: 11/04/2016 f1_keywords: ["C6514", "BUFFER_SIZE_EXCEEDS_ARRAY_SIZE", "__WARNING_BUFFER_SIZE_EXCEEDS_ARRAY_SIZE"] helpviewer_keywords: ["C6514"] -ms.assetid: 4930a9f9-c721-437f-8754-cf39b30ea2db --- # Warning C6514 @@ -31,7 +30,7 @@ using namespace vc_attributes; void f( [Pre(Deref=1, ValidElementsConst=8)] char(*matrix) [6] ); ``` -To correct this warning, make sure the size of specified in ValidElementsConst is less than or equal to the size of the array, as shown in the following sample code: +To correct this warning, make sure the size of specified in ValidElementsConst is less than or equal to the size of the array, as shown in the following example code: ```cpp // C diff --git a/docs/code-quality/c6515.md b/docs/code-quality/c6515.md index 1f329099e64..b8d51042420 100644 --- a/docs/code-quality/c6515.md +++ b/docs/code-quality/c6515.md @@ -1,10 +1,9 @@ --- +title: "Warning C6515" description: "Learn more about: Warning C6515" -title: Warning C6515 ms.date: 11/04/2016 f1_keywords: ["C6515", "BUFFER_SIZE_ON_NON_POINTER", "__WARNING_BUFFER_SIZE_ON_NON_POINTER"] helpviewer_keywords: ["C6515"] -ms.assetid: e0f21858-0fea-427b-965a-a7eff62e1371 --- # Warning C6515 diff --git a/docs/code-quality/c6516.md b/docs/code-quality/c6516.md index 7bb9fb56826..128900e3e6b 100644 --- a/docs/code-quality/c6516.md +++ b/docs/code-quality/c6516.md @@ -1,20 +1,19 @@ --- +title: "Warning C6516" description: "Learn more about: Warning C6516" -title: Warning C6516 ms.date: 11/04/2016 f1_keywords: ["C6516", "NO_PROPERTIES_ON_ATTRIBUTE", "__WARNING_NO_PROPERTIES_ON_ATTRIBUTE"] helpviewer_keywords: ["C6516"] -ms.assetid: 461078c8-18d4-49ca-80a2-a15736f429a0 --- # Warning C6516 > Invalid annotation: no properties specified for '*name*' attribute +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that either no property was specified in the attribute or the property that was specified is invalid; therefore, the attribute can't be considered complete. Code analysis name: `NO_PROPERTIES_ON_ATTRIBUTE` diff --git a/docs/code-quality/c6517.md b/docs/code-quality/c6517.md index b7ce49aa83f..45b7ea115d8 100644 --- a/docs/code-quality/c6517.md +++ b/docs/code-quality/c6517.md @@ -1,20 +1,19 @@ --- +title: "Warning C6517" description: "Learn more about: Warning C6517" -title: Warning C6517 ms.date: 11/04/2016 f1_keywords: ["C6517", "VALID_SIZE_ON_NON_READABLE_BUFFER", "__WARNING_VALID_SIZE_ON_NON_READABLE_BUFFER"] helpviewer_keywords: ["C6517"] -ms.assetid: 96822155-8b2a-4699-980f-744afff84ca8 --- # Warning C6517 > Invalid annotation: 'SAL_readableTo' property may not be specified on buffers that are not readable: '*Parameter*'. +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that `SAL_readableTo` property doesn't have the required read access. You can't use this property to annotate a parameter without providing read access. Code analysis name: `VALID_SIZE_ON_NON_READABLE_BUFFER` diff --git a/docs/code-quality/c6518.md b/docs/code-quality/c6518.md index 179ef86f930..de6c364ac96 100644 --- a/docs/code-quality/c6518.md +++ b/docs/code-quality/c6518.md @@ -1,10 +1,9 @@ --- +title: "Warning C6518" description: "Learn more about: Warning C6518" -title: Warning C6518 ms.date: 11/04/2016 f1_keywords: ["C6518", "WRITABLE_SIZE_ON_NON_WRITABLE_BUFFER", "__WARNING_WRITABLE_SIZE_ON_NON_WRITABLE_BUFFER"] helpviewer_keywords: ["C6518"] -ms.assetid: c391a75b-9f16-43a5-a7cd-c5a233002850 --- # Warning C6518 diff --git a/docs/code-quality/c6522.md b/docs/code-quality/c6522.md index 3f7b9cbb6d4..b4d4d9f5bc2 100644 --- a/docs/code-quality/c6522.md +++ b/docs/code-quality/c6522.md @@ -1,20 +1,19 @@ --- +title: "Warning C6522" description: "Learn more about: Warning C6522" -title: Warning C6522 ms.date: 11/04/2016 f1_keywords: ["C6522", "INVALID_SIZE_STRING_TYPE", "__WARNING_INVALID_SIZE_STRING_TYPE"] helpviewer_keywords: ["C6522"] -ms.assetid: ac482f63-b27f-4807-968a-1c449033d2dd --- # Warning C6522 > Invalid size specification: expression must be of integral type: annotation '*annotation*' on function '*function*' '*parameter*' +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that an integral type was expected, but an incorrect data type was used. You can use annotation properties that accept the size of a parameter in terms of another parameter, but you must use correct data type. For a list of annotation properties, see [Using SAL Annotations to reduce code defects](using-sal-annotations-to-reduce-c-cpp-code-defects.md). Code analysis name: `INVALID_SIZE_STRING_TYPE` @@ -34,7 +33,7 @@ using namespace vc_attributes; void f ([Pre(ValidBytes="c")] char *pc, double c); ``` -To correct this warning, use `size_t` for the `ValidBytesParam` parameter data type, as shown in the following sample code: +To correct this warning, use `size_t` for the `ValidBytesParam` parameter data type, as shown in the following example code: ```cpp // C diff --git a/docs/code-quality/c6525.md b/docs/code-quality/c6525.md index 360aa708d94..36a6e2cd5e0 100644 --- a/docs/code-quality/c6525.md +++ b/docs/code-quality/c6525.md @@ -1,20 +1,19 @@ --- +title: "Warning C6525" description: "Learn more about: Warning C6525" -title: Warning C6525 ms.date: 11/04/2016 f1_keywords: ["C6525", "INVALID_SIZE_STRING_UNREACHABLE_LOCATION", "__WARNING_INVALID_SIZE_STRING_UNREACHABLE_LOCATION"] helpviewer_keywords: ["C6525"] -ms.assetid: a7af4dc7-d5a4-455f-a414-0c389ffd9aa9 --- # Warning C6525 > Invalid size specification: property value may not be valid +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that the property value used to specify the size isn't valid. The warning occurs if the size parameter is annotated using `Valid=No`. Code analysis name: `INVALID_SIZE_STRING_UNREACHABLE_LOCATION` diff --git a/docs/code-quality/c6527.md b/docs/code-quality/c6527.md index 4c6c08810c6..0df3ea2dd62 100644 --- a/docs/code-quality/c6527.md +++ b/docs/code-quality/c6527.md @@ -1,10 +1,9 @@ --- +title: "Warning C6527" description: "Learn more about: Warning C6527" -title: Warning C6527 ms.date: 11/04/2016 f1_keywords: ["C6527"] helpviewer_keywords: ["C6527"] -ms.assetid: 5ebb6279-0f75-4566-a5f3-a47834de9625 --- # Warning C6527 diff --git a/docs/code-quality/c6530.md b/docs/code-quality/c6530.md index 4bf05cf3e30..fcaaaee3b72 100644 --- a/docs/code-quality/c6530.md +++ b/docs/code-quality/c6530.md @@ -1,20 +1,19 @@ --- +title: "Warning C6530" description: "Learn more about: Warning C6530" -title: Warning C6530 ms.date: 11/04/2016 f1_keywords: ["C6530", "UNRECOGNIZED_FORMAT_STRING_STYLE", "__WARNING_UNRECOGNIZED_FORMAT_STRING_STYLE"] helpviewer_keywords: ["C6530"] -ms.assetid: 60e9dc58-e0f1-4a34-8c75-efebaa6cadd2 --- # Warning C6530 > Unrecognized format string style '*name*' +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). -## Remarks - This warning indicates that the `FormatString` property is using a value other than `scanf` or `printf`. To correct this warning, review your code and use a valid value for the `Style` property. Code analysis name: `UNRECOGNIZED_FORMAT_STRING_STYLE` diff --git a/docs/code-quality/c6540.md b/docs/code-quality/c6540.md index 77790ec3ea0..65e63f09ada 100644 --- a/docs/code-quality/c6540.md +++ b/docs/code-quality/c6540.md @@ -1,10 +1,9 @@ --- +title: "Warning C6540" description: "Learn more about: Warning C6540" -title: Warning C6540 ms.date: 11/04/2016 f1_keywords: ["C6540"] helpviewer_keywords: ["C6540"] -ms.assetid: b047084c-9187-443e-8bcd-8f42064003f7 --- # Warning C6540 diff --git a/docs/code-quality/c6551.md b/docs/code-quality/c6551.md index d6b47b6f155..6a4e0b3c4a9 100644 --- a/docs/code-quality/c6551.md +++ b/docs/code-quality/c6551.md @@ -1,14 +1,15 @@ --- +title: "Warning C6551" description: "Learn more about: Warning C6551" -title: Warning C6551 ms.date: 11/04/2016 f1_keywords: ["C6551"] helpviewer_keywords: ["C6551"] -ms.assetid: cfd02698-7ba7-4564-841d-208999b1561d --- # Warning C6551 > Invalid size specification: expression not parsable +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). diff --git a/docs/code-quality/c6552.md b/docs/code-quality/c6552.md index 9ccb714199a..ebdf48ef39d 100644 --- a/docs/code-quality/c6552.md +++ b/docs/code-quality/c6552.md @@ -1,14 +1,15 @@ --- +title: "Warning C6552" description: "Learn more about: Warning C6552" -title: Warning C6552 ms.date: 11/04/2016 f1_keywords: ["C6552"] helpviewer_keywords: ["C6552"] -ms.assetid: 6c6f17d8-4ddd-4fad-b81f-e32285e7afa8 --- # Warning C6552 > Invalid `Deref=` or `Notref=`: expression not parsable +## Remarks + > [!NOTE] > This warning occurs only in code that is using a deprecated version of the source-code annotation language (SAL). We recommend that you port your code to use the latest version of SAL. For more information, see [Using SAL Annotations to Reduce C/C++ Code Defects](../code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects.md). diff --git a/docs/code-quality/c6701.md b/docs/code-quality/c6701.md index 386d29a099b..35aa86ba49d 100644 --- a/docs/code-quality/c6701.md +++ b/docs/code-quality/c6701.md @@ -1,5 +1,5 @@ --- -title: Warning C6701 +title: "Warning C6701" description: "Learn more about: Warning C6701" ms.date: 11/04/2016 f1_keywords: ["C6701"] @@ -9,4 +9,6 @@ helpviewer_keywords: ["C6701"] > The value is not a valid Yes/No/Maybe value: '*string*' +## Remarks + This warning is reported when there's an error in the annotations. diff --git a/docs/code-quality/c6702.md b/docs/code-quality/c6702.md index 6fb0c5520df..ecb9a87a5dc 100644 --- a/docs/code-quality/c6702.md +++ b/docs/code-quality/c6702.md @@ -1,13 +1,14 @@ --- +title: "Warning C6702" description: "Learn more about: Warning C6702" -title: Warning C6702 ms.date: 11/04/2016 f1_keywords: ["C6702"] helpviewer_keywords: ["C6702"] -ms.assetid: 6d373843-4ab4-4a94-bb83-5fec9214c625 --- # Warning C6702 > The value is not a string value: '*string*' +## Remarks + This warning is reported when there's an error in the annotations. diff --git a/docs/code-quality/c6703.md b/docs/code-quality/c6703.md index f8b5ad7669f..40f198dc2e5 100644 --- a/docs/code-quality/c6703.md +++ b/docs/code-quality/c6703.md @@ -1,13 +1,14 @@ --- +title: "Warning C6703" description: "Learn more about: Warning C6703" -title: Warning C6703 ms.date: 11/04/2016 f1_keywords: ["C6703"] helpviewer_keywords: ["C6703"] -ms.assetid: 8ec4f403-e63e-4930-8266-569c9cd263b4 --- # Warning C6703 > The value is not a number: '*string*' +## Remarks + This warning is reported when there's an error in the annotations. diff --git a/docs/code-quality/c6704.md b/docs/code-quality/c6704.md index c15266ab7fe..5a68ddfee58 100644 --- a/docs/code-quality/c6704.md +++ b/docs/code-quality/c6704.md @@ -1,13 +1,14 @@ --- +title: "Warning C6704" description: "Learn more about: Warning C6704" -title: Warning C6704 ms.date: 11/04/2016 f1_keywords: ["C6704"] helpviewer_keywords: ["C6704"] -ms.assetid: fc25543d-746e-415e-b0a8-d5134461af41 --- # Warning C6704 > Unexpected Annotation Expression Error: '*annotation*' ['*why*'] +## Remarks + This warning is reported when there's an error in the annotations. diff --git a/docs/code-quality/c6705.md b/docs/code-quality/c6705.md index 6d6c84dcc51..17a2222150d 100644 --- a/docs/code-quality/c6705.md +++ b/docs/code-quality/c6705.md @@ -1,13 +1,14 @@ --- +title: "Warning C6705" description: "Learn more about: Warning C6705" -title: Warning C6705 ms.date: 11/04/2016 f1_keywords: ["C6705"] helpviewer_keywords: ["C6705"] -ms.assetid: 5d81e7ac-0c51-4cca-aaa8-df1aa599f175 --- # Warning C6705 > Annotation error expected arguments for annotation '*parameter*' found . +## Remarks + This warning is reported when there's an error in the annotations. diff --git a/docs/code-quality/c6706.md b/docs/code-quality/c6706.md index 317a1bb989d..7f430a9c48b 100644 --- a/docs/code-quality/c6706.md +++ b/docs/code-quality/c6706.md @@ -1,13 +1,14 @@ --- +title: "Warning C6706" description: "Learn more about: Warning C6706" -title: Warning C6706 ms.date: 11/04/2016 f1_keywords: ["C6706"] helpviewer_keywords: ["C6706"] -ms.assetid: 20f3fd01-4993-4f7f-bd3f-57706356cf1d --- # Warning C6706 > Unexpected Annotation Error for annotation '*annotation*': '*why*' +## Remarks + This warning is reported when there's an error in the annotations. diff --git a/docs/code-quality/c6707.md b/docs/code-quality/c6707.md index 8a12d79df99..24441240b1d 100644 --- a/docs/code-quality/c6707.md +++ b/docs/code-quality/c6707.md @@ -1,10 +1,9 @@ --- +title: "Warning C6707" description: "Learn more about: Warning C6707" -title: Warning C6707 ms.date: 11/04/2016 f1_keywords: ["C6707"] helpviewer_keywords: ["C6707"] -ms.assetid: a6610464-9bc5-4f24-b0a5-7fa29581874d --- # Warning C6707 diff --git a/docs/code-quality/c6993.md b/docs/code-quality/c6993.md index 54f78c56c90..a2b72c3ae86 100644 --- a/docs/code-quality/c6993.md +++ b/docs/code-quality/c6993.md @@ -1,5 +1,5 @@ --- -title: Warning C6993 +title: "Warning C6993" description: "Learn more about: Warning C6993" ms.date: 2/25/2025 f1_keywords: ["C6993"] @@ -9,6 +9,8 @@ helpviewer_keywords: ["C6993"] > Code analysis ignores OpenMP constructs; analyzing single-threaded code +## Remarks + This warning indicates that the static analysis tools don't support Open MP pragmas. The static analysis tools could generate incorrect results because they assume the code is single-threaded, not multi-threaded. Your code doesn't necessarily need to be 'fixed' to resolve this diagnostic because this warning indicates what the toolset supports and not an issue with your code. \ No newline at end of file diff --git a/docs/code-quality/c6995.md b/docs/code-quality/c6995.md index 4ca022014e5..a7183235967 100644 --- a/docs/code-quality/c6995.md +++ b/docs/code-quality/c6995.md @@ -1,5 +1,5 @@ --- -title: Warning C6995 +title: "Warning C6995" description: "Learn more about: Warning C6995" ms.date: 11/04/2016 f1_keywords: ["C6995"] @@ -9,6 +9,8 @@ helpviewer_keywords: ["C6995"] > Failed to save XML Log file +## Remarks + This warning indicates that the Code Analysis tool can't create the defect log, which is the output of the code analysis. This error might indicate a disk error or indicate that you don't have permission to create a file in the specified directory. diff --git a/docs/code-quality/c6997.md b/docs/code-quality/c6997.md index 8cbfc9bd5ed..693cd3ffb47 100644 --- a/docs/code-quality/c6997.md +++ b/docs/code-quality/c6997.md @@ -1,5 +1,5 @@ --- -title: Warning C6997 +title: "Warning C6997" description: "Learn more about: Warning C6997" ms.date: 11/04/2016 f1_keywords: ["C6997", "IGNORED_ANNOTATIONS"]