-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd44abc
commit 5c6cd76
Showing
14 changed files
with
940 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// Copyright (c) ZeroC, Inc. All rights reserved. | ||
// | ||
|
||
#ifndef ICE_ENDIAN_H | ||
#define ICE_ENDIAN_H | ||
|
||
#ifdef __cpp_lib_endian | ||
# include <bit> | ||
#else | ||
|
||
// Provide a minimal implementation of std::endian for C++17. | ||
namespace std | ||
{ | ||
#ifdef _MSC_VER | ||
// Always little-endian on Windows. | ||
enum class endian | ||
{ | ||
little = 0, | ||
big = 1, | ||
native = little | ||
}; | ||
#else | ||
// Use macros predefined by gcc/clang to determine the endianness. | ||
enum class endian | ||
{ | ||
little = __ORDER_LITTLE_ENDIAN__, | ||
big = __ORDER_BIG_ENDIAN__, | ||
native = __BYTE_ORDER__ | ||
}; | ||
#endif | ||
} | ||
|
||
#endif // __cpp_lib_endian | ||
|
||
#endif |
Oops, something went wrong.