Skip to content

Commit

Permalink
Revert "Avoid repeatedly calling setModulePaths from chplcheck"
Browse files Browse the repository at this point in the history
This reverts commit 1ffa868.

Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Jun 20, 2024
1 parent 1e62a95 commit c79dfc8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tools/chplcheck/src/chplcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 _:
Expand Down

0 comments on commit c79dfc8

Please sign in to comment.