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

Fix CPPlint errors in channel.h, channel_impl.h and channel_test.cc #9628

Merged
merged 3 commits into from
Apr 4, 2018

Conversation

abhinavarora
Copy link
Contributor

No description provided.

Copy link
Contributor

@sidgoyal78 sidgoyal78 left a comment

Choose a reason for hiding this comment

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

The CI doesn't pass, i think there is some mix up with reference and pointer types. (please see CI log: https://paddleci.ngrok.io/viewLog.html?buildId=32423&buildTypeId=Paddle_PrCi&tab=buildLog&_focus=3785)

@@ -88,15 +88,15 @@ class ChannelImpl : public paddle::framework::Channel<T> {
}

std::shared_ptr<QueueMessage> get_first_message(
std::deque<std::shared_ptr<QueueMessage>> &queue, ChannelAction action) {
std::deque<std::shared_ptr<QueueMessage>> *queue, ChannelAction action) {
while (!queue.empty()) {
Copy link
Contributor

@sidgoyal78 sidgoyal78 Apr 4, 2018

Choose a reason for hiding this comment

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

I think this is incorrect, since queue is a pointer, so maybe we need something like queue->empty()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@sidgoyal78 sidgoyal78 left a comment

Choose a reason for hiding this comment

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

LGTM.

@abhinavarora abhinavarora merged commit 7bf82f8 into PaddlePaddle:develop Apr 4, 2018
@abhinavarora abhinavarora deleted the cpplint_channel branch April 4, 2018 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants