src/compiler/config.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef SRC_COMPILER_CONFIG_H
20 #define SRC_COMPILER_CONFIG_H
21 
22 #include <string>
23 
25 
26 #ifdef GRPC_CUSTOM_STRING
27 #warning GRPC_CUSTOM_STRING is no longer supported. Please use std::string.
28 #endif
29 
30 namespace grpc {
31 
32 // Using grpc::string and grpc::to_string is discouraged in favor of
33 // std::string and std::to_string. This is only for legacy code using
34 // them explictly.
35 using std::string; // deprecated
36 using std::to_string; // deprecated
37 
38 namespace protobuf {
39 
40 namespace compiler {
43 static inline int PluginMain(int argc, char* argv[],
44  const CodeGenerator* generator) {
45  return GRPC_CUSTOM_PLUGINMAIN(argc, argv, generator);
46 }
47 static inline void ParseGeneratorParameter(
48  const string& parameter, std::vector<std::pair<string, string> >* options) {
50 }
51 
52 } // namespace compiler
53 namespace io {
57 } // namespace io
58 } // namespace protobuf
59 } // namespace grpc
60 
61 namespace grpc_cpp_generator {
62 
63 static const char* const kCppGeneratorMessageHeaderExt = ".pb.h";
64 static const char* const kCppGeneratorServiceHeaderExt = ".grpc.pb.h";
65 
66 } // namespace grpc_cpp_generator
67 
68 #endif // SRC_COMPILER_CONFIG_H
GRPC_CUSTOM_CODEDOUTPUTSTREAM
#define GRPC_CUSTOM_CODEDOUTPUTSTREAM
Definition: src/compiler/config_protobuf.h:36
grpc
Definition: grpcpp/alarm.h:33
options
double_dict options[]
Definition: capstone_test.c:55
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
grpc::protobuf::io::Printer
GRPC_CUSTOM_PRINTER Printer
Definition: src/compiler/config.h:54
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
config_protobuf.h
GRPC_CUSTOM_CODEGENERATOR
#define GRPC_CUSTOM_CODEGENERATOR
Definition: src/compiler/config_protobuf.h:26
grpc_cpp_generator
Definition: src/compiler/config.h:61
grpc::protobuf::io::StringOutputStream
GRPC_CUSTOM_STRINGOUTPUTSTREAM StringOutputStream
Definition: src/compiler/config.h:56
grpc::protobuf::compiler::GeneratorContext
GRPC_CUSTOM_GENERATORCONTEXT GeneratorContext
Definition: src/compiler/config.h:42
grpc::protobuf::compiler::ParseGeneratorParameter
static void ParseGeneratorParameter(const string &parameter, std::vector< std::pair< string, string > > *options)
Definition: src/compiler/config.h:47
GRPC_CUSTOM_GENERATORCONTEXT
#define GRPC_CUSTOM_GENERATORCONTEXT
Definition: src/compiler/config_protobuf.h:27
grpc::protobuf::compiler::CodeGenerator
GRPC_CUSTOM_CODEGENERATOR CodeGenerator
Definition: src/compiler/config.h:41
grpc_cpp_generator::kCppGeneratorServiceHeaderExt
static const char *const kCppGeneratorServiceHeaderExt
Definition: src/compiler/config.h:64
GRPC_CUSTOM_PLUGINMAIN
#define GRPC_CUSTOM_PLUGINMAIN
Definition: src/compiler/config_protobuf.h:43
io
grpc::protobuf::io::CodedOutputStream
GRPC_CUSTOM_CODEDOUTPUTSTREAM CodedOutputStream
Definition: src/compiler/config.h:55
grpc_cpp_generator::kCppGeneratorMessageHeaderExt
static const char *const kCppGeneratorMessageHeaderExt
Definition: src/compiler/config.h:63
grpc::protobuf::compiler::PluginMain
static int PluginMain(int argc, char *argv[], const CodeGenerator *generator)
Definition: src/compiler/config.h:43
GRPC_CUSTOM_PARSEGENERATORPARAMETER
#define GRPC_CUSTOM_PARSEGENERATORPARAMETER
Definition: src/compiler/config_protobuf.h:48
GRPC_CUSTOM_PRINTER
#define GRPC_CUSTOM_PRINTER
Definition: src/compiler/config_protobuf.h:35
GRPC_CUSTOM_STRINGOUTPUTSTREAM
#define GRPC_CUSTOM_STRINGOUTPUTSTREAM
Definition: src/compiler/config_protobuf.h:37
to_string
static bool to_string(zval *from)
Definition: protobuf/php/ext/google/protobuf/convert.c:333
compiler
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc:21


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:52