mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-22 01:39:20 +01:00
Update .clang-format to update the comment, macro and assignment formatting
This commit is contained in:
parent
6db316c682
commit
cd18ab16a6
@ -2,7 +2,8 @@
|
|||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
AlignAfterOpenBracket: Align
|
AlignAfterOpenBracket: Align
|
||||||
AlignConsecutiveAssignments: None
|
AlignConsecutiveAssignments: Consecutive
|
||||||
|
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
|
||||||
AlignOperands: Align
|
AlignOperands: Align
|
||||||
AllowAllArgumentsOnNextLine: false
|
AllowAllArgumentsOnNextLine: false
|
||||||
AllowAllConstructorInitializersOnNextLine: false
|
AllowAllConstructorInitializersOnNextLine: false
|
||||||
@ -56,7 +57,7 @@ SpaceBeforeInheritanceColon: true
|
|||||||
SpaceBeforeParens: ControlStatements
|
SpaceBeforeParens: ControlStatements
|
||||||
SpaceBeforeRangeBasedForLoopColon: true
|
SpaceBeforeRangeBasedForLoopColon: true
|
||||||
SpaceInEmptyParentheses: false
|
SpaceInEmptyParentheses: false
|
||||||
SpacesBeforeTrailingComments: 0
|
SpacesBeforeTrailingComments: 1
|
||||||
SpacesInAngles: false
|
SpacesInAngles: false
|
||||||
SpacesInCStyleCastParentheses: false
|
SpacesInCStyleCastParentheses: false
|
||||||
SpacesInContainerLiterals: false
|
SpacesInContainerLiterals: false
|
||||||
|
@ -31,14 +31,13 @@ typedef struct _memory_mapping_t {
|
|||||||
const memory_values_t *physical_addresses;
|
const memory_values_t *physical_addresses;
|
||||||
} memory_mapping_t;
|
} memory_mapping_t;
|
||||||
|
|
||||||
// clang-format off
|
|
||||||
#define SEGMENT_UNIQUE_ID 0x00AABBCC // Unique ID. Chosen arbitrary.
|
#define SEGMENT_UNIQUE_ID 0x00AABBCC // Unique ID. Chosen arbitrary.
|
||||||
#define PAGE_INDEX_SHIFT (32 - 15)
|
#define PAGE_INDEX_SHIFT (32 - 15)
|
||||||
#define PAGE_INDEX_MASK ((1 << (28 - PAGE_INDEX_SHIFT)) - 1)
|
#define PAGE_INDEX_MASK ((1 << (28 - PAGE_INDEX_SHIFT)) - 1)
|
||||||
|
|
||||||
#define MEMORY_START_BASE 0x80000000
|
#define MEMORY_START_BASE 0x80000000
|
||||||
#define MEMORY_START_VIDEO_BASE (MEMORY_START_BASE + 0x08000000)
|
#define MEMORY_START_VIDEO_BASE (MEMORY_START_BASE + 0x08000000)
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const memory_values_t mem_vals_heap_1[] = {
|
const memory_values_t mem_vals_heap_1[] = {
|
||||||
@ -118,10 +117,8 @@ const memory_values_t mem_vals_video[] = {
|
|||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
// clang-format off
|
|
||||||
#define MEMORY_START_VIDEO MEMORY_START_VIDEO_BASE
|
#define MEMORY_START_VIDEO MEMORY_START_VIDEO_BASE
|
||||||
#define MEMORY_END_VIDEO (MEMORY_START_VIDEO + 0xE60000)
|
#define MEMORY_END_VIDEO (MEMORY_START_VIDEO + 0xE60000)
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const memory_mapping_t mem_mapping[] = {
|
const memory_mapping_t mem_mapping[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user