@@ -72,7 +72,7 @@ std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes) {
72
72
73
73
// This just needs to be some symbol in the binary; C++ doesn't
74
74
// allow taking the address of ::main however.
75
- void *P = (void *) (intptr_t )GetExecutablePath;
75
+ void *P = (void *) (intptr_t ) GetExecutablePath;
76
76
return llvm::sys::fs::getMainExecutable (Argv0, P);
77
77
}
78
78
@@ -105,10 +105,10 @@ static void insertTargetAndModeArgs(const ParsedClangName &NameParts,
105
105
}
106
106
107
107
if (NameParts.TargetIsValid ) {
108
- const char *arr[] = {" -target" ,
109
- GetStableCStr (SavedStrings, NameParts.TargetPrefix )};
110
- ArgVector.insert (ArgVector.begin () + InsertionPoint, std::begin (arr),
111
- std::end (arr));
108
+ const char *arr[] = {" -target" , GetStableCStr (SavedStrings,
109
+ NameParts.TargetPrefix )};
110
+ ArgVector.insert (ArgVector.begin () + InsertionPoint,
111
+ std::begin (arr), std:: end (arr));
112
112
}
113
113
}
114
114
@@ -328,8 +328,8 @@ int clang_main(int Argc, char **Argv, const llvm::ToolContext &ToolContext) {
328
328
// actions.
329
329
DiagOpts->DiagnosticSuppressionMappingsFile .clear ();
330
330
331
- TextDiagnosticPrinter *DiagClient =
332
- new TextDiagnosticPrinter (llvm::errs (), &*DiagOpts);
331
+ TextDiagnosticPrinter *DiagClient
332
+ = new TextDiagnosticPrinter (llvm::errs (), &*DiagOpts);
333
333
FixupDiagPrefixExeName (DiagClient, ProgName);
334
334
335
335
IntrusiveRefCntPtr<DiagnosticIDs> DiagID (new DiagnosticIDs ());
@@ -439,8 +439,8 @@ int clang_main(int Argc, char **Argv, const llvm::ToolContext &ToolContext) {
439
439
if (::getenv (" FORCE_CLANG_DIAGNOSTICS_CRASH" ))
440
440
llvm::dbgs () << llvm::getBugReportMsg ();
441
441
if (FailingCommand != nullptr &&
442
- TheDriver.maybeGenerateCompilationDiagnostics (CommandStatus, ReproLevel,
443
- *C, *FailingCommand))
442
+ TheDriver.maybeGenerateCompilationDiagnostics (CommandStatus, ReproLevel,
443
+ *C, *FailingCommand))
444
444
Res = 1 ;
445
445
446
446
Diags.getClient ()->finish ();
0 commit comments