Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Sep 30, 2024
1 parent 0ecd373 commit 844d700
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/chplcheck/src/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,8 @@ def RemoveTaskIntent(context: Context, result: AdvancedRuleResult):
# if the with clause only has one expr, remove the entire with clause
if len(list(with_clause.exprs())) == 1:
with_loc = with_clause.location()
# header_loc is the location of the block header without the `with`
# e.g. `forall i in 1..10`, `begin`, `cobegin`
header_loc = (
task_block.header_location()
if isinstance(task_block, Loop)
Expand Down

0 comments on commit 844d700

Please sign in to comment.