mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 06:11:25 +00:00
fix(clang-tidy): performance fixes applied in tests and CI (#3051)
* Initial fixes * Whoops * Finish clang-tidy manual fixes * Add two missing fixes * Revert * Update clang-tidy * Try to fix unreachable code error * Move nolint comment * Apply missing fix * Don't override clang-tidy config * Does this fix clang-tidy? * Make all clang-tidy errors visible * Add comments about NOLINTs and remove a few * Fix typo
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
|
||||
|
||||
#include <pybind11/eval.h>
|
||||
|
||||
#include "pybind11_tests.h"
|
||||
#include <utility>
|
||||
|
||||
TEST_SUBMODULE(eval_, m) {
|
||||
// test_evals
|
||||
@@ -67,7 +69,7 @@ TEST_SUBMODULE(eval_, m) {
|
||||
int val_out;
|
||||
local["call_test2"] = py::cpp_function([&](int value) { val_out = value; });
|
||||
|
||||
auto result = py::eval_file(filename, global, local);
|
||||
auto result = py::eval_file(std::move(filename), global, local);
|
||||
return val_out == 43 && result.is_none();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user