From c79dfc862f0e4590d39384786162c3814005f9b4 Mon Sep 17 00:00:00 2001 From: Anna Rift Date: Thu, 20 Jun 2024 11:02:27 -0700 Subject: [PATCH] Revert "Avoid repeatedly calling setModulePaths from chplcheck" This reverts commit 1ffa86866d9cadf40edc5782c546a8c4653af22a. Signed-off-by: Anna Rift --- tools/chplcheck/src/chplcheck.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/chplcheck/src/chplcheck.py b/tools/chplcheck/src/chplcheck.py index e160a43c45d9..5aeafea7b03b 100755 --- a/tools/chplcheck/src/chplcheck.py +++ b/tools/chplcheck/src/chplcheck.py @@ -263,13 +263,8 @@ def main(): printed_warning = False - prev_context = None for filename, context in chapel.files_with_contexts(args.filenames): - # Avoid re-setting module paths on already-used contexts, due to - # bucketing from files_with_contexts. - if context is not prev_context: - context.set_module_paths([], []) - prev_context = context + context.set_module_paths([], []) # Silence errors, warnings etc. -- we're just linting. with context.track_errors() as _: