mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
Adding .clang-tidy readability-braces-around-statements option.
clang-tidy automatic changes. NO manual changes.
This commit is contained in:
committed by
Ralf W. Grosse-Kunstleve
parent
8581584e60
commit
ddbc74c674
@@ -307,7 +307,11 @@ TEST_CASE("Threads") {
|
||||
struct scope_exit {
|
||||
std::function<void()> f_;
|
||||
explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {}
|
||||
~scope_exit() { if (f_) f_(); }
|
||||
~scope_exit() {
|
||||
if (f_) {
|
||||
f_();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
TEST_CASE("Reload module from file") {
|
||||
|
||||
Reference in New Issue
Block a user