-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[Clang] [C2y] Implement N3355 ‘Named Loops’ #152870
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
Merged
Merged
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
56a2eff
Parsing labeled break/continue
Sirraide 746b1ab
Rename getBreak/ContinueLoc
Sirraide 27a2eae
more renaming
Sirraide 674bcf4
Sema
Sirraide a2e7bc2
Remove unused variable
Sirraide 42b1041
CodeGen
Sirraide 5a0965e
Add compat diags
Sirraide 76d56e1
Basic C++ support
Sirraide 1b39ff4
ObjC support
Sirraide 0847467
Constexpr support
Sirraide 6301ef5
Template support
Sirraide e05b8b1
Diagnose invalid break/continue in OpenACC/OpenMP
Sirraide db17a67
Update various AST dumpers
Sirraide 25fb4a3
clang-format
Sirraide 7e41861
update grammar comment
Sirraide 1f515b4
Add release note
Sirraide f8374d3
Update docs
Sirraide aaa117c
remove comment
Sirraide 8b6feac
add another test case
Sirraide f33869c
Move checks out of jump checker
Sirraide da3b554
Support multiple labels
Sirraide 093fb04
clang-format
Sirraide c9de06b
Add a cc1 option and disable the feature in every language mode other…
Sirraide 8ac7910
Update docs
Sirraide 9377a80
Address review comments
Sirraide 8fad2cb
Some more minor fixes
Sirraide 1a15401
[analyzer] Add test for labeled break/continue N3355
steakhal 5462978
Address review comments
Sirraide b2abfa5
Only track a single preceding label
Sirraide 1fe9d0d
clang-format
Sirraide 537b35f
address review comments
Sirraide f6d9e5d
clang-format
Sirraide 1f2dde5
reverse constructor delegation
Sirraide c9b8688
Update the compat diag to say ‘named’ instead of ‘labeled’
Sirraide bc1f635
‘labeled’ -> ‘named’ in a number of places
Sirraide 35bc625
Fix typo in comment
Sirraide 797bf22
add missing const
Sirraide ece369b
rename Label -> LabelLoc
Sirraide 1c503df
Merge branch 'main' into n3355
Sirraide c6d433d
fix return type
Sirraide 82f783d
getNamedLoopOrSwitch() should return nullptr if there is no label
Sirraide 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.