Skip to content

Commit 04bac0a

Browse files
committed
license, gitignore, etc.
1 parent 5e99fa9 commit 04bac0a

File tree

3 files changed

+106
-7
lines changed

3 files changed

+106
-7
lines changed

.clang-format

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: 0
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: true
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlinesLeft: true
8+
AlignOperands: true
9+
AlignTrailingComments: true
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AllowShortBlocksOnASingleLine: true
12+
AllowShortCaseLabelsOnASingleLine: true
13+
AllowShortFunctionsOnASingleLine: All
14+
AllowShortIfStatementsOnASingleLine: false
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakBeforeMultilineStrings: false
19+
AlwaysBreakTemplateDeclarations: true
20+
BinPackArguments: false
21+
BinPackParameters: false
22+
BraceWrapping:
23+
AfterClass: true
24+
AfterControlStatement: true
25+
AfterEnum: true
26+
AfterFunction: true
27+
AfterNamespace: false
28+
AfterObjCDeclaration: true
29+
AfterStruct: true
30+
AfterUnion: true
31+
BeforeCatch: true
32+
BeforeElse: true
33+
IndentBraces: false
34+
BreakBeforeBinaryOperators: None
35+
BreakBeforeBraces: Custom
36+
BreakBeforeTernaryOperators: true
37+
BreakConstructorInitializersBeforeComma: false
38+
ColumnLimit: 100
39+
CommentPragmas: '^ IWYU pragma:'
40+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
41+
ConstructorInitializerIndentWidth: 4
42+
ContinuationIndentWidth: 4
43+
Cpp11BracedListStyle: true
44+
DerivePointerAlignment: false
45+
DisableFormat: false
46+
ExperimentalAutoDetectBinPacking: false
47+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
48+
IncludeCategories:
49+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
50+
Priority: 2
51+
- Regex: '^(<|"(gtest|isl|json)/)'
52+
Priority: 3
53+
- Regex: '.*'
54+
Priority: 1
55+
IndentCaseLabels: false
56+
IndentWidth: 4
57+
IndentWrappedFunctionNames: false
58+
KeepEmptyLinesAtTheStartOfBlocks: true
59+
MacroBlockBegin: ''
60+
MacroBlockEnd: ''
61+
MaxEmptyLinesToKeep: 1
62+
NamespaceIndentation: None
63+
ObjCBlockIndentWidth: 2
64+
ObjCSpaceAfterProperty: false
65+
ObjCSpaceBeforeProtocolList: true
66+
PenaltyBreakBeforeFirstCallParameter: 19
67+
PenaltyBreakComment: 300
68+
PenaltyBreakFirstLessLess: 120
69+
PenaltyBreakString: 1000
70+
PenaltyExcessCharacter: 1000000
71+
PenaltyReturnTypeOnItsOwnLine: 60
72+
PointerAlignment: Left
73+
ReflowComments: true
74+
SortIncludes: false
75+
SpaceAfterCStyleCast: false
76+
# SpaceAfterTemplateKeyword: true
77+
SpaceBeforeAssignmentOperators: true
78+
SpaceBeforeParens: Never
79+
SpaceInEmptyParentheses: false
80+
SpacesBeforeTrailingComments: 1
81+
SpacesInAngles: false
82+
SpacesInContainerLiterals: true
83+
SpacesInCStyleCastParentheses: false
84+
SpacesInParentheses: false
85+
SpacesInSquareBrackets: false
86+
Standard: Cpp11
87+
TabWidth: 8
88+
UseTab: Never
89+
...
90+

.gitignore

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Prerequisites
2-
*.d
3-
41
# Compiled Object files
52
*.slo
63
*.lo
@@ -18,7 +15,6 @@
1815

1916
# Fortran module files
2017
*.mod
21-
*.smod
2218

2319
# Compiled Static libraries
2420
*.lai
@@ -30,3 +26,18 @@
3026
*.exe
3127
*.out
3228
*.app
29+
30+
# vim tags
31+
tags
32+
.tags
33+
.*.swp
34+
35+
# Editors
36+
.vscode
37+
38+
# build-in-source directory
39+
build
40+
41+
# doc directory
42+
docBin
43+
_build

LICENSE LICENSE.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
MIT License
2-
3-
Copyright (c) 2018 ROCm Software Platform
1+
Copyright © 2018 Advanced Micro Devices, Inc.
42

53
Permission is hereby granted, free of charge, to any person obtaining a copy
64
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)