Mercurial > hg > CbC > CbC_gcc
comparison contrib/clang-format @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
12 # | 12 # |
13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 |
16 # clang-format 3.8+ (Mon Nov 16) is required | 16 # clang-format 7.0.1 is required |
17 # | 17 # |
18 # To utilize the tool to lines just touched by a patch, use | 18 # To utilize the tool to lines just touched by a patch, use |
19 # clang-format-diff.py script, which can be downloaded here: | 19 # clang-format-diff script that is usually also packaged with clang-format. |
20 # https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py | 20 # |
21 # Example of usage: | |
22 # git diff -U0 --no-color | clang-format-diff -p1 | |
23 # (here the tool will generate a patch) | |
24 # git diff -U0 --no-color | clang-format-diff -p1 -i | |
25 # (modifications are applied) | |
21 | 26 |
22 --- | 27 --- |
23 Language: Cpp | 28 Language: Cpp |
24 AccessModifierOffset: -2 | 29 AccessModifierOffset: -2 |
25 AlwaysBreakAfterDefinitionReturnType: All | 30 AlwaysBreakAfterReturnType: TopLevel |
26 BinPackArguments: true | 31 BinPackArguments: true |
27 BinPackParameters: true | 32 BinPackParameters: true |
28 BraceWrapping: | 33 BraceWrapping: |
29 AfterClass: true | 34 AfterClass: true |
30 AfterControlStatement: true | 35 AfterControlStatement: true |
35 AfterStruct: true | 40 AfterStruct: true |
36 AfterUnion: true | 41 AfterUnion: true |
37 BeforeCatch: true | 42 BeforeCatch: true |
38 BeforeElse: true | 43 BeforeElse: true |
39 IndentBraces: true | 44 IndentBraces: true |
45 SplitEmptyFunction: false | |
40 BreakBeforeBinaryOperators: All | 46 BreakBeforeBinaryOperators: All |
41 BreakBeforeBraces: Custom | 47 BreakBeforeBraces: Custom |
42 BreakBeforeTernaryOperators: true | 48 BreakBeforeTernaryOperators: true |
43 ColumnLimit: 80 | 49 ColumnLimit: 80 |
44 ConstructorInitializerIndentWidth: 2 | 50 ConstructorInitializerIndentWidth: 2 |
134 SortIncludes: false | 140 SortIncludes: false |
135 SpaceAfterCStyleCast: true | 141 SpaceAfterCStyleCast: true |
136 SpaceBeforeParens: Always | 142 SpaceBeforeParens: Always |
137 SpacesBeforeTrailingComments: 1 | 143 SpacesBeforeTrailingComments: 1 |
138 UseTab: Always | 144 UseTab: Always |
145 AlignEscapedNewlines: Right | |
146 AlignTrailingComments: true | |
147 AllowShortFunctionsOnASingleLine: All | |
148 AlwaysBreakTemplateDeclarations: MultiLine | |
149 KeepEmptyLinesAtTheStartOfBlocks: false | |
150 Standard: Cpp03 |