Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Style the engine is written in. Without this file clang-format falls back to
# LLVM defaults, and code_formatter.sh then rewrites every source file in the
# repository -- so this exists as much to prevent a spurious whole-tree diff as
# to describe the style.
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
BreakBeforeBraces: Allman
AccessModifierOffset: -1
PointerAlignment: Right
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
SpacesBeforeTrailingComments: 2
IndentCaseLabels: true
SortIncludes: true
AlignConsecutiveMacros: false
AlignEscapedNewlines: Left
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Line endings are LF everywhere, on every platform.
#
# Git's default on Windows is to convert text files to CRLF on checkout, and this
# tree cannot take that. A .result file is compared byte for byte against what the
# server wrote, so a CRLF copy differs on every line of every test; mysqltest reads
# .test and .inc files a line at a time and a trailing \r becomes part of the last
# argument on the line; and mtr's own parsers reject a "blank" line that carries a
# lone \r. None of it fails loudly enough to be obvious -- it reads as the engine
# being broken on Windows.
#
# Declaring it here rather than relying on each contributor's core.autocrlf is what
# makes a Windows clone identical to a Linux one without anyone configuring anything.
* text=auto eol=lf

# Binary, so never touched.
*.png binary
*.jpg binary
*.pdf binary
*.zip binary
*.gz binary
Loading
Loading