script_opt: Use Func::GetName()

This commit is contained in:
Arne Welzel 2024-09-27 12:52:32 +02:00
parent 89127722ea
commit 71e9c8d436
16 changed files with 49 additions and 48 deletions

View file

@ -47,7 +47,7 @@ void CPPCompile::Compile(bool report_uncompilable) {
if ( ! allow_cond && ! func.ShouldSkip() && ! ofiles.empty() && files_with_conditionals.count(fn) > 0 ) {
if ( report_uncompilable )
reporter->Warning("%s cannot be compiled to C++ due to source file %s having conditional code",
f->Name(), fn.c_str());
f->GetName().c_str(), fn.c_str());
else if ( filenames_reported_as_skipped.count(fn) == 0 ) {
reporter->Warning("skipping compilation of files in %s due to presence of conditional code",
@ -60,7 +60,7 @@ void CPPCompile::Compile(bool report_uncompilable) {
}
if ( func.ShouldSkip() ) {
not_fully_compilable.insert(f->Name());
not_fully_compilable.insert(f->GetName());
continue;
}
@ -79,10 +79,10 @@ void CPPCompile::Compile(bool report_uncompilable) {
else {
if ( reason && report_uncompilable ) {
had_to_skip = true;
reporter->Warning("%s cannot be compiled to C++ due to %s", f->Name(), reason);
reporter->Warning("%s cannot be compiled to C++ due to %s", f->GetName().c_str(), reason);
}
not_fully_compilable.insert(f->Name());
not_fully_compilable.insert(f->GetName());
}
}