• Andrea Pappacoda's avatar
    Fix some compiler and clang-tidy warnings · 9e6846e0
    Andrea Pappacoda authored
    Use `override`, `= default` instead of `{}`, remove std::moves of const&
    objects, use `[[maybe_unused]]`, use `nullptr` instead of `0`, rename
    function parameters so that they are the same in declarations and
    definitions, use `const auto&` instead of `const auto` when appropriate,
    use structured bindings, use C++ casts instead of C-style casts, use
    `.empty()` instead of `.size() == 0`, use `.emplace_back()` when
    appropriate, use bool literals instead of `0` and `1`,  use `auto*`
    instead of `auto`, fix #928, close #897
    9e6846e0
cookie.cc 8.64 KB