forked from mobile-shell/mosh
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a clang-format file and prepare for clang-formatting
Create .clang-format to describe the current C++ style used in Mosh. Mark one carefully-formatted array with `// clang-format off`. Also turn off clang-format in src/crypto/ocb_internal.cc, since it was imported almost wholesale from another project and is written in a style different from the rest of Mosh.
- Loading branch information
1 parent
f2904f9
commit 77a6730
Showing
3 changed files
with
27 additions
and
0 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,23 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Mozilla | ||
ColumnLimit: 116 | ||
SpacesInParentheses: true | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
SpaceBeforeCpp11BracedList: true | ||
BreakBeforeBinaryOperators: All | ||
Cpp11BracedListStyle: true | ||
AllowShortBlocksOnASingleLine: Always | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: Never | ||
AfterFunction: true | ||
AfterStruct: true | ||
AfterEnum: true | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
BreakConstructorInitializers: BeforeColon | ||
... |
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 |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
/ Comments are welcome: Ted Krovetz <[email protected]> - Dedicated to Laurel K | ||
/------------------------------------------------------------------------- */ | ||
|
||
// clang-format off | ||
|
||
#include "src/include/config.h" | ||
|
||
/* This module implements the ae.h interface for OpenSSL, Apple Common | ||
|