mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
ScannedFile: Allow skipping canonicalization
This commit is contained in:
parent
3c16b0720a
commit
2a8040039a
2 changed files with 10 additions and 3 deletions
|
@ -12,10 +12,13 @@ namespace zeek::detail {
|
|||
|
||||
// Script file we have already scanned (or are in the process of scanning).
|
||||
// They are identified by normalized canonical path.
|
||||
//
|
||||
// If arg_is_canonical is set to true, assume arg_name is canonicalized and
|
||||
// skip resolving the canonical name.
|
||||
class ScannedFile {
|
||||
public:
|
||||
ScannedFile(int arg_include_level, std::string arg_name, bool arg_skipped = false,
|
||||
bool arg_prefixes_checked = false);
|
||||
bool arg_prefixes_checked = false, bool arg_is_canonical = false);
|
||||
|
||||
/**
|
||||
* Compares the canonical path of this file against every canonical path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue