-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[Clang][Diagnostics] Use "structured binding" instead of "decomposition" #163101
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
b36c8d6
197f3d6
d7708b3
c05398e
ae12747
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -504,9 +504,10 @@ def err_expected_end_of_enumerator : Error< | |||||||||||||||
def err_expected_coloncolon_after_super : Error< | ||||||||||||||||
"expected '::' after '__super'">; | ||||||||||||||||
|
||||||||||||||||
def ext_decomp_decl_empty : ExtWarn< | ||||||||||||||||
"ISO C++17 does not allow a decomposition group to be empty">, | ||||||||||||||||
InGroup<DiagGroup<"empty-decomposition">>; | ||||||||||||||||
def ext_decomp_decl_empty | ||||||||||||||||
: ExtWarn< | ||||||||||||||||
"ISO C++17 does not allow a structured binding group to be empty">, | ||||||||||||||||
InGroup<DiagGroup<"empty-structured-binding">>; | ||||||||||||||||
|
def ext_decomp_decl_empty | |
: ExtWarn< | |
"ISO C++17 does not allow a structured binding group to be empty">, | |
InGroup<DiagGroup<"empty-structured-binding">>; | |
def ext_decomp_decl_empty : ExtWarn< | |
"ISO C++17 does not allow a structured binding group to be empty">, | |
InGroup<DiagGroup<"empty-structured-binding">>; |
Our formatter doesn’t format these properly (I regularly have to deal w/ this too...)
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.
Also, one thing I only noticed just now, I’m not sure if we also want to rename the diagnostic group since that might be a breaking change for some people.
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.
I'll restore the formatting to the way it was then. Regarding the diagnostic group, I only did this since the full text search for "empty-decomposition" over the entire project gave 0 matches.
In retrospect, should've highlighted said change either way.
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.
Formatting has been restored
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.
I see no reason to rename the diagnostic group
Uh oh!
There was an error while loading. Please reload this page.