mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
script_opt: Use Func::GetName()
This commit is contained in:
parent
89127722ea
commit
71e9c8d436
16 changed files with 49 additions and 48 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue