Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: remove unnecessary calls to std::string::c_str() and std::string::data() and fix use after move #4971

Merged
merged 10 commits into from
Nov 11, 2018

Conversation

zyfjeff
Copy link
Member

@zyfjeff zyfjeff commented Nov 6, 2018

  1. remove unnecessary calls to std::string::c_str() and std::string::data()
  2. fix use after move

Description: lint: remove unnecessary calls to std::string::c_str() and std::string::data() and fix use after move
Risk Level: low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
[Optional Fixes #Issue] #4863
[Optional Deprecated:]

Signed-off-by: zyfjeff <tianqian.zyf@alibaba-inc.com>
Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>
Signed-off-by: zyfjeff <tianqian.zyf@alibaba-inc.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanups, very useful. A few comments.

source/common/grpc/async_client_impl.cc Show resolved Hide resolved
source/common/stats/thread_local_store.cc Outdated Show resolved Hide resolved
Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>
@zyfjeff
Copy link
Member Author

zyfjeff commented Nov 10, 2018

@mattklein123
Sorry, these days are busy, there is no time to update the code.

can you PTAL when you get time?

jmarantz
jmarantz previously approved these changes Nov 10, 2018
@jmarantz
Copy link
Contributor

You will need address the clang_tidy errors per CI.

Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>
Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>
Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>
Signed-off-by: zyfjeff <tianqian.zyf@alibaba-inc.com>
Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>
Signed-off-by: zyfjeff <tianqian.zyf@alibaba-inc.com>
@mattklein123 mattklein123 merged commit 8f64b3b into envoyproxy:master Nov 11, 2018
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
…g::data() and fix use after move (envoyproxy#4971)

Signed-off-by: zyfjeff <tianqian.zyf@alibaba-inc.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants