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

cpplint code style for *.h and *.cu #3227

Merged
merged 4 commits into from
Aug 4, 2017
Merged

Conversation

gangliao
Copy link
Contributor

@gangliao gangliao commented Aug 4, 2017

This PR exemplifies the advantage of our new building system.

The previous raw CMake to generate each library for each folder, which causes all source code of this library do cpplint sequentially. In our new building system, each cc_library composed small piece code, which did cpplint only depends on its owner target library. Thus, many of cc_library ->cpplint can run simultaneously.

@gangliao gangliao requested a review from wangkuiyi August 4, 2017 03:14
@gangliao gangliao requested a review from reyoung August 4, 2017 04:21
Copy link
Collaborator

@wangkuiyi wangkuiyi left a comment

Choose a reason for hiding this comment

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

This is Awesome!

@wangkuiyi wangkuiyi merged commit 2dc34c9 into PaddlePaddle:develop Aug 4, 2017
Piece(const char* d);
Piece(const std::string& s);
Piece(const char* d); // NOLINT
Piece(const std::string& s); // NOLINT
Copy link
Collaborator

Choose a reason for hiding this comment

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

These shouldn't be marked NOLINT but should be fixed by adding the explicit keyword. Let me fix them.

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.

2 participants