diff --git a/.clang-format b/.clang-format deleted file mode 100644 index a2677988ad3..00000000000 --- a/.clang-format +++ /dev/null @@ -1,50 +0,0 @@ ---- -# See https://clang.llvm.org/docs/ClangFormatStyleOptions.html -BasedOnStyle: LLVM -IndentWidth: 4 ---- -Language: Cpp -AccessModifierOffset: -4 -AlignAfterOpenBracket: AlwaysBreak -AllowAllArgumentsOnNextLine: false -AllowAllParametersOfDeclarationOnNextLine: false -AllowAllConstructorInitializersOnNextLine: false -AllowShortIfStatementsOnASingleLine: false -AlwaysBreakAfterDefinitionReturnType: TopLevel -BinPackParameters: false -BreakBeforeBraces: Allman -ColumnLimit: 120 -DerivePointerAlignment: false -FixNamespaceComments: false -IndentCaseLabels: true -IndentPPDirectives: AfterHash -NamespaceIndentation: All -PackConstructorInitializers: CurrentLine -PointerAlignment: Left -SortIncludes: Never -SpaceAfterTemplateKeyword: false -TabWidth: 4 -UseTab: Never ---- -Language: ObjC -AccessModifierOffset: -4 -AlignAfterOpenBracket: AlwaysBreak -AllowAllArgumentsOnNextLine: false -AllowAllParametersOfDeclarationOnNextLine: false -AllowAllConstructorInitializersOnNextLine: false -AllowShortIfStatementsOnASingleLine: false -AlwaysBreakAfterDefinitionReturnType: TopLevel -BinPackParameters: false -BreakBeforeBraces: Allman -ColumnLimit: 120 -DerivePointerAlignment: false -FixNamespaceComments: false -IndentCaseLabels: true -IndentPPDirectives: AfterHash -NamespaceIndentation: All -PackConstructorInitializers: CurrentLine -PointerAlignment: Left -SortIncludes: Never -SpaceAfterTemplateKeyword: false -TabWidth: 4 -UseTab: Never diff --git a/cpp/src/Ice/WSTransceiver.cpp b/cpp/src/Ice/WSTransceiver.cpp index 64664c25c92..fb16a3e9d5d 100644 --- a/cpp/src/Ice/WSTransceiver.cpp +++ b/cpp/src/Ice/WSTransceiver.cpp @@ -15,6 +15,7 @@ #include #include #include +#include "Endian.h" #include #include diff --git a/swift/Rakefile b/swift/Rakefile index 684bdbec9e3..99eb9c19091 100644 --- a/swift/Rakefile +++ b/swift/Rakefile @@ -113,6 +113,8 @@ def create_project(name, bindist) config.build_settings["CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER"] = "YES" # Disable header maps as they cause problems with parallel builds on Xcode 12 config.build_settings["USE_HEADERMAP"] = "NO" + # The big-endian code is unreachable + config.build_settings["CLANG_WARN_UNREACHABLE_CODE"] = "NO" end [:osx, :ios].each do |platform|