clang-tidy cleanups (#800)
commit0526ecd2f95877b167293e50ab8ce0ce614d03f4
authorRosen Penev <rosenp@gmail.com>
Sun, 15 Jan 2023 21:43:27 +0000 (15 13:43 -0800)
committerGitHub <noreply@github.com>
Sun, 15 Jan 2023 21:43:27 +0000 (15 13:43 -0800)
treead80a5811292e87601020f6aadcb2f6ff138761d
parentd9d445772c50e53c12ab77d97cc5f3a76839d83a
clang-tidy cleanups (#800)

* clang-tidy: use bool literals

Found with modernize-use-bool-literals

Signed-off-by: Rosen Penev <rosenp@gmail.com>
* clang-tidy: replace std::bind with lambdas

Found with modernize-avoid-bind

Signed-off-by: Rosen Penev <rosenp@gmail.com>
* clang-tidy: use data() instead of pointer stuff

Found with readability-container-data-pointe

Signed-off-by: Rosen Penev <rosenp@gmail.com>
* clang-tidy: use empty()

Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>
* clang-tidy: remove static in anon namespace

Found with readability-static-definition-in-anonymous-namespace

Signed-off-by: Rosen Penev <rosenp@gmail.com>
* clang-tidy: remove const return

Found with readability-const-return-type

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
20 files changed:
al/effects/chorus.cpp
alc/alc.cpp
alc/alconfig.cpp
alc/alu.cpp
alc/backends/alsa.cpp
alc/backends/jack.cpp
alc/backends/pulseaudio.cpp
alc/backends/wave.cpp
alc/context.cpp
alc/panning.cpp
common/alcomplex.cpp
core/ambdec.cpp
core/cpu_caps.cpp
core/except.cpp
core/hrtf.cpp
core/mastering.cpp
core/mixer/mixer_sse.cpp
utils/alsoft-config/mainwindow.cpp
utils/makemhr/makemhr.cpp
utils/uhjencoder.cpp