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

Side by Side Diff: src/IceCompileServer.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/IceClFlagsExtra.h ('k') | src/IceCompiler.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/IceCompileServer.h - Compile server ----------*- C++ -*-===// 1 //===- subzero/src/IceCompileServer.h - Compile server ----------*- 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 the compile server. Given a compiler implementation, 10 // This file declares the compile server. Given a compiler implementation,
(...skipping 27 matching lines...) Expand all
38 // the request immediately. When run in the browser, it blocks waiting 38 // the request immediately. When run in the browser, it blocks waiting
39 // for a request. 39 // for a request.
40 class CompileServer { 40 class CompileServer {
41 CompileServer() = delete; 41 CompileServer() = delete;
42 CompileServer(const CompileServer &) = delete; 42 CompileServer(const CompileServer &) = delete;
43 CompileServer &operator=(const CompileServer &) = delete; 43 CompileServer &operator=(const CompileServer &) = delete;
44 44
45 public: 45 public:
46 explicit CompileServer(Compiler &Comp) : Comp(Comp) {} 46 explicit CompileServer(Compiler &Comp) : Comp(Comp) {}
47 47
48 virtual ~CompileServer() {} 48 virtual ~CompileServer() = default;
49 49
50 virtual void run() = 0; 50 virtual void run() = 0;
51 51
52 virtual ErrorCode &getErrorCode() { return LastError; } 52 virtual ErrorCode &getErrorCode() { return LastError; }
53 void transferErrorCode(ErrorCodes Code) { LastError.assign(Code); } 53 void transferErrorCode(ErrorCodes Code) { LastError.assign(Code); }
54 54
55 protected: 55 protected:
56 Compiler &getCompiler() const { return Comp; } 56 Compiler &getCompiler() const { return Comp; }
57 57
58 Compiler &Comp; 58 Compiler &Comp;
(...skipping 16 matching lines...) Expand all
75 75
76 private: 76 private:
77 int argc; 77 int argc;
78 char **argv; 78 char **argv;
79 std::unique_ptr<GlobalContext> Ctx; 79 std::unique_ptr<GlobalContext> Ctx;
80 }; 80 };
81 81
82 } // end of namespace Ice 82 } // end of namespace Ice
83 83
84 #endif // SUBZERO_SRC_ICECOMPILESERVER_H 84 #endif // SUBZERO_SRC_ICECOMPILESERVER_H
OLDNEW
« no previous file with comments | « src/IceClFlagsExtra.h ('k') | src/IceCompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698