Skip to content

Commit 6cf9595

Browse files
committed
Address the review comments
Address the review comments
1 parent 1aa287e commit 6cf9595

File tree

4 files changed

+13
-20
lines changed

4 files changed

+13
-20
lines changed

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ CudaInstallationDetector::CudaInstallationDetector(
425425
}
426426

427427
#ifdef SYCLomatic_CUSTOMIZATION
428-
Args.hasArg(options::OPT_nogpulib);
429428
bool IsCudaHeaderFilesIncluded = false;
430429
for (auto &IncPath : ExtraIncPaths) {
431430
IsCudaHeaderFilesIncluded = validateCudaHeaderDirectory(IncPath, D);

clang/lib/Format/UnwrappedLineParser.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,9 +1207,7 @@ void UnwrappedLineParser::parsePPDefine() {
12071207
return;
12081208
}
12091209

1210-
#ifdef SYCLomatic_CUSTOMIZATION
12111210
bool MaybeIncludeGuard = false;
1212-
#endif // SYCLomatic_CUSTOMIZATION
12131211
if (IncludeGuard == IG_IfNdefed &&
12141212
IncludeGuardToken->TokenText == FormatTok->TokenText) {
12151213
IncludeGuard = IG_Defined;
@@ -1220,9 +1218,7 @@ void UnwrappedLineParser::parsePPDefine() {
12201218
break;
12211219
}
12221220
}
1223-
#ifdef SYCLomatic_CUSTOMIZATION
12241221
MaybeIncludeGuard = IncludeGuard == IG_Defined;
1225-
#endif // SYCLomatic_CUSTOMIZATION
12261222
}
12271223

12281224
// In the context of a define, even keywords should be treated as normal
@@ -1234,11 +1230,9 @@ void UnwrappedLineParser::parsePPDefine() {
12341230
FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define);
12351231
nextToken();
12361232

1237-
#ifdef SYCLomatic_CUSTOMIZATION
12381233
// IncludeGuard can't have a non-empty macro definition.
12391234
if (MaybeIncludeGuard && !eof())
12401235
IncludeGuard = IG_Rejected;
1241-
#endif // SYCLomatic_CUSTOMIZATION
12421236

12431237
if (FormatTok->Tok.getKind() == tok::l_paren &&
12441238
!FormatTok->hasWhitespaceBefore()) {

clang/lib/Tooling/Tooling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,10 @@ bool ToolInvocation::run() {
577577
DiagOpts = &*ParsedDiagOpts;
578578
}
579579
#ifdef SYCLomatic_CUSTOMIZATION
580-
DiagnosticPrinter =new TextDiagnosticPrinter(DiagnosticsOS(), &*DiagOpts);
580+
DiagnosticPrinter =new TextDiagnosticPrinter(DiagnosticsOS(), *DiagOpts);
581581
DiagConsumer = DiagnosticPrinter;
582582
#endif // SYCLomatic_CUSTOMIZATION
583-
TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), DiagOpts);
583+
TextDiagnosticPrinter DiagnosticPrinter(llvm::errs(), *DiagOpts);
584584

585585
IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics =
586586
CompilerInstance::createDiagnostics(

llvm/include/llvm/Support/CommandLine.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,17 @@ class OptionCategory {
198198
// The general Option Category (used as default category).
199199
LLVM_ABI OptionCategory &getGeneralCategory();
200200
#ifdef SYCLomatic_CUSTOMIZATION
201-
OptionCategory &getCtHelpCat();
202-
OptionCategory &getCtHelpCatBasic();
203-
OptionCategory &getCtHelpCatAdvanced();
204-
OptionCategory &getCtHelpCatCodeGen();
205-
OptionCategory &getCtHelpCatReportGen();
206-
OptionCategory &getCtHelpCatBuildScript();
207-
OptionCategory &getCtHelpCatQueryAPI();
208-
OptionCategory &getCtHelpCatWarnings();
209-
OptionCategory &getCtHelpCatHelpInfo();
210-
OptionCategory &getCtHelpCatInterceptBuild();
211-
OptionCategory &getCtExamplesCategory();
201+
LLVM_ABI OptionCategory &getCtHelpCat();
202+
LLVM_ABI OptionCategory &getCtHelpCatBasic();
203+
LLVM_ABI OptionCategory &getCtHelpCatAdvanced();
204+
LLVM_ABI OptionCategory &getCtHelpCatCodeGen();
205+
LLVM_ABI OptionCategory &getCtHelpCatReportGen();
206+
LLVM_ABI OptionCategory &getCtHelpCatBuildScript();
207+
LLVM_ABI OptionCategory &getCtHelpCatQueryAPI();
208+
LLVM_ABI OptionCategory &getCtHelpCatWarnings();
209+
LLVM_ABI OptionCategory &getCtHelpCatHelpInfo();
210+
LLVM_ABI OptionCategory &getCtHelpCatInterceptBuild();
211+
LLVM_ABI OptionCategory &getCtExamplesCategory();
212212
#endif // SYCLomatic_CUSTOMIZATION
213213

214214
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)