Commit e9af5c5
STYLE: Reduce indentation else after return
Reduce indentation where possible and where it makes understanding code easier.
Early exit is one of the suggested enforcements of that. Please do not use else
or else if after something that interrupts control flow - like return, break,
continue, throw.
clang-tidy readability-else-after-return1 parent bc26163 commit e9af5c5
File tree
395 files changed
+2671
-3783
lines changed- Examples
- RegistrationITKv4
- Statistics
- Modules
- Bridge/VTK/src
- Core
- Common
- include
- src
- test
- FiniteDifference/include
- ImageFunction
- include
- test
- Mesh/include
- QuadEdgeMesh/include
- SpatialObjects
- include
- src
- test
- TestKernel/include
- Transform
- include
- test
- Filtering
- AntiAlias/include
- BiasCorrection/include
- BinaryMathematicalMorphology/include
- Convolution/test
- CurvatureFlow/include
- Denoising
- include
- test
- DisplacementField/include
- DistanceMap
- include
- test
- FFT/test
- FastMarching
- include
- test
- ImageFeature
- include
- test
- ImageFilterBase/include
- ImageFrequency
- include
- test
- ImageGradient
- include
- test
- ImageGrid
- include
- test
- ImageIntensity
- include
- test
- ImageLabel/test
- ImageNoise/include
- ImageSources/include
- ImageStatistics
- include
- test
- LabelMap
- include
- src
- test
- MathematicalMorphology
- include
- test
- Path
- include
- src
- test
- QuadEdgeMeshFiltering
- include
- test
- Smoothing
- include
- test
- Thresholding/include
- IO
- BMP/src
- Bruker/src
- CSV/include
- HDF5/src
- IPL/src
- ImageBase
- include
- src
- test
- JPEG2000/src
- MRC/src
- MeshGifti/src
- MeshVTK/src
- Meta/test
- NIFTI
- src
- test
- NRRD
- src
- test
- PNG/test
- RAW/test
- SpatialObjects/test
- Stimulate/src
- TIFF
- src
- test
- TransformBase/src
- TransformHDF5
- src
- test
- VTK/src
- XML/src
- Numerics
- Eigen/include
- NarrowBand/test
- Optimizersv4
- include
- src
- test
- Optimizers
- src
- test
- Polynomials/include
- Statistics
- include
- src
- test
- Registration
- Common
- include
- test
- Metricsv4
- include
- test
- PDEDeformable/include
- RegistrationMethodsv4
- include
- test
- Segmentation
- ConnectedComponents
- include
- test
- DeformableMesh/include
- KLMRegionGrowing/include
- LabelVoting/include
- LevelSetsv4
- include
- test
- LevelSets
- include
- test
- MarkovRandomFieldsClassifiers/include
- Voronoi/include
- Watersheds/include
- Video
- Core
- include
- src
- IO/include
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
395 files changed
+2671
-3783
lines changedLines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 150 | + | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 87 | + | |
| 88 | + | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 162 | + | |
| 163 | + | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 125 | + | |
| 126 | + | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
141 | | - | |
| 139 | + | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
165 | | - | |
| 163 | + | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
| |||
329 | 327 | | |
330 | 328 | | |
331 | 329 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 330 | + | |
| 331 | + | |
336 | 332 | | |
337 | 333 | | |
338 | 334 | | |
| |||
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
165 | 174 | | |
166 | 175 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 176 | + | |
| 177 | + | |
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 182 | + | |
| 183 | + | |
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
| |||
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 101 | + | |
104 | 102 | | |
105 | | - | |
106 | 103 | | |
| 104 | + | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
0 commit comments