Fix --doc output. * must be escaped.

This commit is contained in:
Daniel Marjamäki 2018-10-11 13:59:21 +02:00
parent 7eb5ebe17e
commit 936c627307
2 changed files with 4 additions and 4 deletions

View File

@ -372,7 +372,7 @@ private:
"- assignment of a variable to itself\n"
"- Comparison of values leading always to true or false\n"
"- Clarify calculation with parentheses\n"
"- suspicious comparison of '\\0' with a char* variable\n"
"- suspicious comparison of '\\0' with a char\\* variable\n"
"- duplicate break statement\n"
"- unreachable code\n"
"- testing if unsigned variable is negative/positive\n"
@ -382,7 +382,7 @@ private:
"- comma in return statement (the comma can easily be misread as a semicolon).\n"
"- prefer erfc, expm1 or log1p to avoid loss of precision.\n"
"- identical code in both branches of if/else or ternary operator.\n"
"- redundant pointer operation on pointer like &*some_ptr.\n"
"- redundant pointer operation on pointer like &\\*some_ptr.\n"
"- find unused 'goto' labels.\n"
"- function declaration and definition argument names different.\n"
"- function declaration and definition argument order different.\n";

View File

@ -129,8 +129,8 @@ private:
"- incorrect length arguments for 'substr' and 'strncmp'\n"
"- suspicious condition (runtime comparison of string literals)\n"
"- suspicious condition (string/char literals as boolean)\n"
"- suspicious comparison of a string literal with a char* variable\n"
"- suspicious comparison of '\\0' with a char* variable\n"
"- suspicious comparison of a string literal with a char\\* variable\n"
"- suspicious comparison of '\\0' with a char\\* variable\n"
"- overlapping strcmp() expression\n";
}
};