Skip to content

Commit e66f0c7

Browse files
authored
Fix CPPLint errors in framework/details (#10104)
1 parent 744ebcf commit e66f0c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

paddle/fluid/framework/details/cow_ptr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#pragma once
1616
#include <memory>
17-
#include <thread>
17+
#include <thread> // NOLINT
1818

1919
namespace paddle {
2020
namespace framework {
@@ -23,7 +23,7 @@ namespace details {
2323
// Change it to thread safe flags if needed.
2424
class ThreadUnsafeOwnershipFlags {
2525
public:
26-
ThreadUnsafeOwnershipFlags(bool flag) : flag_(flag) {}
26+
explicit ThreadUnsafeOwnershipFlags(bool flag) : flag_(flag) {}
2727

2828
ThreadUnsafeOwnershipFlags(const ThreadUnsafeOwnershipFlags& other) = delete;
2929
ThreadUnsafeOwnershipFlags& operator=(

paddle/fluid/framework/details/op_registry.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ limitations under the License. */
1414

1515
#pragma once
1616

17+
#include <string>
18+
#include <tuple>
19+
#include <vector>
1720
#include "paddle/fluid/framework/grad_op_desc_maker.h"
1821
#include "paddle/fluid/framework/op_info.h"
1922
#include "paddle/fluid/framework/op_proto_maker.h"

0 commit comments

Comments
 (0)