Просмотр исходного кода

Merge pull request #4502 from lioncash/build

General: Tidy up clang-format warnings
bunnei 6 лет назад
Родитель
Сommit
4605e4d6ff
3 измененных файлов с 5 добавлено и 3 удалено
  1. 3 1
      .ci/scripts/format/script.sh
  2. 1 1
      CMakeLists.txt
  3. 1 1
      src/common/bit_field.h

+ 3 - 1
.ci/scripts/format/script.sh

@@ -7,7 +7,9 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dis
 fi
 fi
 
 
 # Default clang-format points to default 3.5 version one
 # 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 --version
 $CLANG_FORMAT --version
 
 
 if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
 if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then

+ 1 - 1
CMakeLists.txt

@@ -456,7 +456,7 @@ endif()
 # against all the src files. This should be used before making a pull request.
 # 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_FORMAT
 find_program(CLANG_FORMAT
     NAMES clang-format${CLANG_FORMAT_POSTFIX}
     NAMES clang-format${CLANG_FORMAT_POSTFIX}
           clang-format
           clang-format

+ 1 - 1
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?
     // Would they initialize the storage or just the bitfield?
     // Hence, delete them. Use the Assign method to set bitfield values!
     // Hence, delete them. Use the Assign method to set bitfield values!
     BitField(T val) = delete;
     BitField(T val) = delete;