mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
isolate Location specifics to private class variables to enforce correct line number ordering
This commit is contained in:
parent
eb6b4a0c46
commit
5c63133226
30 changed files with 172 additions and 136 deletions
|
@ -182,8 +182,8 @@ string CPPCompile::BodyName(const FuncInfo& func) {
|
|||
|
||||
// Extend name with location information.
|
||||
auto loc = body->GetLocationInfo();
|
||||
if ( loc->filename ) {
|
||||
auto fn = loc->filename;
|
||||
if ( loc->FileName() ) {
|
||||
auto fn = loc->FileName();
|
||||
|
||||
// Skip leading goop that gets added by search paths.
|
||||
while ( *fn == '.' || *fn == '/' )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue