diff options
| author | 2020-08-07 09:13:40 -0400 | |
|---|---|---|
| committer | 2020-08-08 20:08:44 -0400 | |
| commit | 1c3490a8db1f68997169e60e195e1f959605d3a0 (patch) | |
| tree | 8825c05409b0ed73918cf43374892908eb59b6cd | |
| parent | Merge pull request #4464 from lioncash/format-pass (diff) | |
| download | yuzu-1c3490a8db1f68997169e60e195e1f959605d3a0.tar.gz yuzu-1c3490a8db1f68997169e60e195e1f959605d3a0.tar.xz yuzu-1c3490a8db1f68997169e60e195e1f959605d3a0.zip | |
General: Tidy up clang-format warnings
Diffstat (limited to '')
| -rw-r--r-- | .ci/scripts/format/script.sh | 4 | ||||
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/bit_field.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.sh index 991fe1552..1177d5c0c 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* dis | |||
| 7 | fi | 7 | fi |
| 8 | 8 | ||
| 9 | # Default clang-format points to default 3.5 version one | 9 | # Default clang-format points to default 3.5 version one |
| 10 | CLANG_FORMAT=clang-format-10.0 | 10 | CLANG_FORMAT=clang-format-10 |
| 11 | ls /usr/bin | ||
| 12 | |||
| 11 | $CLANG_FORMAT --version | 13 | $CLANG_FORMAT --version |
| 12 | 14 | ||
| 13 | if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then | 15 | if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then |
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3282ae9d4..8ecc2e476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -456,7 +456,7 @@ endif() | |||
| 456 | # against all the src files. This should be used before making a pull request. | 456 | # against all the src files. This should be used before making a pull request. |
| 457 | # ======================================================================= | 457 | # ======================================================================= |
| 458 | 458 | ||
| 459 | set(CLANG_FORMAT_POSTFIX "-6.0") | 459 | set(CLANG_FORMAT_POSTFIX "-10") |
| 460 | find_program(CLANG_FORMAT | 460 | find_program(CLANG_FORMAT |
| 461 | NAMES clang-format${CLANG_FORMAT_POSTFIX} | 461 | NAMES clang-format${CLANG_FORMAT_POSTFIX} |
| 462 | clang-format | 462 | clang-format |
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 26ae6c7fc..dfa38a357 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -161,7 +161,7 @@ public: | |||
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | // This constructor and assignment operator might be considered ambiguous: | 164 | /// This constructor and assignment operator might be considered ambiguous: |
| 165 | // Would they initialize the storage or just the bitfield? | 165 | // Would they initialize the storage or just the bitfield? |
| 166 | // Hence, delete them. Use the Assign method to set bitfield values! | 166 | // Hence, delete them. Use the Assign method to set bitfield values! |
| 167 | BitField(T val) = delete; | 167 | BitField(T val) = delete; |