Changeset ca9d65e for src/InitTweak/FixInit.cpp
- Timestamp:
- Dec 14, 2023, 9:05:55 PM (7 months ago)
- Branches:
- master
- Children:
- 19a2890
- Parents:
- 21ad568
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cpp
r21ad568 rca9d65e 1057 1057 ) 1058 1058 if ( ! diff.empty() ) { 1059 SemanticError( stmt, std::string("jump to label '") + stmt->target.name + "' crosses initialization of " + (*diff.begin())->name + " " ); 1059 SemanticError( stmt->location, "jump to label \"%s\" crosses initialization of \"%s\".", 1060 stmt->target.name.c_str(), (*diff.begin())->name.c_str() ); 1060 1061 } // if 1061 1062 } … … 1076 1077 1077 1078 bool checkWarnings( const ast::FunctionDecl * funcDecl ) { 1078 // only check for warnings if the current function is a user-defined 1079 // constructor or destructor 1079 // only check for warnings if the current function is a user-defined constructor or destructor 1080 1080 if ( ! funcDecl ) return false; 1081 1081 if ( ! funcDecl->stmts ) return false;
Note: See TracChangeset
for help on using the changeset viewer.