|
18 | 18 | #include "ToolChains/CrossWindows.h" |
19 | 19 | #include "ToolChains/Cuda.h" |
20 | 20 | #include "ToolChains/Darwin.h" |
21 | | -#include "ToolChains/DragonFly.h" |
22 | 21 | #include "ToolChains/FreeBSD.h" |
| 22 | +#include "ToolChains/DragonFly.h" |
23 | 23 | #include "ToolChains/Fuchsia.h" |
24 | 24 | #include "ToolChains/Gnu.h" |
25 | 25 | #include "ToolChains/HIPAMD.h" |
|
107 | 107 |
|
108 | 108 | using namespace clang::driver; |
109 | 109 | using namespace clang; |
110 | | -using namespace llvm::opt; |
| 110 | + using namespace llvm::opt; |
111 | 111 |
|
112 | 112 | static std::optional<llvm::Triple> getOffloadTargetTriple(const Driver &D, |
113 | 113 | const ArgList &Args) { |
@@ -314,14 +314,14 @@ InputArgList Driver::ParseArgStrings(ArrayRef<const char *> ArgStrings, |
314 | 314 | ContainsError = false; |
315 | 315 |
|
316 | 316 | llvm::opt::Visibility VisibilityMask = getOptionVisibilityMask(UseDriverMode); |
317 | | - unsigned MissingArgIndex, MissingArgCount; |
318 | | - InputArgList Args = getOpts().ParseArgs(ArgStrings, MissingArgIndex, |
| 317 | + unsigned missing_arg_index, MissingArgCount; |
| 318 | + InputArgList Args = getOpts().ParseArgs(ArgStrings, missing_arg_index, |
319 | 319 | MissingArgCount, VisibilityMask); |
320 | 320 |
|
321 | 321 | // Check for missing argument error. |
322 | 322 | if (MissingArgCount) { |
323 | 323 | Diag(diag::err_drv_missing_argument) |
324 | | - << Args.getArgString(MissingArgIndex) << MissingArgCount; |
| 324 | + << Args.getArgString(missing_arg_index) << MissingArgCount; |
325 | 325 | ContainsError |= |
326 | 326 | Diags.getDiagnosticLevel(diag::err_drv_missing_argument, |
327 | 327 | SourceLocation()) > DiagnosticsEngine::Warning; |
@@ -371,8 +371,7 @@ InputArgList Driver::ParseArgStrings(ArrayRef<const char *> ArgStrings, |
371 | 371 | DiagnosticsEngine::Warning; |
372 | 372 | } |
373 | 373 |
|
374 | | - for (const Arg *A : Args.filtered(options::OPT_o)) { |
375 | | - if (ArgStrings[A->getIndex()] == A->getSpelling()) |
| 374 | + for (const Arg *A : Args.filtered(options::OPT_o)) { if (ArgStrings[A->getIndex()] == A->getSpelling()) |
376 | 375 | continue; |
377 | 376 |
|
378 | 377 | // Warn on joined arguments that are similar to a long argument. |
|
0 commit comments