Skip to content

Commit

Permalink
Chore: reformat code using new clang-format setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Antares0982 committed Dec 25, 2024
1 parent 15c9799 commit ca1cb53
Show file tree
Hide file tree
Showing 32 changed files with 2,996 additions and 2,939 deletions.
11 changes: 7 additions & 4 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Generated from CLion C/C++ Code Style settings
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
Expand Down Expand Up @@ -37,16 +36,15 @@ ColumnLimit: 0
CompactNamespaces: false
ContinuationIndentWidth: 8
IndentCaseLabels: true
IndentPPDirectives: None
IndentPPDirectives: AfterHash
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Right
ReflowComments: false
SpaceAfterCStyleCast: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
Expand All @@ -64,3 +62,8 @@ SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseTab: Never
SortIncludes: CaseInsensitive
AlignEscapedNewlines: Left
InsertNewlineAtEOF: true
SeparateDefinitionBlocks: Always
IncludeBlocks: Preserve
2 changes: 1 addition & 1 deletion src/commondef/i_in.inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
#elif COMPILE_INDENT_LEVEL == 2
#elif COMPILE_INDENT_LEVEL == 0
#else
#error "COMPILE_INDENT_LEVEL must be 0, 2 or 4"
# error "COMPILE_INDENT_LEVEL must be 0, 2 or 4"
#endif
14 changes: 7 additions & 7 deletions src/commondef/r_in.inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
* Macros IN
*/
#if COMPILE_READ_UCS_LEVEL == 4
#define _FROM_TYPE u32
#define READ_BIT_SIZE 32
# define _FROM_TYPE u32
# define READ_BIT_SIZE 32
#elif COMPILE_READ_UCS_LEVEL == 2
#define _FROM_TYPE u16
#define READ_BIT_SIZE 16
# define _FROM_TYPE u16
# define READ_BIT_SIZE 16
#elif COMPILE_READ_UCS_LEVEL == 1
#define _FROM_TYPE u8
#define READ_BIT_SIZE 8
# define _FROM_TYPE u8
# define READ_BIT_SIZE 8
#else
#error "COMPILE_READ_UCS_LEVEL must be 1, 2 or 4"
# error "COMPILE_READ_UCS_LEVEL must be 1, 2 or 4"
#endif

#define CHECK_COUNT_MAX (SIMD_BIT_SIZE / 8 / sizeof(_FROM_TYPE))
20 changes: 10 additions & 10 deletions src/commondef/w_in.inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
* Macros IN
*/
#if COMPILE_WRITE_UCS_LEVEL == 4
#define _WRITER U32_WRITER
#define _TARGET_TYPE u32
#define WRITE_BIT_SIZE 32
# define _WRITER U32_WRITER
# define _TARGET_TYPE u32
# define WRITE_BIT_SIZE 32
#elif COMPILE_WRITE_UCS_LEVEL == 2
#define _WRITER U16_WRITER
#define _TARGET_TYPE u16
#define WRITE_BIT_SIZE 16
# define _WRITER U16_WRITER
# define _TARGET_TYPE u16
# define WRITE_BIT_SIZE 16
#elif COMPILE_WRITE_UCS_LEVEL == 1
#define _WRITER U8_WRITER
#define _TARGET_TYPE u8
#define WRITE_BIT_SIZE 8
# define _WRITER U8_WRITER
# define _TARGET_TYPE u8
# define WRITE_BIT_SIZE 8
#else
#error "COMPILE_WRITE_UCS_LEVEL must be 1, 2 or 4"
# error "COMPILE_WRITE_UCS_LEVEL must be 1, 2 or 4"
#endif
Loading

0 comments on commit ca1cb53

Please sign in to comment.