-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't warn about chpl_comm primitives from chpldoc tool (#23330)
This PR updates a check that was added in #23275 to not warn about deprecated behavior of `chpl_comm_put/get` when building docs using `chpldoc` and adds a test to verify the behavior. When we generate documentation, we only pass absolute paths of the internal modules, and this causes the compiler library to not recognize standard and package modules as bundled code. In this PR we change the check to also ensure the tool that's processing the AST is not `chpldoc` before warning about the new behavior. Thanks to @bradcray for pointing this bug out! TESTING: - [x] paratest `[Summary: #Successes = 16970 | #Failures = 0 | #Futures = 919]` [reviewed by @ShreyasKhandekar - thanks!]
- Loading branch information
Showing
5 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../deprecated/chplCommGetPut.chpl |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
chplCommGetPut.chpl:1: In function 'GET': | ||
chplCommGetPut.chpl:2: warning: the primitives 'chpl_comm_get' and 'chpl_comm_put', have changed behavior in Chapel 1.32. Please use the 'Communication' module's 'get' and 'put' procedures as replacements for calling the primitives directly | ||
chplCommGetPut.chpl:5: In function 'PUT': | ||
chplCommGetPut.chpl:6: warning: the primitives 'chpl_comm_get' and 'chpl_comm_put', have changed behavior in Chapel 1.32. Please use the 'Communication' module's 'get' and 'put' procedures as replacements for calling the primitives directly | ||
chplCommGetPut.chpl:7: In function 'GET': | ||
chplCommGetPut.chpl:8: warning: the primitives 'chpl_comm_get' and 'chpl_comm_put', have changed behavior in Chapel 1.32. Please use the 'Communication' module's 'get' and 'put' procedures as replacements for calling the primitives directly | ||
chplCommGetPut.chpl:11: In function 'PUT': | ||
chplCommGetPut.chpl:12: warning: the primitives 'chpl_comm_get' and 'chpl_comm_put', have changed behavior in Chapel 1.32. Please use the 'Communication' module's 'get' and 'put' procedures as replacements for calling the primitives directly |