Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: src/IceClFlagsExtra.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceCompileServer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceClFlagsExtra.h - Extra Cl Flags -----------*- C++ -*-===// 1 //===- subzero/src/IceClFlagsExtra.h - Extra Cl Flags -----------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares command line flags primarily used for non-minimal builds. 10 // This file declares command line flags primarily used for non-minimal builds.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef SUBZERO_SRC_ICECLFLAGSEXTRA_H 14 #ifndef SUBZERO_SRC_ICECLFLAGSEXTRA_H
15 #define SUBZERO_SRC_ICECLFLAGSEXTRA_H 15 #define SUBZERO_SRC_ICECLFLAGSEXTRA_H
16 16
17 #include "llvm/IRReader/IRReader.h" 17 #include "llvm/IRReader/IRReader.h"
18 18
19 #include "IceDefs.h" 19 #include "IceDefs.h"
20 20
21 namespace Ice { 21 namespace Ice {
22 22
23 class ClFlagsExtra { 23 class ClFlagsExtra {
24 ClFlagsExtra(const ClFlagsExtra &) = delete; 24 ClFlagsExtra(const ClFlagsExtra &) = delete;
25 ClFlagsExtra &operator=(const ClFlagsExtra &) = delete; 25 ClFlagsExtra &operator=(const ClFlagsExtra &) = delete;
26 26
27 public: 27 public:
28 ClFlagsExtra() 28 ClFlagsExtra() = default;
29 : AlwaysExitSuccess(false), BuildOnRead(false), GenerateBuildAtts(false),
30 LLVMVerboseErrors(false), InputFileFormat(llvm::LLVMFormat) {}
31 29
32 bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; } 30 bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; }
33 void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; } 31 void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; }
34 32
35 bool getBuildOnRead() const { return BuildOnRead; } 33 bool getBuildOnRead() const { return BuildOnRead; }
36 void setBuildOnRead(bool NewValue) { BuildOnRead = NewValue; } 34 void setBuildOnRead(bool NewValue) { BuildOnRead = NewValue; }
37 35
38 bool getGenerateBuildAtts() const { return GenerateBuildAtts; } 36 bool getGenerateBuildAtts() const { return GenerateBuildAtts; }
39 void setGenerateBuildAtts(bool NewValue) { GenerateBuildAtts = NewValue; } 37 void setGenerateBuildAtts(bool NewValue) { GenerateBuildAtts = NewValue; }
40 38
(...skipping 13 matching lines...) Expand all
54 52
55 const IceString &getLogFilename() const { return LogFilename; } 53 const IceString &getLogFilename() const { return LogFilename; }
56 void setLogFilename(const IceString &NewValue) { LogFilename = NewValue; } 54 void setLogFilename(const IceString &NewValue) { LogFilename = NewValue; }
57 55
58 const IceString &getOutputFilename() const { return OutputFilename; } 56 const IceString &getOutputFilename() const { return OutputFilename; }
59 void setOutputFilename(const IceString &NewValue) { 57 void setOutputFilename(const IceString &NewValue) {
60 OutputFilename = NewValue; 58 OutputFilename = NewValue;
61 } 59 }
62 60
63 private: 61 private:
64 bool AlwaysExitSuccess; 62 bool AlwaysExitSuccess = false;
65 bool BuildOnRead; 63 bool BuildOnRead = false;
66 bool GenerateBuildAtts; 64 bool GenerateBuildAtts = false;
67 bool LLVMVerboseErrors; 65 bool LLVMVerboseErrors = false;
68 66
69 llvm::NaClFileFormat InputFileFormat; 67 llvm::NaClFileFormat InputFileFormat = llvm::LLVMFormat;
70 68
71 IceString AppName; 69 IceString AppName = "";
72 IceString IRFilename; 70 IceString IRFilename = "";
73 IceString LogFilename; 71 IceString LogFilename = "";
74 IceString OutputFilename; 72 IceString OutputFilename = "";
75 }; 73 };
76 74
77 } // end of namespace Ice 75 } // end of namespace Ice
78 76
79 #endif // SUBZERO_SRC_ICECLFLAGSEXTRA_H 77 #endif // SUBZERO_SRC_ICECLFLAGSEXTRA_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceCompileServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698