From 1c079a838f355f6170f2998910cd7c3af4650332 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Mon, 7 May 2018 22:01:06 +0000 Subject: [PATCH] [NFC] Move 2 variable initialization from Ctor to member initializers. 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/clang/Frontend/DependencyOutputOptions.h b/include/clang/Frontend/DependencyOutputOptions.h index dab4e8b294..5485d29e24 100644 --- a/include/clang/Frontend/DependencyOutputOptions.h +++ b/include/clang/Frontend/DependencyOutputOptions.h @@ -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 -- 2.40.0