mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +00:00
Resolve clang-tidy errors.
This commit is contained in:
parent
c9a56ac21b
commit
bdd938ad7e
@ -6,7 +6,7 @@ namespace test_python_multiple_inheritance {
|
|||||||
// https://github.com/google/clif/blob/5718e4d0807fd3b6a8187dde140069120b81ecef/clif/testing/python_multiple_inheritance.h
|
// https://github.com/google/clif/blob/5718e4d0807fd3b6a8187dde140069120b81ecef/clif/testing/python_multiple_inheritance.h
|
||||||
|
|
||||||
struct CppBase {
|
struct CppBase {
|
||||||
CppBase(int value) : base_value(value) {}
|
explicit CppBase(int value) : base_value(value) {}
|
||||||
int get_base_value() const { return base_value; }
|
int get_base_value() const { return base_value; }
|
||||||
void reset_base_value(int new_value) { base_value = new_value; }
|
void reset_base_value(int new_value) { base_value = new_value; }
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct CppDrvd : CppBase {
|
struct CppDrvd : CppBase {
|
||||||
CppDrvd(int value) : CppBase(value), drvd_value(value * 3) {}
|
explicit CppDrvd(int value) : CppBase(value), drvd_value(value * 3) {}
|
||||||
int get_drvd_value() const { return drvd_value; }
|
int get_drvd_value() const { return drvd_value; }
|
||||||
void reset_drvd_value(int new_value) { drvd_value = new_value; }
|
void reset_drvd_value(int new_value) { drvd_value = new_value; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user