mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-24 16:59:14 +00:00
fix(clang-tidy): clang-tidy readability and misc fixes, like adding const (#3052)
* Enable and apply clang-tidy readability and misc fixes. * Revert deprecated tester * add space to tests/test_constants_and_functions.cpp
This commit is contained in:
@@ -56,7 +56,7 @@ class Pet {
|
||||
public:
|
||||
Pet(std::string name) : name_(name) {}
|
||||
std::string name_;
|
||||
const std::string &name() { return name_; }
|
||||
const std::string &name() const { return name_; }
|
||||
};
|
||||
} // namespace pets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user