]> granicus.if.org Git - clang/commitdiff
[NFC] Move 2 variable initialization from Ctor to member initializers.
authorErich Keane <erich.keane@intel.com>
Mon, 7 May 2018 22:01:06 +0000 (22:01 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 7 May 2018 22:01:06 +0000 (22:01 +0000)
In response to dblaikie's suggestion on r331536, replace the two enum
typed variable initializers in the constructor with member initializers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331688 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/DependencyOutputOptions.h

index dab4e8b29418f7a866ba5e9043c1849fbc93d252..5485d29e2445fbb3f5a6e3085b01a6168b45bf0c 100644 (file)
@@ -34,10 +34,10 @@ public:
   unsigned IncludeModuleFiles : 1; ///< Include module file dependencies.
 
   /// Destination of cl.exe style /showIncludes info.
-  ShowIncludesDestination ShowIncludesDest;
+  ShowIncludesDestination ShowIncludesDest = ShowIncludesDestination::None;
 
   /// The format for the dependency file.
-  DependencyOutputFormat OutputFormat;
+  DependencyOutputFormat OutputFormat = DependencyOutputFormat::Make;
 
   /// The file to write dependency output to.
   std::string OutputFile;
@@ -67,9 +67,7 @@ public:
 public:
   DependencyOutputOptions()
       : IncludeSystemHeaders(0), ShowHeaderIncludes(0), UsePhonyTargets(0),
-        AddMissingHeaderDeps(0), IncludeModuleFiles(0),
-        ShowIncludesDest(ShowIncludesDestination::None),
-        OutputFormat(DependencyOutputFormat::Make) {}
+        AddMissingHeaderDeps(0), IncludeModuleFiles(0) {}
 };
 
 }  // end namespace clang