Add CollapseClauseToAssert lint string

Add `CollapseClauseToAssert` as a member of the `kWarningNames` list to go along with the new linting itself.
This commit is contained in:
PhoenixWhitefire 2024-08-11 16:05:21 +05:30 committed by GitHub
parent fba48ae3e4
commit 83b2f7b29f
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,7 @@ struct LintWarning
Code_IntegerParsing = 27,
Code_ComparisonPrecedence = 28,
Code_RedundantNativeAttribute = 29,
Code_CollapseClauseToAssert = 30,
Code__Count
};
@ -117,6 +118,7 @@ static const char* kWarningNames[] = {
"IntegerParsing",
"ComparisonPrecedence",
"RedundantNativeAttribute",
"CollapseClauseToAssert"
};
// clang-format on