diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-30 19:01:02 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-30 19:01:02 +0100 |
| commit | 629b248f538b964c0480d40a1e5e7ad913ff6ea0 (patch) | |
| tree | a932eeadf75d568c039898c1560dc76b19cdac57 /src/checker.cpp | |
| parent | 62a72f0163b2f35ca11cd8f4bbb4c7de2c66fca4 (diff) | |
Parallelization of the Parser
~66% reduction (unoptimized build)
~30% reduction (optimized build)
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index c243c704b..f6c20c048 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -2279,6 +2279,8 @@ void check_parsed_files(Checker *c) { scope->file = f; if (f->tokenizer.fullpath == c->parser->init_fullpath) { scope->is_init = true; + } else if (f->file_kind == ImportedFile_Init) { + scope->is_init = true; } if (scope->is_global) { |