Skip to content

Commit dc4ec74

Browse files
authored
Merge pull request #3147 from hwisungi/master
Correct errors in descriptions, and make descriptions consistent among related warnings
2 parents f5bb67e + 920156d commit dc4ec74

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

docs/code-quality/c33001.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dev_langs: ["C++"]
1414

1515
> Warning C33001: VARIANT 'var' was cleared when it was uninitialized (expression 'expr')
1616
17-
This warning is triggered when an uninitialized VARIANT is passed into an API such as VariantClear
17+
This warning is triggered when an uninitialized VARIANT is passed to an API such as VariantClear
1818
that expects an initialized VARIANT.
1919

2020
## Example

docs/code-quality/c33004.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dev_langs: ["C++"]
1414

1515
> Warning C33004: VARIANT 'var', which is marked as _Out_ was cleared before being initialized (expression 'expr')
1616
17-
This warning is triggered when a VARIANT parameter with \_Out\_ SAL annotation, which may not be
18-
to be initialized on input, is passed to an API such as VariantClear that expects an initialized VARIANT.
17+
This warning is triggered when a VARIANT parameter with \_Out\_ SAL annotation, which may haven't been
18+
initialized on input, is passed to an API such as VariantClear that expects an initialized VARIANT.
1919

2020
## Example
2121

docs/code-quality/c33005.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dev_langs: ["C++"]
1414

1515
> Warning C33005: VARIANT 'var' was provided as an input or input/output parameter but was not initialized (expression 'expr')
1616
17-
This warning is triggered when an uninitialized VARIANT is passed to a function as input only or input/output
17+
This warning is triggered when an uninitialized VARIANT is passed to a function as input-only or input/output
1818
parameter - for example, a pass-by-refrence parameter without an \_Out\_ SAL annotation.
1919

2020
## Example

docs/code-quality/c33011.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ dev_langs: ["C++"]
1414

1515
> Warning C33011: Unchecked upper bound for enum 'enum' used as index.
1616
17-
This warning is triggered when the lower bound of the enum used as index into an array is checked,
18-
but the upper bound is not checked.
19-
2017
This warning is triggered for an enum that is used as an index into an array,
2118
if the lower bound is checked for its value, but not the upper bound.
2219

docs/code-quality/c33022.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dev_langs: ["C++"]
1414

1515
> Warning C33022: Potentially incorrect HRESULT usage detected (low confidence)
1616
17-
It is a low-confidence warning for functions that return HRESULT, if there is "FALSE" or "false"
18-
somewhere along the line that eventually returns it or assigns to a variable that is returned.
17+
This is low-confidence warning for a function that returns HRESULT, if there is "FALSE" or "false"
18+
somewhere along the line that eventually returns it or assigns it to a variable that is returned.
1919

2020
## Example
2121

0 commit comments

Comments
 (0)