| 471 | return !isCppKeyword(str.c_str()); |
| 472 | } |
| 473 | virtual void preVisitModule ( Module * mod ) override { |
| 474 | Visitor::preVisitModule(mod); |
| 475 | if ( !mod->name.empty() && !isValidModuleName(mod->name) ) { |
| 476 | program->error("invalid module name '" + mod->name + "'", "", "", |
| 477 | LineInfo(), CompilationError::invalid_module_name ); |
| 478 | } |
| 479 | } |
| 480 | void lintType ( TypeDecl * td ) { |
| 481 | if ( td->firstType ) lintType(td->firstType); |
| 482 | if ( td->secondType ) lintType(td->secondType); |
no test coverage detected