-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Bug][Help] Fixed all the categories getting printing for --help #2609
base: SYCLomatic
Are you sure you want to change the base?
Conversation
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.
Two suggestions about coding style. The rest LGTM.
llvm/lib/Support/CommandLine.cpp
Outdated
@@ -2980,7 +2980,7 @@ void HelpPrinterWrapper::operator=(bool Value) { | |||
#ifdef SYCLomatic_CUSTOMIZATION | |||
void HelpPrinterWrapper::operator=(CtHelpCategory Value) { | |||
CategorizedPrinter.setReqCtHelpCategory(Value); | |||
cl::HideUnrelatedOptions(CategorizedPrinter.getReqCtHelpCategory(Value)); | |||
// cl::HideUnrelatedOptions(CategorizedPrinter.getReqCtHelpCategory(Value)); |
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.
If it is not needed, please remove this line.
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.
Upon further analysis, decided to retain it
902afcb
to
1a40993
Compare
This PR fixes the bug where opts from all the cat are printed when dpct --help is called with no options resulting in duplicate entries.
Expected behavior is to print all the options only once.
Here is the sample output: