-
Notifications
You must be signed in to change notification settings - Fork 47
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
3 changed files
with
126 additions
and
19 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,102 @@ | ||
# OSARA: Open Source Accessibility for the REAPER Application | ||
# .clang-format | ||
# Author: James Teh <[email protected]> | ||
# Copyright 2023 Leonard de Ruijter | ||
# License: GNU General Public License version 2.0 | ||
|
||
# Style based on Google's C++ style guide. | ||
BasedOnStyle: Google | ||
# Offset for access modifiers (public, protected, private). | ||
AccessModifierOffset: 0 | ||
# Align code after an open bracket with block indentation. | ||
AlignAfterOpenBracket: BlockIndent | ||
# Do not align consecutive assignments. | ||
AlignConsecutiveAssignments: None | ||
# Do not align consecutive bit fields. | ||
AlignConsecutiveBitFields: None | ||
# Do not align consecutive declarations. | ||
AlignConsecutiveDeclarations: None | ||
# Do not align consecutive macros. | ||
AlignConsecutiveMacros: None | ||
# Do not align escaped newlines. | ||
AlignEscapedNewlines: DontAlign | ||
# Do not align operands in expressions. | ||
AlignOperands: DontAlign | ||
# Do not align trailing comments. | ||
AlignTrailingComments: Never | ||
# Do not allow short blocks (e.g., if statements without braces) on a single line. | ||
AllowShortBlocksOnASingleLine: Never | ||
# Do not allow short case labels in switch statements on a single line. | ||
AllowShortCaseLabelsOnASingleLine: false | ||
# Do not allow short enums on a single line. | ||
AllowShortEnumsOnASingleLine: false | ||
# Only allow empty functions on a single line. | ||
AllowShortFunctionsOnASingleLine: Empty | ||
# Do not allow short if statements on a single line. | ||
AllowShortIfStatementsOnASingleLine: Never | ||
# Do not allow short loops on a single line. | ||
AllowShortLoopsOnASingleLine: false | ||
# Do not pack function call arguments together. | ||
# A function call’s arguments will either be all on the same line or will have one line each. | ||
BinPackArguments: false | ||
# Do not pack function parameters together. | ||
# A function declaration’s or function definition’s parameters will either all be on the same line | ||
# or will have one line each. | ||
BinPackParameters: false | ||
# Add a space after the colon in bit fields. | ||
BitFieldColonSpacing: After | ||
# Break before binary operators that are not assignments. | ||
# E.g. break before "+", but not before "+=". | ||
BreakBeforeBinaryOperators: NonAssignment | ||
# Attach opening braces to the same line as the statement or declaration it belongs to. | ||
BreakBeforeBraces: Attach | ||
# Break string literals if they are too long. | ||
BreakStringLiterals: true | ||
# Maximum column width before code will be wrapped or formatted. | ||
ColumnLimit: 110 | ||
# Indentation width for constructor initializers. | ||
ConstructorInitializerIndentWidth: 4 | ||
# Indentation width for continuation lines. | ||
ContinuationIndentWidth: 4 | ||
# Format braced lists as best suited for C++11 braced lists. | ||
Cpp11BracedListStyle: true | ||
# Use a fixed alignment for all pointers. | ||
DerivePointerAlignment: false | ||
# Indent case blocks in switch statements. | ||
IndentCaseBlocks: true | ||
# Indent case labels in switch statements. | ||
IndentCaseLabels: true | ||
# Standard indentation width. | ||
IndentWidth: 4 | ||
# Do not indent if a function definition or declaration is wrapped after the type. | ||
IndentWrappedFunctionNames: false | ||
# Insert a newline at end of file if missing. | ||
InsertNewlineAtEOF: true | ||
# Maximum number of consecutive empty lines to keep. | ||
MaxEmptyLinesToKeep: 2 | ||
# Do not indent namespaces. | ||
NamespaceIndentation: None | ||
# Penalty for indentation using spaces rather than tabs. | ||
PenaltyIndentedWhitespace: 0 | ||
# Pointer alignment (Left or Right). | ||
PointerAlignment: Left | ||
# Separate definition blocks (Always, Never, or Leave). | ||
SeparateDefinitionBlocks: Always | ||
# Number of spaces before trailing comments. | ||
SpacesBeforeTrailingComments: 1 | ||
# Do not add a space after a C-style cast. | ||
SpaceAfterCStyleCast: false | ||
# Do not add a space after the template keyword. | ||
SpaceAfterTemplateKeyword: false | ||
# Sort includes (CaseSensitive, CaseInsensitive, or None). | ||
SortIncludes: CaseInsensitive | ||
# C++ standard to be followed (e.g., c++98, c++11, c++14, c++17, c++20). | ||
Standard: c++20 | ||
# Add a space before opening parentheses in control statements. | ||
SpaceBeforeParens: ControlStatements | ||
# Do not add a space before square brackets. | ||
SpaceBeforeSquareBrackets: false | ||
# Width of a tab character. | ||
TabWidth: 4 | ||
# Always use tabs for indentation. | ||
UseTab: Always |
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,5 +1,6 @@ | ||
.gitattributes text | ||
.gitignore text | ||
.clang-format text | ||
*.cpp text | ||
*.h text | ||
*.bat eol=crlf | ||
|
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