Astyle running and added test cases for functions in std.cfg.
This commit is contained in:
parent
26af1a232a
commit
80b1271d01
|
@ -289,16 +289,16 @@ static void CppcheckSignalHandler(int signo, siginfo_t * info, void * /*context*
|
|||
break;
|
||||
*/
|
||||
case SIGINT:
|
||||
bPrintCallstack=false;
|
||||
break;
|
||||
bPrintCallstack=false;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Internal error (caught signal %d)\n",
|
||||
signo);
|
||||
break;
|
||||
}
|
||||
if (bPrintCallstack) {
|
||||
print_stacktrace(stderr, false);
|
||||
fprintf(stderr, "Please report this to the cppcheck developers!\n");
|
||||
print_stacktrace(stderr, false);
|
||||
fprintf(stderr, "Please report this to the cppcheck developers!\n");
|
||||
}
|
||||
abort();
|
||||
}
|
||||
|
|
|
@ -2409,6 +2409,15 @@ private:
|
|||
check("void f(char*p,char*q){ strcpy (p,q);if(!p||!q){}}");
|
||||
ASSERT_EQUALS(errpq,errout.str());
|
||||
|
||||
check("void f(char*p,char*q){ strspn (p,q);if(!p||!q){}}");
|
||||
ASSERT_EQUALS(errpq,errout.str());
|
||||
|
||||
check("void f(char*p,char*q){ strcspn (p,q);if(!p||!q){}}");
|
||||
ASSERT_EQUALS(errpq,errout.str());
|
||||
|
||||
check("void f(char*p,char*q){ strcoll (p,q);if(!p||!q){}}");
|
||||
ASSERT_EQUALS(errpq,errout.str());
|
||||
|
||||
check("void f(char*p,char*q){ strcat (p,q);if(!p||!q){}}");
|
||||
ASSERT_EQUALS(errpq,errout.str());
|
||||
|
||||
|
|
Loading…
Reference in New Issue