Skip to content

Fix cpplint errors operators detail#9508

Merged
luotao1 merged 9 commits intoPaddlePaddle:developfrom
wangkuiyi:fix_cpplint_errors_operators_detail
Apr 4, 2018
Merged

Fix cpplint errors operators detail#9508
luotao1 merged 9 commits intoPaddlePaddle:developfrom
wangkuiyi:fix_cpplint_errors_operators_detail

Conversation

@wangkuiyi
Copy link
Collaborator

@wangkuiyi wangkuiyi commented Mar 29, 2018

Fix #9505 #9506

Copy link
Contributor

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

I think use cpplint is a big change, I ran cpplint paddle/fluid/operators/* also report many lint errors, if we are going to use cpplint, we probably should format all the fluid code.

set(DISTRIBUTE_COMPILE_FLAGS "-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor")
set_source_files_properties(test_serde.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
cc_test(serde_test SRCS test_serde.cc variable_response.cc DEPS grpc++_unsecure grpc_unsecure gpr
set_source_files_properties(serde_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems this change is mixed with #9504 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. It is. I am using the cpplint-fixing of dropout_op_test.cc as a "unit test" of adding the cpplint pre-commit hook.

jacquesqiao
jacquesqiao previously approved these changes Apr 3, 2018
Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

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

LGTM! We can update other code in the future.

Copy link
Contributor

@Yancey0623 Yancey0623 left a comment

Choose a reason for hiding this comment

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

LGTM++

@luotao1 luotao1 merged commit d40096c into PaddlePaddle:develop Apr 4, 2018
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.

6 participants