mirror of
https://github.com/nasa/trick.git
synced 2025-06-23 01:08:52 +00:00
revert scan-build changes, need further testing before merge
This commit is contained in:
@ -126,7 +126,7 @@ void CommentSaver::getICGField( std::string file_name ) {
|
||||
so much easier in perl! */
|
||||
|
||||
/* find the ICG field */
|
||||
regcomp( ®_expr , "(ICG:)" , REG_EXTENDED | REG_ICASE ) ;
|
||||
ret = regcomp( ®_expr , "(ICG:)" , REG_EXTENDED | REG_ICASE ) ;
|
||||
ret = regexec( ®_expr , th_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
if ( ret != 0 ) {
|
||||
@ -136,7 +136,7 @@ void CommentSaver::getICGField( std::string file_name ) {
|
||||
|
||||
/* find the end of the ICG field */
|
||||
memset(pmatch , 0 , sizeof(pmatch)) ;
|
||||
regcomp( ®_expr , "(\\))" , REG_EXTENDED ) ;
|
||||
ret = regcomp( ®_expr , "(\\))" , REG_EXTENDED ) ;
|
||||
ret = regexec( ®_expr , th_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
|
||||
@ -147,7 +147,7 @@ void CommentSaver::getICGField( std::string file_name ) {
|
||||
|
||||
/* test for NoComment */
|
||||
memset(pmatch , 0 , sizeof(pmatch)) ;
|
||||
regcomp( ®_expr , "(NOCOMMENT)$" , REG_EXTENDED ) ;
|
||||
ret = regcomp( ®_expr , "(NOCOMMENT)$" , REG_EXTENDED ) ;
|
||||
ret = regexec( ®_expr , th_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
|
||||
@ -157,7 +157,7 @@ void CommentSaver::getICGField( std::string file_name ) {
|
||||
|
||||
/* test for No */
|
||||
memset(pmatch , 0 , sizeof(pmatch)) ;
|
||||
regcomp( ®_expr , "(NO)$" , REG_EXTENDED ) ;
|
||||
ret = regcomp( ®_expr , "(NO)$" , REG_EXTENDED ) ;
|
||||
ret = regexec( ®_expr , th_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
|
||||
@ -208,7 +208,7 @@ std::set< std::string > CommentSaver::getIgnoreTypes( std::string file_name ) {
|
||||
start += strlen("trick_exclude_typename") ;
|
||||
std::string temp_str = th_str.substr(start) ;
|
||||
memset(pmatch , 0 , sizeof(pmatch)) ;
|
||||
regcomp( ®_expr , "^\\s*\\{\\s*(\\S+)\\s*\\}" , REG_EXTENDED ) ;
|
||||
ret = regcomp( ®_expr , "^\\s*\\{\\s*(\\S+)\\s*\\}" , REG_EXTENDED ) ;
|
||||
ret = regexec( ®_expr , temp_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
if ( ret == 0 ) {
|
||||
@ -230,7 +230,7 @@ std::set< std::string > CommentSaver::getIgnoreTypes( std::string file_name ) {
|
||||
so much easier in perl! */
|
||||
|
||||
/* find the start of the ICG_IGNORE_TYPES field */
|
||||
regcomp( ®_expr , "(ICG[ _]IGNORE[ _]TYPE(S)?:)" , REG_EXTENDED | REG_ICASE ) ;
|
||||
ret = regcomp( ®_expr , "(ICG[ _]IGNORE[ _]TYPE(S)?:)" , REG_EXTENDED | REG_ICASE ) ;
|
||||
ret = regexec( ®_expr , th_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
if ( ret != 0 ) {
|
||||
@ -240,7 +240,7 @@ std::set< std::string > CommentSaver::getIgnoreTypes( std::string file_name ) {
|
||||
|
||||
/* find the end of the ICG_IGNORE_TYPES field */
|
||||
memset(pmatch , 0 , sizeof(pmatch)) ;
|
||||
regcomp( ®_expr , "(\\)\\s*\\))" , REG_EXTENDED ) ;
|
||||
ret = regcomp( ®_expr , "(\\)\\s*\\))" , REG_EXTENDED ) ;
|
||||
ret = regexec( ®_expr , th_str.c_str() , 10 , pmatch , 0 ) ;
|
||||
regfree(®_expr) ;
|
||||
if ( ret != 0 ) {
|
||||
|
Reference in New Issue
Block a user