OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 28 matching lines...) Expand all Loading... |
39 namespace google { | 39 namespace google { |
40 namespace protobuf { | 40 namespace protobuf { |
41 namespace compiler { | 41 namespace compiler { |
42 namespace cpp { | 42 namespace cpp { |
43 | 43 |
44 // Generator options (see generator.cc for a description of each): | 44 // Generator options (see generator.cc for a description of each): |
45 struct Options { | 45 struct Options { |
46 Options() | 46 Options() |
47 : safe_boundary_check(false), | 47 : safe_boundary_check(false), |
48 proto_h(false), | 48 proto_h(false), |
49 allow_import_public(true), | |
50 annotate_headers(false), | 49 annotate_headers(false), |
51 enforce_lite(false) {} | 50 enforce_lite(false) {} |
52 | 51 |
53 string dllexport_decl; | 52 string dllexport_decl; |
54 bool safe_boundary_check; | 53 bool safe_boundary_check; |
55 bool proto_h; | 54 bool proto_h; |
56 bool allow_import_public; | |
57 bool annotate_headers; | 55 bool annotate_headers; |
58 bool enforce_lite; | 56 bool enforce_lite; |
59 string annotation_pragma_name; | 57 string annotation_pragma_name; |
60 string annotation_guard_name; | 58 string annotation_guard_name; |
61 }; | 59 }; |
62 | 60 |
63 } // namespace cpp | 61 } // namespace cpp |
64 } // namespace compiler | 62 } // namespace compiler |
65 } // namespace protobuf | 63 } // namespace protobuf |
66 | 64 |
67 | 65 |
68 } // namespace google | 66 } // namespace google |
69 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_OPTIONS_H__ | 67 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_OPTIONS_H__ |
OLD | NEW |