1
1
#
2
- # "$Id$"
3
- #
4
2
# clang-format control file for the FLTK project.
5
3
#
6
4
# Copyright 2017 by Bill Spitzak and others.
9
7
# the file "COPYING" which should have been included with this file. If this
10
8
# file is missing or damaged, see the license at:
11
9
#
12
- # http ://www.fltk.org/COPYING.php
10
+ # https ://www.fltk.org/COPYING.php
13
11
#
14
- # Please report all bugs and problems on the following page :
12
+ # Please see the following page on how to report bugs and issues :
15
13
#
16
- # http ://www.fltk.org/str .php
14
+ # https ://www.fltk.org/bugs .php
17
15
#
18
16
#
19
17
# Important notes:
46
44
47
45
# FLTK settings (currently experimental).
48
46
49
- BasedOnStyle : LLVM
47
+ BasedOnStyle : LLVM
50
48
51
49
# The Language tag marks C++ options
52
50
53
- # Language: Cpp
51
+ # Language: Cpp
54
52
55
53
# The following options override the LLVM style definitions, if set.
56
54
@@ -65,61 +63,61 @@ BasedOnStyle: LLVM
65
63
# UseTab can be set to 'Never' (default) or 'ForIndentation' to avoid
66
64
# this annoying bug of clang-format.
67
65
#
68
- # UseTab: Always
69
- UseTab : ForIndentation
66
+ # UseTab: Always
67
+ UseTab : ForIndentation
70
68
71
69
# Should we extend code lines beyond 80 columns ?
72
70
# Default: 80
73
- ColumnLimit : 120
71
+ ColumnLimit : 120
74
72
75
73
# The FLTK CMP requires that case labels are indented (LLVM: false)
76
- IndentCaseLabels : true
74
+ IndentCaseLabels : true
77
75
78
76
# There are sometimes more than 1 empty lines; should we keep 2 or more ?
79
77
# LLVM default is 1.
80
78
81
- MaxEmptyLinesToKeep : 2
79
+ MaxEmptyLinesToKeep : 2
82
80
83
81
# Present FLTK source code contains some short blocks and if statements
84
82
# in one line, but we should better make it consistent and NOT use the
85
83
# following "Allow..." statements (leave them commented out):
86
84
#
87
85
# LLVM default values:
88
- # AllowShortBlocksOnASingleLine: false
89
- # AllowShortFunctionsOnASingleLine: All
90
- # AllowShortIfStatementsOnASingleLine: false
91
- # AllowShortLoopsOnASingleLine: false
86
+ # AllowShortBlocksOnASingleLine: false
87
+ # AllowShortFunctionsOnASingleLine: All
88
+ # AllowShortIfStatementsOnASingleLine: false
89
+ # AllowShortLoopsOnASingleLine: false
92
90
#
93
91
# FLTK values:
94
- # AllowShortBlocksOnASingleLine: true
95
- # AllowShortIfStatementsOnASingleLine: true
92
+ # AllowShortBlocksOnASingleLine: true
93
+ # AllowShortIfStatementsOnASingleLine: true
96
94
97
95
# Short inline functions in header files are an exception to the above "rule":
98
96
99
- AllowShortFunctionsOnASingleLine : Inline
97
+ AllowShortFunctionsOnASingleLine : Inline
100
98
101
99
# The following is particularly useful for macros with continuation lines.
102
- # LLVM default: AlignEscapedNewlinesLeft: false
100
+ # LLVM default: AlignEscapedNewlinesLeft: false
103
101
104
- AlignEscapedNewlinesLeft : true
102
+ AlignEscapedNewlinesLeft : true
105
103
106
104
# Include files should be left as-is until we know we can sort them
107
105
# without any bad side effects (LLVM: true)
108
106
109
- SortIncludes : false
107
+ SortIncludes : false
110
108
111
109
# Multiple constructor initializers must be on consecutive lines:
112
110
113
- BreakConstructorInitializersBeforeComma : true
111
+ BreakConstructorInitializersBeforeComma : true
114
112
115
113
# Constructor initializers will be indented by 2 spaces (LLVM: 4):
116
114
117
- ConstructorInitializerIndentWidth : 2
115
+ ConstructorInitializerIndentWidth : 2
118
116
119
117
# Continuation lines (if automatically wrapped) may be indented differently.
120
118
# This does not apply to function call arguments which are aligned to the
121
119
# opening bracket. LLVM (default): 4
122
- # ContinuationIndentWidth: 2
120
+ # ContinuationIndentWidth: 2
123
121
124
122
# Most of FLTK's code uses 'void *p' as opposed to 'void* p'.
125
123
# This is particularly useful in combined declarations like:
@@ -131,9 +129,5 @@ ConstructorInitializerIndentWidth: 2
131
129
# Note: this also applies to references like 'int &w, int &h', for instance
132
130
# in function parameter lists.
133
131
134
- DerivePointerAlignment : false
135
- PointerAlignment : Right
136
-
137
- #
138
- # End of "$Id$".
139
- #
132
+ DerivePointerAlignment : false
133
+ PointerAlignment : Right
0 commit comments