
3 changed files with 123 additions and 78 deletions
@ -1,63 +1,90 @@
|
||||
--- |
||||
Language: Cpp |
||||
# BasedOnStyle: LLVM |
||||
AccessModifierOffset: -2 |
||||
AlignAfterOpenBracket: true |
||||
AlignEscapedNewlinesLeft: false |
||||
# BasedOnStyle: Google |
||||
AccessModifierOffset: -1 |
||||
AlignAfterOpenBracket: Align |
||||
AlignConsecutiveAssignments: false |
||||
AlignConsecutiveDeclarations: false |
||||
AlignEscapedNewlinesLeft: true |
||||
AlignOperands: true |
||||
AlignTrailingComments: true |
||||
AllowAllParametersOfDeclarationOnNextLine: true |
||||
AllowShortBlocksOnASingleLine: false |
||||
AllowShortCaseLabelsOnASingleLine: false |
||||
AllowShortIfStatementsOnASingleLine: false |
||||
AllowShortLoopsOnASingleLine: false |
||||
AllowShortFunctionsOnASingleLine: All |
||||
AlwaysBreakAfterDefinitionReturnType: false |
||||
AlwaysBreakTemplateDeclarations: false |
||||
AlwaysBreakBeforeMultilineStrings: false |
||||
AllowShortIfStatementsOnASingleLine: true |
||||
AllowShortLoopsOnASingleLine: true |
||||
AlwaysBreakAfterDefinitionReturnType: None |
||||
AlwaysBreakAfterReturnType: None |
||||
AlwaysBreakBeforeMultilineStrings: true |
||||
AlwaysBreakTemplateDeclarations: true |
||||
BinPackArguments: true |
||||
BinPackParameters: true |
||||
BraceWrapping: |
||||
AfterClass: false |
||||
AfterControlStatement: false |
||||
AfterEnum: false |
||||
AfterFunction: false |
||||
AfterNamespace: false |
||||
AfterObjCDeclaration: false |
||||
AfterStruct: false |
||||
AfterUnion: false |
||||
BeforeCatch: false |
||||
BeforeElse: false |
||||
IndentBraces: false |
||||
BreakBeforeBinaryOperators: None |
||||
BreakBeforeBraces: Allman |
||||
BreakBeforeTernaryOperators: true |
||||
BreakConstructorInitializersBeforeComma: false |
||||
BinPackParameters: true |
||||
BinPackArguments: true |
||||
ColumnLimit: 120 |
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: false |
||||
ColumnLimit: 80 |
||||
CommentPragmas: '^ IWYU pragma:' |
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: true |
||||
ConstructorInitializerIndentWidth: 4 |
||||
DerivePointerAlignment: false |
||||
ContinuationIndentWidth: 4 |
||||
Cpp11BracedListStyle: true |
||||
DerivePointerAlignment: true |
||||
DisableFormat: false |
||||
ExperimentalAutoDetectBinPacking: false |
||||
IndentCaseLabels: false |
||||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
||||
IncludeCategories: |
||||
- Regex: '^<.*\.h>' |
||||
Priority: 1 |
||||
- Regex: '^<.*' |
||||
Priority: 2 |
||||
- Regex: '.*' |
||||
Priority: 3 |
||||
IndentCaseLabels: true |
||||
IndentWidth: 4 |
||||
IndentWrappedFunctionNames: false |
||||
IndentFunctionDeclarationAfterType: false |
||||
KeepEmptyLinesAtTheStartOfBlocks: false |
||||
MacroBlockBegin: '' |
||||
MacroBlockEnd: '' |
||||
MaxEmptyLinesToKeep: 1 |
||||
KeepEmptyLinesAtTheStartOfBlocks: true |
||||
NamespaceIndentation: None |
||||
ObjCBlockIndentWidth: 2 |
||||
ObjCSpaceAfterProperty: false |
||||
ObjCSpaceBeforeProtocolList: true |
||||
PenaltyBreakBeforeFirstCallParameter: 19 |
||||
ObjCSpaceBeforeProtocolList: false |
||||
PenaltyBreakBeforeFirstCallParameter: 1 |
||||
PenaltyBreakComment: 300 |
||||
PenaltyBreakString: 1000 |
||||
PenaltyBreakFirstLessLess: 120 |
||||
PenaltyBreakString: 1000 |
||||
PenaltyExcessCharacter: 1000000 |
||||
PenaltyReturnTypeOnItsOwnLine: 60 |
||||
PointerAlignment: Right |
||||
SpacesBeforeTrailingComments: 1 |
||||
Cpp11BracedListStyle: true |
||||
Standard: Cpp11 |
||||
IndentWidth: 4 |
||||
TabWidth: 4 |
||||
UseTab: Never |
||||
BreakBeforeBraces: Allman |
||||
SpacesInParentheses: false |
||||
SpacesInSquareBrackets: false |
||||
SpacesInAngles: false |
||||
SpaceInEmptyParentheses: false |
||||
SpacesInCStyleCastParentheses: false |
||||
PenaltyReturnTypeOnItsOwnLine: 200 |
||||
PointerAlignment: Left |
||||
ReflowComments: true |
||||
SortIncludes: true |
||||
SpaceAfterCStyleCast: false |
||||
SpacesInContainerLiterals: true |
||||
SpaceBeforeAssignmentOperators: true |
||||
ContinuationIndentWidth: 4 |
||||
CommentPragmas: '^ IWYU pragma:' |
||||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
||||
SpaceBeforeParens: ControlStatements |
||||
DisableFormat: false |
||||
SpaceInEmptyParentheses: false |
||||
SpacesBeforeTrailingComments: 2 |
||||
SpacesInAngles: false |
||||
SpacesInContainerLiterals: true |
||||
SpacesInCStyleCastParentheses: false |
||||
SpacesInParentheses: false |
||||
SpacesInSquareBrackets: false |
||||
Standard: Auto |
||||
TabWidth: 4 |
||||
UseTab: Never |
||||
... |
||||
|
||||
|
@ -1,24 +1,24 @@
|
||||
#! /usr/bin/env python |
||||
# encoding: utf-8 |
||||
CC = 'clang' |
||||
|
||||
|
||||
def options(opt): |
||||
opt.load('nasm') |
||||
opt.load('compiler_c') |
||||
|
||||
|
||||
def configure(conf): |
||||
conf.load('nasm') |
||||
conf.load('compiler_c') |
||||
conf.check_cc(header_name='openssl/sha.h') |
||||
|
||||
|
||||
def build(bld): |
||||
bld.program( |
||||
source='sins.c', |
||||
target='sins', |
||||
cflags=['-std=gnu11'], |
||||
lib=['ssl', 'crypto'] |
||||
) |
||||
bld(features='asm', source='scrap.asm', target='scrap') |
||||
#! /usr/bin/env python |
||||
# encoding: utf-8 |
||||
CC = 'clang' |
||||
|
||||
|
||||
def options(opt): |
||||
opt.load('nasm') |
||||
opt.load('compiler_c') |
||||
|
||||
|
||||
def configure(conf): |
||||
conf.load('nasm') |
||||
conf.load('compiler_c') |
||||
conf.check_cc(header_name='openssl/sha.h') |
||||
|
||||
|
||||
def build(bld): |
||||
bld.program( |
||||
source='sins.c', |
||||
target='sins', |
||||
cflags=['-std=gnu11'], |
||||
lib=['ssl', 'crypto'] |
||||
) |
||||
bld(features='asm', source='scrap.asm', target='scrap') |
||||
|
Loading…
Reference in new issue