-
Notifications
You must be signed in to change notification settings - Fork 78
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
Showing
376 changed files
with
27,048 additions
and
30,670 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 |
---|---|---|
@@ -1,25 +1,103 @@ | ||
BasedOnStyle: LLVM | ||
AllowShortFunctionsOnASingleLine: None | ||
BreakBeforeBraces: Allman | ||
ColumnLimit: 100 | ||
UseTab: Never | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
--- | ||
BasedOnStyle: WebKit | ||
Language: Cpp | ||
LineEnding: LF | ||
ColumnLimit: 0 | ||
|
||
AlignAfterOpenBracket: DontAlign | ||
Cpp11BracedListStyle: false | ||
BreakStringLiterals: false | ||
IndentCaseLabels: true | ||
AlignConsecutiveAssignments: | ||
Enabled: true | ||
AlignConsecutiveBitFields: | ||
Enabled: true | ||
AlignConsecutiveDeclarations: None | ||
AlignConsecutiveMacros: Consecutive | ||
AlignTrailingComments: true | ||
AlignArrayOfStructures: Left | ||
|
||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortEnumsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: false | ||
|
||
BinPackArguments: false | ||
BinPackParameters: false | ||
AlignTrailingComments: false | ||
BitFieldColonSpacing: Both | ||
|
||
InsertBraces: true | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterControlStatement: Never | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeElse: false | ||
BeforeWhile: false | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: false | ||
|
||
AlwaysBreakAfterReturnType: None | ||
BreakBeforeBinaryOperators: All | ||
BreakBeforeTernaryOperators: true | ||
BreakStringLiterals: true | ||
|
||
DerivePointerAlignment: false | ||
PointerAlignment: Right | ||
ReferenceAlignment: Right | ||
|
||
ContinuationIndentWidth: 4 | ||
IndentCaseBlocks: false | ||
IndentCaseLabels: false | ||
IndentGotoLabels: false | ||
IndentPPDirectives: None | ||
IndentWidth: 4 | ||
|
||
SortIncludes: CaseSensitive | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: '^"nitro/types\.h"$' | ||
Priority: -4 | ||
- Regex: '^"global\.h"$' | ||
Priority: -3 | ||
- Regex: '^"nitro/nitro\.h"$' | ||
Priority: -2 | ||
- Regex: '^"nitro/' | ||
Priority: -1 | ||
- Regex: '.\*' | ||
Priority: 1 | ||
- Regex: '((<.+>)|("nitro/.*\.h"))' | ||
Priority: 1 | ||
- Regex: '"global\.h"' | ||
Priority: 2 | ||
- Regex: '"(consts|constants)/.*\.h"' | ||
Priority: 3 | ||
- Regex: '"(struct_(decls|defs))/.*\.h"' | ||
Priority: 4 | ||
- Regex: '"(constdata|res)/.*\.(h|naix)"' | ||
Priority: 7 | ||
- Regex: '"[[:alnum:]_]+/.*\.(h|naix)"' | ||
Priority: 5 | ||
- Regex: '"[[:alnum:]_]+\.(h|naix)"' | ||
Priority: 6 | ||
- Regex: '.*' | ||
Priority: 8 | ||
|
||
InsertTrailingCommas: Wrapped | ||
InsertNewlineAtEOF: true | ||
KeepEmptyLinesAtEOF: false | ||
MaxEmptyLinesToKeep: 1 | ||
RemoveParentheses: ReturnStatement | ||
RemoveSemicolon: true | ||
|
||
# QualifierAlignment: Custom | ||
# QualifierOrder: [static, inline, const, volatile, type] | ||
|
||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAroundPointerQualifiers: Default | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCaseColon: false | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeSquareBrackets: false | ||
SpaceInEmptyBlock: false | ||
SpaceInEmptyParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpacesInLineCommentPrefix: | ||
Minimum: 1 | ||
Maximum: -1 | ||
SpacesInParens: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/*.s | ||
**/*.inc | ||
**/*.json | ||
arm9/lib/ | ||
arm7/lib/ | ||
include/nitro/ |
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,9 @@ | ||
#!/bin/sh | ||
# Redirect output to stderr. | ||
exec 1>&2 | ||
|
||
# Run clang-format on staged files; abort the commit if any files are changed | ||
if ! git clang-format --extensions c,cpp,h,hpp ; then | ||
echo "linting made changes to source files; aborting commit" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include "global.h" | ||
|
||
#include "sinit.h" | ||
|
||
static void NitroStaticInit(void) { | ||
|
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#ifndef POKEDIAMOND_OVERLAY_05_H | ||
#define POKEDIAMOND_OVERLAY_05_H | ||
|
||
//todo: remove this file | ||
// todo: remove this file | ||
|
||
#include "pokemon.h" | ||
|
||
void ov05_SetEggStats(struct Pokemon * mon, u16 species, int a1, PlayerProfile * data, int a2, int metLoc); | ||
void ov05_SetEggStats(struct Pokemon *mon, u16 species, int a1, PlayerProfile *data, int a2, int metLoc); | ||
|
||
#endif //POKEDIAMOND_OVERLAY_05_H | ||
#endif // POKEDIAMOND_OVERLAY_05_H |
Oops, something went wrong.