Craig Tiller
dbb5164ac7
[clang-format] Remove custom clang-format rules for include ordering ( #37820 )
...
Closes #37820
PiperOrigin-RevId: 682352913
7 months ago
Esun Kim
a47d91c7b2
[Clean-up] Tidy fix ( #37104 )
...
Applied two clang 17 tidy fixes;
- https://clang.llvm.org/extra/clang-tidy/checks/readability/container-size-empty.html
- https://clang.llvm.org/extra/clang-tidy/checks/modernize/make-shared.html
Closes #37104
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37104 from veblush:fix-tidy 7b905869b8
PiperOrigin-RevId: 650815403
10 months ago
Alisha Nanda
f7962578c1
[gRPC CLI] Add a --channel_args string flag (a=b,c=d).
...
PiperOrigin-RevId: 625783208
1 year ago
Craig Tiller
b0cf42d86e
[clang-format] Remove requirement that port_platform.h is at the top ( #36281 )
...
Closes #36281
PiperOrigin-RevId: 623176865
1 year ago
Yijie Ma
f99b8b5bc4
Convert c-style comments to C++-style comments ( #31923 )
...
* baseline
* fix clang-tidy
* manually revert these files
* manually fixup at eof
* revert 2 more files
* change check_deprecated_grpc++.py
* change end2end_defs.include template
* fix check_include_guards.py
* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py
not yet ready to be submitted
* fix
yapf check_include_guards.py
remove a space...
* fix version.cc.template
* fix version_info.h.template
2 years ago
Esun Kim
f3fedae7c8
Added readability-redundant-string-cstr ( #31707 )
...
* Added readability-redundant-string-cstr
* Auto fix
* No need to wrap std::string
3 years ago
Micah Paul Ramos
1f0c6a6748
fix gprc_cli segfault when using binary in and out ( #31411 )
3 years ago
Craig Tiller
9c98d67d7a
[c++14] absl::make_unique --> std::make_unique ( #31159 )
...
* [c++14] absl::make_unique --> std::make_unique
* fix
* fix
3 years ago
Yousuk Seung
747d016397
Support --max_recv_msg_size in grpc cli ( #31106 )
...
* Support --max_recv_msg_size in grpc cli
* Comment typos fixed in tests.
3 years ago
Carlos Sobrinho
63df245532
If `-infile` is not readable, bail out and show an error! ( #30760 )
...
Without this, `grpc_cli` will connect, send the metadata and then completely stall until it is killed leading to believe it is the server that is stalled instead of `grpc_cli` that won't send the message.
3 years ago
AJ Heller
85189b24bb
Reintroduce: Avoid fully qualifying namespaces (and add check) ( #28917 )
...
Based on a handful of https://abseil.io/tips , it's generally advised to
only fully-qualify namespaces when in a `using` statement, or when it's
otherwise required for compilation. In all other cases, the general
recommendation is to not fully-qualify.
This change fixes most `grpc.*` namespace uses. There are potential
challenges in trying to make blanket changes to non-gRPC namespace uses,
such as `::testing`, since there is also a `grpc::testing` namespace.
3 years ago
AJ Heller
e72a5fe5dd
Revert "Avoid fully qualifying namespaces (and add check) ( #28901 )" ( #28916 )
...
This reverts commit fc7314c701
.
3 years ago
AJ Heller
fc7314c701
Avoid fully qualifying namespaces (and add check) ( #28901 )
...
Based on a handful of https://abseil.io/tips , it's generally advised to
only fully-qualify namespaces when in a `using` statement, or when it's
otherwise required for compilation. In all other cases, the general
recommendation is to not fully-qualify.
This change fixes most `grpc.*` namespace uses. There are potential
challenges in trying to make blanket changes to non-gRPC namespace uses,
such as `::testing`, since there is also a `grpc::testing` namespace.
3 years ago
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
4 years ago
Yonathan Randolph
a985978d82
grpc_cli: allow multiple colon-separated paths in --proto_path ( #24187 )
...
Co-authored-by: Yash Tibrewal <yashkt@google.com>
Co-authored-by: AJ Heller <hork@google.com>
4 years ago
Esun Kim
ec0b88a5d7
Fix google-readability-casting
5 years ago
capstan
131579d52d
Roll forward of commit 7883b51: Use abseil's flags in tests.
...
This replaces gflags. Added TODOs where use of `absl::Duration` or `absl::FlagSaver` might be preferred in follow-up cleanup. Fixes #24493 .
This reverts commit da66b7d14e
.
NEW:
* Adds references to `absl/flags/declare.h`, new to LTS 2020923.2 imported in commit 5b43440
.
* Works around MSVC 2017 compiler error with large help text on flags by reducing the help text.
5 years ago
Parveen Kumar
ec08d77474
Specify a large value for max metadata size in grpc_cli client channel.
...
This is useful in cases where server sends back large stacktrace and
default value of 8192 isn't enough.
5 years ago
Nathan Herring
da66b7d14e
Revert "Abseil Flags"
5 years ago
capstan
7883b5133d
Use abseil's flags in tests.
...
This replaces gflags. Added TODOs where use of `absl::Duration` or `absl::FlagSaver` might be preferred in follow-up cleanup. Fixes #24493 .
5 years ago
Esun Kim
6ae8463500
Fix by modernize-make-unique
5 years ago
Esun Kim
6d6648c7e1
Fix clang-tidy errors
5 years ago
Alisha Nanda
91627677fd
Added timeout flag to grpc cli.
5 years ago
Alisha Nanda
a3ef19c1f0
Revert "Add timeout flag to gRPC cli"
5 years ago
Alisha Nanda
4282e968c4
Re-add in all changes, fix check failures.
5 years ago
Alisha Nanda
a4eedc1510
Revert "Merge branch 'master' of https://github.com/ananda1066/grpc "
...
This reverts commit 35e0e96b09
, reversing
changes made to b78bc85185
.
5 years ago
Alisha Nanda
88d99b4603
Add timeout flag to gRPC cli
...
Signed-off-by: Alisha Nanda <alishananda@google.com>
5 years ago
Alexander Polcyn
f57879ac56
Flag protect new logs
5 years ago
Alexander Polcyn
4bdbd4caef
Log the peer address of grpc_cli CallMethod RPCs to stderr
5 years ago
Esun Kim
165ee5007a
Replaced grpc::string with std::string
5 years ago
Alexander Polcyn
0a452b9d19
Allow configuring default service configs in grpc_cli
5 years ago
Vijay Pai
53e19e8de2
Remove unused parameter warning (20 of 20)
6 years ago
Andrew Scherkus
4bf0048194
Document --noremotedb flag for grpc_cli.
...
It's surprising that grpc_cli always attempts to use the reflection
service even when providing local proto files. Document the
existence of a flag that surpresses this behavior.
6 years ago
Karthik Ravi Shankar
5274deb32b
Fix the rebase and build
6 years ago
Karthik Ravi Shankar
e57182ab61
Fix the compile errors for tests and namespace.
6 years ago
xtao
7766912dda
fix more detected mu/cv leaks
6 years ago
Yang Gao
6bfb966271
Revert "Revert "grpc_cli json support""
7 years ago
David G. Quintas
a464b4ce39
Revert "grpc_cli json support"
7 years ago
Feso
00bb2a035e
Reformatted code as per clang-format
7 years ago
Feso
29c131f790
Refactored based on code review
7 years ago
Feso
44cecbb2f7
grpc_cli json support
7 years ago
Nathan Herring
c7fae8812f
clang tidy
7 years ago
Nathan Herring
3ed81c8d65
Introduce --ssl_target flag to grpc_cli.
...
This allows the client to specify the host name of the remote server for the purposes of TLS certificate validation, useful for test certificates and machines with ephemeral IP
addresses with no associated DNS entries that have been assigned TLS certificates.
7 years ago
Vijay Pai
c90a85649b
Change grpc++ references in names to grpcpp
7 years ago
Carlos Valera
efce74b525
Print trailing metadata in the "grpc_cli call" command.
...
This often includes important debugging information when the RPC returns
a non-OK status.
7 years ago
Yuchen Zeng
33aaffa639
clang_format
8 years ago
Yuchen Zeng
6ac62118b7
Report more error messages in grpc_cli
8 years ago
Yuchen Zeng
19889d79e4
Add escape sequences for the grpc_cli metadata flag
8 years ago
Craig Tiller
e31e200dec
Fix after merge
8 years ago
Craig Tiller
4ac2b8e585
Enable clang-tidy as a sanity check, fix up all known failures
8 years ago