@@ -55,12 +55,7 @@ class JobAction;
5555class ToolChain ;
5656
5757// / Describes the kind of LTO mode selected via -f(no-)?lto(=.*)? options.
58- enum LTOKind {
59- LTOK_None,
60- LTOK_Full,
61- LTOK_Thin,
62- LTOK_Unknown
63- };
58+ enum LTOKind { LTOK_None, LTOK_Full, LTOK_Thin, LTOK_Unknown };
6459
6560// / Whether headers used to construct C++20 module units should be looked
6661// / up by the path supplied on the command line, or in the user or system
@@ -110,17 +105,9 @@ class Driver {
110105 DXCMode
111106 } Mode;
112107
113- enum SaveTempsMode {
114- SaveTempsNone,
115- SaveTempsCwd,
116- SaveTempsObj
117- } SaveTemps;
108+ enum SaveTempsMode { SaveTempsNone, SaveTempsCwd, SaveTempsObj } SaveTemps;
118109
119- enum BitcodeEmbedMode {
120- EmbedNone,
121- EmbedMarker,
122- EmbedBitcode
123- } BitcodeEmbed;
110+ enum BitcodeEmbedMode { EmbedNone, EmbedMarker, EmbedBitcode } BitcodeEmbed;
124111
125112 enum OffloadMode {
126113 OffloadHostDevice,
@@ -166,9 +153,7 @@ class Driver {
166153 };
167154
168155 // Diag - Forwarding function for diagnostics.
169- DiagnosticBuilder Diag (unsigned DiagID) const {
170- return Diags.Report (DiagID);
171- }
156+ DiagnosticBuilder Diag (unsigned DiagID) const { return Diags.Report (DiagID); }
172157
173158 // FIXME: Privatize once interface is stable.
174159public:
@@ -404,7 +389,6 @@ class Driver {
404389 SmallString<128 > &CrashDiagDir);
405390
406391public:
407-
408392 // / Takes the path to a binary that's either in bin/ or lib/ and returns
409393 // / the path to clang's resource directory.
410394 static std::string GetResourcesPath (StringRef BinaryPath);
@@ -419,9 +403,7 @@ class Driver {
419403 // / Name to use when invoking gcc/g++.
420404 const std::string &getCCCGenericGCCName () const { return CCCGenericGCCName; }
421405
422- llvm::ArrayRef<std::string> getConfigFiles () const {
423- return ConfigFiles;
424- }
406+ llvm::ArrayRef<std::string> getConfigFiles () const { return ConfigFiles; }
425407
426408 const llvm::opt::OptTable &getOpts () const { return getDriverOptTable (); }
427409
@@ -447,9 +429,7 @@ class Driver {
447429 std::string getTargetTriple () const { return TargetTriple; }
448430
449431 // / Get the path to the main clang executable.
450- const char *getClangProgramPath () const {
451- return ClangExecutable.c_str ();
452- }
432+ const char *getClangProgramPath () const { return ClangExecutable.c_str (); }
453433
454434 bool isSaveTempsEnabled () const { return SaveTemps != SaveTempsNone; }
455435 bool isSaveTempsObj () const { return SaveTemps == SaveTempsObj; }
@@ -561,8 +541,9 @@ class Driver {
561541 // / This routine handles additional processing that must be done in addition
562542 // / to just running the subprocesses, for example reporting errors, setting
563543 // / up response files, removing temporary files, etc.
564- int ExecuteCompilation (Compilation &C,
565- SmallVectorImpl< std::pair<int , const Command *> > &FailingCommands);
544+ int ExecuteCompilation (
545+ Compilation &C,
546+ SmallVectorImpl<std::pair<int , const Command *>> &FailingCommands);
566547
567548 // / Contains the files in the compilation diagnostic report generated by
568549 // / generateCompilationDiagnostics.
@@ -758,7 +739,6 @@ class Driver {
758739 const CUIDOptions &getCUIDOpts () const { return CUIDOpts; }
759740
760741private:
761-
762742 // / Tries to load options from configuration files.
763743 // /
764744 // / \returns true if error occurred.
0 commit comments