-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLANG] Fix INF/NAN warning. #80290
Merged
Merged
[CLANG] Fix INF/NAN warning. #80290
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
529879c
Fix INF/NAN warning.
zahiraam 0deb2b6
Fix format.
zahiraam d33ec0e
Addressed review comments.
zahiraam ad10f4a
Fixed diag dog comment and added a few lines in the LIT tests.
zahiraam 7656878
Added 2 additional run lines to the tests.
zahiraam 33fb103
Added 2 additional run lines requested from reviewer.
zahiraam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -87,3 +87,10 @@ program by treating all string literals as having type ``const char *`` | |||||||||||||||||||
instead of ``char *``. This can cause unexpected behaviors with type-sensitive | ||||||||||||||||||||
constructs like ``_Generic``. | ||||||||||||||||||||
}]; | ||||||||||||||||||||
|
||||||||||||||||||||
defvar NanInfDisabledDocs = [{ | ||||||||||||||||||||
This warning is enabled when source code using the macros INFINITY and/or NAN | ||||||||||||||||||||
is compiled with floating-point options preventing these two values. This can | ||||||||||||||||||||
lead to undefined behavior. Some command line combinations order and pragmas | ||||||||||||||||||||
may have an impact and a warning can be generated when not expected. | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
}]; |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were naming the warning group
NanInfDisabledDocs
, you still need the group name. This suggests we're missing test coverage because no tests broke despite the warning group name changing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AaronBallman. I have added a few other lines in the LIT test. I can't think of anything else.