VERY experimental Nintendo Switch 2 emulator
C++
General: Tidy up clang-format warnings
Lioncash14874f0b6769
diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.shindex 991fe15527..1177d5c0c2 100644--- a/.ci/scripts/format/script.sh+++ b/.ci/scripts/format/script.sh@@ -7,7 +7,9 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* disfi# Default clang-format points to default 3.5 version one-CLANG_FORMAT=clang-format-10.0+CLANG_FORMAT=clang-format-10+ls /usr/bin+$CLANG_FORMAT --versionif [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; thendiff --git a/CMakeLists.txt b/CMakeLists.txtindex 3282ae9d40..8ecc2e4760 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -456,7 +456,7 @@ endif()# against all the src files. This should be used before making a pull request.# =======================================================================-set(CLANG_FORMAT_POSTFIX "-6.0")+set(CLANG_FORMAT_POSTFIX "-10")find_program(CLANG_FORMATNAMES clang-format${CLANG_FORMAT_POSTFIX}clang-formatdiff --git a/src/common/bit_field.h b/src/common/bit_field.hindex 26ae6c7fc7..dfa38a357e 100644--- a/src/common/bit_field.h+++ b/src/common/bit_field.h@@ -161,7 +161,7 @@ public:}}- // This constructor and assignment operator might be considered ambiguous:+ /// This constructor and assignment operator might be considered ambiguous:// Would they initialize the storage or just the bitfield?// Hence, delete them. Use the Assign method to set bitfield values!BitField(T val) = delete;