mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Fully-automatic clang-format with include reordering (#3713)
* chore: add clang-format
* Removing check-style (Classic check-style)
Ported from @henryiii's 53056b1b0e
* Automatic clang-format changes (NO manual changes).
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e96221beff
commit
ec24786eab
@@ -20,11 +20,11 @@
|
||||
namespace exercise_trampoline {
|
||||
|
||||
struct SimpleBase {
|
||||
int num = 0;
|
||||
int num = 0;
|
||||
virtual ~SimpleBase() = default;
|
||||
|
||||
// For compatibility with old clang versions:
|
||||
SimpleBase() = default;
|
||||
SimpleBase() = default;
|
||||
SimpleBase(const SimpleBase &) = default;
|
||||
};
|
||||
|
||||
@@ -50,7 +50,7 @@ void wrap(py::module m) {
|
||||
}
|
||||
auto cpp_state = std::unique_ptr<SimpleBase>(new SimpleBaseTrampoline);
|
||||
cpp_state->num = t[0].cast<int>();
|
||||
auto py_state = t[1].cast<py::dict>();
|
||||
auto py_state = t[1].cast<py::dict>();
|
||||
return std::make_pair(std::move(cpp_state), py_state);
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user