Pawan Bhardwaj
fdf579fe2d
Protect grpc generated headers from unwanted system macros ( #38474 )
...
Adding "ports_def" and "ports_undef" file which is used to protect against unwanted system macros interaction for grpc headers
initially taken file from protobuf , more macros can be added based on requirement.
Added guard in generated file
Reference :
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/port_def.inc
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/port_undef.inc
#[33501](https://github.com/grpc/grpc/issues/33501 )
Closes #38474
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38474 from pawbhard:add-def-undef e2ea49c92dd72fed0ac3874cb18381deddfb5991
PiperOrigin-RevId: 725815567
2025-02-11 16:35:13 -08:00
Pawan Bhardwaj
860e87da67
[CodeGen][CPP] Added support for service "deprecated" option ( #38493 )
...
In proto we can add deprecated option in service definition
example:
```
service Greeter {
option deprecated = true;
```
This PR help in translating this to marking generated service class as deprecated (which enables warning while using)
`class [[deprecated]] Greeter final {`
Sample warning
```
/usr/local/google/home/bpawan/workspace/code/grpc/examples/cpp/helloworld/greeter_async_client.cc:104:28: warning: 'Greeter' is deprecated [-Wdeprecated-declarations]
104 | std::unique_ptr<Greeter::Stub> stub_;
```
Encapsulated support with compiler flag "allow_deprecated" which will be by default false . Hence will not be impacted existing users
Closes #38493
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38493 from pawbhard:deprecated-support bd143e37ac848a2e1ff4bf6a62f239cf98244092
PiperOrigin-RevId: 723134226
2025-02-04 10:15:17 -08:00
AJ Heller
2e69349731
[codegen] Escape variable delimiters in raw comment printing ( #32190 )
2023-01-24 14:39:19 -08:00
Cheng-Yu Chung
5498481265
Remove include/grpcpp/impl/codegen/proto_utils.h ( #31532 )
2022-11-29 21:33:55 +08:00
Cheng-Yu Chung
e7f9fb03f4
Remove include/grpcpp/impl/codegen/server_callback_handlers.h ( #31533 )
2022-11-21 11:40:58 -05:00
Cheng-Yu Chung
405de7ac72
Remove include/grpcpp/impl/codegen/status.h ( #31285 )
...
* Remove `include/grpcpp/impl/codegen/status.h`
* Include removing status_code_enum
* Update
* Update
* Update zlib (#31356 ) (#31357 )
To mitigate CVE-2022-37434
* Update
Co-authored-by: Mikhail Lappo <miklelappo@users.noreply.github.com >
2022-11-18 13:22:55 -05:00
Cheng-Yu Chung
493b961dfb
Remove include/grpcpp/impl/codegen/sync_stream.h ( #31289 )
2022-10-24 18:01:12 -04:00
Cheng-Yu Chung
f4b25ab837
Remove include/grpcpp/impl/codegen/stub_options.h ( #31287 )
2022-10-21 20:23:54 -04:00
Cheng-Yu Chung
0fbc4a715c
Remove include/grpcpp/impl/codegen/service_type.h ( #31282 )
2022-10-17 16:26:03 -04:00
Cheng-Yu Chung
d699b574a8
Remove include/grpcpp/impl/codegen/server_callback.h ( #31279 )
2022-10-12 15:37:14 -04:00
Cheng-Yu Chung
a1cb2f3d6f
Remove include/grpcpp/impl/codegen/server_callback.h ( #31280 )
2022-10-12 14:34:18 -04:00
Cheng-Yu Chung
d1c04427f3
Remove include/grpcpp/impl/codegen/rpc_method.h ( #31269 )
2022-10-11 10:57:44 -04:00
Cheng-Yu Chung
cc58369279
Remove include/grpcpp/impl/codegen/completion_queue.h ( #31059 )
...
* Remove `include/grpcpp/impl/codegen/completion_queue.h`
* Update
* Update
* Fix build error
* Update
2022-10-10 11:35:09 -04:00
Cheng-Yu Chung
d76c6f61f0
Remove include/grpcpp/impl/codegen/method_handler.h ( #31249 )
2022-10-06 15:50:54 -04:00
Cheng-Yu Chung
488f17eb46
Remove include/grpcpp/impl/codegen/message_allocator.h ( #31246 )
2022-10-06 13:18:24 -04:00
Cheng-Yu Chung
4ba0f9afb5
Revert "Revert "Remove include/grpcpp/impl/codegen/client_callback.h ( #31005 )" ( #31079 )" ( #31087 )
...
This reverts commit da08fe1d6f .
2022-10-04 13:59:32 -04:00
Cheng-Yu Chung
0e8a6515df
Remove include/grpcpp/impl/codegen/client_context.h ( #31006 )
...
* Remove `include/grpcpp/impl/codegen/client_context.h`
* Update
* Update
2022-10-03 18:01:22 -04:00
Craig Tiller
da08fe1d6f
Revert "Remove include/grpcpp/impl/codegen/client_callback.h ( #31005 )" ( #31079 )
...
This reverts commit 17f515744f .
2022-09-20 18:58:54 -07:00
Cheng-Yu Chung
17f515744f
Remove include/grpcpp/impl/codegen/client_callback.h ( #31005 )
2022-09-20 13:51:55 -04:00
Cheng-Yu Chung
b765b06155
Remove include/grpcpp/impl/codegen/async_stream.h ( #30941 )
...
* Remove `include/grpcpp/impl/codegen/async_stream.h`
* Fix
* Fix
* Update
2022-09-14 13:40:35 -04:00
Cheng-Yu Chung
cb3d7a9e9e
Revert "Revert "Remove include/grpcpp/impl/codegen/async_unary_call.h"" ( #30955 )
...
* Revert "Revert "Remove `include/grpcpp/impl/codegen/async_unary_call.h` (#30945 )" (#30950 )"
This reverts commit 0c454fa875 .
* Fix
2022-09-13 15:57:15 -04:00
Cheng-Yu Chung
6e57952589
Revert "Revert "Remove include/grpcpp/impl/codegen/async_generic_service.h ( #30450 )" ( #30951 )" ( #30956 )
...
This reverts commit a81b61113c .
2022-09-13 14:45:38 -04:00
Craig Tiller
0c454fa875
Revert "Remove include/grpcpp/impl/codegen/async_unary_call.h ( #30945 )" ( #30950 )
...
This reverts commit 7dbc73d4f3 .
2022-09-12 16:44:07 -07:00
Craig Tiller
a81b61113c
Revert "Remove include/grpcpp/impl/codegen/async_generic_service.h ( #30450 )" ( #30951 )
...
This reverts commit c6326bbc75 .
2022-09-12 16:43:55 -07:00
Cheng-Yu Chung
c6326bbc75
Remove include/grpcpp/impl/codegen/async_generic_service.h ( #30450 )
...
* Remove `include/grpcpp/impl/codegen/async_generic_service.h`
* Fix test
* Reserve compatibility
2022-09-12 18:19:59 -04:00
Cheng-Yu Chung
7dbc73d4f3
Remove include/grpcpp/impl/codegen/async_unary_call.h ( #30945 )
2022-09-12 18:05:10 -04:00
vperus
53701640c6
codegen: Correct indentation ( #26702 )
2021-07-21 10:52:08 -07:00
Vijay Pai
4aa9591662
Devirtualize experimental_async() as a stub function ( #26532 )
2021-06-24 16:32:02 -07:00
Vijay Pai
cf1ebf7387
Remove experimental tag from uses of the C++ callback API ( #26495 )
2021-06-20 00:47:07 -07:00
mkruskal-google
2bf75aa68a
Add optional suffix to client-side stub objects ( #25996 )
...
* Adding suffix for stats handling to gRPC
* Fixing typo
* Fixing codegen, adding tests
* Fixing test failures
* Adding nullptr default in StubOptions
* Updating golden test file
* Replacing std::make_unique with absl::make_unique for pre-C++14 compatibility
* Fixing clang format errors
* Reuse stub options for generic stubs
* Cleaning up compiler warnings in GenericStub
2021-04-26 17:19:43 -07:00
Vijay Pai
33d7aaffe8
Fix const-ness of callback client read RPC requests ( #25763 )
...
* Fix const-ness of callback client read RPC requests
* Fix golden file
2021-03-19 01:12:28 -07:00
Vijay Pai
25cbc854d2
Fix compiler_test_golden
2020-10-06 17:48:05 -07:00
Karthik Ravi Shankar
375d92be8d
Merge branch 'master' into sync-stream
2020-09-08 15:14:48 -07:00
Karthik Ravi Shankar
67667eb7b6
Revert ...
2020-09-03 08:16:10 -07:00
Karthik Ravi Shankar
b657c8d79c
Revert "Revert "Move ServerContext from ::grpc_impl to ::grpc""
2020-09-02 10:17:00 -07:00
Karthik Ravi Shankar
f1abdd1725
Revert "Move ServerContext from ::grpc_impl to ::grpc"
2020-09-01 22:54:54 -07:00
Karthik Ravi Shankar
75187ec316
fix golden test file for codegen test
2020-08-20 17:03:40 -07:00
Vijay Pai
c86cfc305c
Remove all std::mem_fn and std::bind from service definitions and setup
2020-03-25 16:48:36 -07:00
Vijay Pai
8d9d8326f5
De-experimentalize generated code
2019-12-11 16:21:23 -08:00
Vijay Pai
0ba1a0e464
Remove unused forward declarations produced by C++ code generator
2019-12-03 22:35:39 -08:00
Vijay Pai
be6979202b
Revamp server-side C++ callback API, message allocator, and mocking
2019-11-20 16:56:18 -08:00
Karthik Ravi Shankar
a1c0d3442f
Merge branch 'master' into move-method-handler
2019-09-03 14:47:45 -07:00
Karthik Ravi Shankar
2b8ad5ee56
Fix golden test compilation
2019-08-21 16:30:51 -07:00
Christian Maurer
33b8b3f998
Removed whitespace before asterisk
2019-08-06 12:48:37 +02:00
Christian Maurer
46dddacdf3
remove all unused-parameter warnings
2019-07-30 13:10:53 +02:00
Moiz Haidry
bf994e48d9
Move grpc async, callback and sync implementation to grpc_impl namespace
2019-07-01 14:05:54 -07:00
Moiz Haidry
fbd5957ee8
Sanity and build fixes
2019-06-21 12:28:55 -07:00
Moiz Haidry
226e63dd0c
Move server context implementation to grpc_impl namespace and typedef the ref to it
2019-06-05 10:41:30 -07:00
Karthik Ravi Shankar
b4ef5388fc
Fix golden file
2019-05-17 09:35:40 -07:00
Karthik Ravi Shankar
430447d403
Merge branch 'master' into channel-cq-scq-impl
2019-05-17 09:20:16 -07:00