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), |
49 annotate_headers(false), | 50 annotate_headers(false), |
50 enforce_lite(false) {} | 51 enforce_lite(false) {} |
51 | 52 |
52 string dllexport_decl; | 53 string dllexport_decl; |
53 bool safe_boundary_check; | 54 bool safe_boundary_check; |
54 bool proto_h; | 55 bool proto_h; |
| 56 bool allow_import_public; |
55 bool annotate_headers; | 57 bool annotate_headers; |
56 bool enforce_lite; | 58 bool enforce_lite; |
57 string annotation_pragma_name; | 59 string annotation_pragma_name; |
58 string annotation_guard_name; | 60 string annotation_guard_name; |
59 }; | 61 }; |
60 | 62 |
61 } // namespace cpp | 63 } // namespace cpp |
62 } // namespace compiler | 64 } // namespace compiler |
63 } // namespace protobuf | 65 } // namespace protobuf |
64 | 66 |
65 | 67 |
66 } // namespace google | 68 } // namespace google |
67 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_OPTIONS_H__ | 69 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_OPTIONS_H__ |
OLD | NEW |