From 936c6273070aad67fbdecb49d0f9731145e35e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 11 Oct 2018 13:59:21 +0200 Subject: [PATCH] Fix --doc output. * must be escaped. --- lib/checkother.h | 4 ++-- lib/checkstring.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/checkother.h b/lib/checkother.h index 4a0da0958..fd91ebcab 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -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"; diff --git a/lib/checkstring.h b/lib/checkstring.h index bb804b4cf..b68b99f31 100644 --- a/lib/checkstring.h +++ b/lib/checkstring.h @@ -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"; } };