Astyle running and added test cases for functions in std.cfg.

This commit is contained in:
Martin Ettl 2014-03-10 02:21:44 +01:00
parent 26af1a232a
commit 80b1271d01
2 changed files with 13 additions and 4 deletions

View File

@ -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();
}

View File

@ -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());