rb-gsl 1.16.0.4 → 1.16.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -0
- data/.travis.yml +24 -0
- data/AUTHORS +6 -0
- data/COPYING +341 -339
- data/ChangeLog +608 -587
- data/Gemfile +4 -0
- data/README.md +77 -0
- data/Rakefile +14 -33
- data/THANKS +1 -1
- data/examples/blas/blas.rb +1 -1
- data/examples/bspline.rb +3 -3
- data/examples/complex/functions.rb +4 -4
- data/examples/complex/mul.rb +1 -1
- data/examples/const/physconst.rb +4 -4
- data/examples/const/travel.rb +4 -4
- data/examples/eigen/nonsymmv.rb +1 -1
- data/examples/eigen/qhoscillator.rb +3 -3
- data/examples/fft/radix2.rb +1 -1
- data/examples/fft/real-halfcomplex.rb +3 -3
- data/examples/fft/real-halfcomplex2.rb +3 -3
- data/examples/fit/expfit.rb +1 -1
- data/examples/fit/multifit.rb +1 -1
- data/examples/fit/ndlinear.rb +44 -44
- data/examples/fit/nonlinearfit.rb +1 -1
- data/examples/fit/wlinear.rb +3 -3
- data/examples/function/function.rb +1 -1
- data/examples/function/min.rb +1 -1
- data/examples/function/synchrotron.rb +2 -2
- data/examples/gallery/koch.rb +1 -1
- data/examples/histogram/cauchy.rb +2 -2
- data/examples/histogram/exponential.rb +1 -1
- data/examples/histogram/histo3d.rb +1 -1
- data/examples/histogram/histogram-pdf.rb +2 -2
- data/examples/histogram/xexp.rb +1 -1
- data/examples/integration/ahmed.rb +2 -2
- data/examples/integration/cosmology.rb +7 -7
- data/examples/integration/friedmann.rb +4 -4
- data/examples/integration/qng.rb +1 -1
- data/examples/interp/demo.rb +2 -2
- data/examples/linalg/LQ_solve.rb +1 -1
- data/examples/linalg/LU.rb +1 -1
- data/examples/linalg/LU2.rb +1 -1
- data/examples/linalg/LU_narray.rb +1 -1
- data/examples/linalg/PTLQ.rb +1 -1
- data/examples/linalg/QRPT.rb +1 -1
- data/examples/linalg/chol.rb +1 -1
- data/examples/linalg/chol_narray.rb +1 -1
- data/examples/linalg/complex.rb +1 -1
- data/examples/math/elementary.rb +1 -1
- data/examples/math/functions.rb +1 -1
- data/examples/math/inf_nan.rb +1 -1
- data/examples/math/minmax.rb +1 -1
- data/examples/math/power.rb +1 -1
- data/examples/math/test.rb +1 -1
- data/examples/min.rb +1 -1
- data/examples/multimin/bundle.rb +1 -1
- data/examples/multimin/cqp.rb +17 -17
- data/examples/multiroot/fsolver3.rb +1 -1
- data/examples/odeiv/binarysystem.rb +12 -12
- data/examples/odeiv/demo.rb +3 -3
- data/examples/odeiv/frei1.rb +7 -7
- data/examples/odeiv/frei2.rb +4 -4
- data/examples/odeiv/oscillator.rb +1 -1
- data/examples/odeiv/sedov.rb +3 -3
- data/examples/odeiv/whitedwarf.rb +11 -11
- data/examples/permutation/ex1.rb +2 -2
- data/examples/permutation/permutation.rb +1 -1
- data/examples/poly/demo.rb +1 -1
- data/examples/random/diffusion.rb +1 -1
- data/examples/random/generator.rb +2 -2
- data/examples/random/randomwalk.rb +3 -3
- data/examples/random/rng.rb +1 -1
- data/examples/roots/bisection.rb +1 -1
- data/examples/roots/brent.rb +1 -1
- data/examples/roots/demo.rb +1 -1
- data/examples/roots/newton.rb +2 -2
- data/examples/roots/recombination.gp +0 -1
- data/examples/sf/hyperg.rb +1 -1
- data/examples/sf/sphbessel.rb +1 -1
- data/examples/sort/sort.rb +1 -1
- data/examples/tamu_anova.rb +4 -4
- data/examples/vector/add.rb +1 -1
- data/examples/vector/decimate.rb +1 -1
- data/examples/vector/gnuplot.rb +8 -8
- data/examples/vector/vector.rb +2 -2
- data/examples/wavelet/wavelet1.rb +1 -1
- data/ext/{gsl → gsl_native}/alf.c +9 -9
- data/ext/{gsl → gsl_native}/array.c +64 -151
- data/ext/{gsl → gsl_native}/array_complex.c +61 -63
- data/ext/{gsl → gsl_native}/blas.c +0 -0
- data/ext/{gsl → gsl_native}/blas1.c +32 -32
- data/ext/{gsl → gsl_native}/blas2.c +54 -58
- data/ext/{gsl → gsl_native}/blas3.c +54 -54
- data/ext/{gsl → gsl_native}/block.c +3 -6
- data/ext/{gsl/block_source.c → gsl_native/block_source.h} +109 -111
- data/ext/gsl_native/bspline.c +122 -0
- data/ext/{gsl → gsl_native}/bundle.c +0 -0
- data/ext/{gsl → gsl_native}/cdf.c +76 -88
- data/ext/{gsl → gsl_native}/cheb.c +74 -85
- data/ext/{gsl → gsl_native}/combination.c +9 -16
- data/ext/{gsl → gsl_native}/common.c +7 -37
- data/ext/{gsl → gsl_native}/complex.c +113 -115
- data/ext/gsl_native/const.c +331 -0
- data/ext/{gsl → gsl_native}/const_additional.c +12 -33
- data/ext/gsl_native/cqp.c +283 -0
- data/ext/{gsl → gsl_native}/deriv.c +22 -30
- data/ext/{gsl → gsl_native}/dht.c +20 -28
- data/ext/{gsl → gsl_native}/diff.c +23 -25
- data/ext/{gsl → gsl_native}/dirac.c +44 -45
- data/ext/{gsl → gsl_native}/eigen.c +1031 -1082
- data/ext/{gsl → gsl_native}/error.c +13 -13
- data/ext/{gsl → gsl_native}/extconf.rb +5 -13
- data/ext/{gsl → gsl_native}/fft.c +192 -198
- data/ext/{gsl → gsl_native}/fit.c +16 -16
- data/ext/gsl_native/fresnel.c +312 -0
- data/ext/{gsl → gsl_native}/function.c +29 -35
- data/ext/{gsl → gsl_native}/geometry.c +15 -15
- data/ext/{gsl → gsl_native}/graph.c +37 -87
- data/ext/{gsl → gsl_native}/gsl.c +10 -23
- data/ext/{gsl → gsl_native}/gsl_narray.c +15 -24
- data/ext/{gsl → gsl_native}/histogram.c +123 -150
- data/ext/{gsl → gsl_native}/histogram2d.c +71 -96
- data/ext/{gsl → gsl_native}/histogram3d.c +72 -72
- data/ext/{gsl → gsl_native}/histogram3d_source.c +195 -196
- data/ext/{gsl → gsl_native}/histogram_find.c +31 -33
- data/ext/{gsl → gsl_native}/histogram_oper.c +43 -52
- data/ext/{gsl → gsl_native}/ieee.c +7 -15
- data/ext/{gsl → gsl_native}/include/rb_gsl.h +0 -7
- data/ext/{gsl → gsl_native}/include/rb_gsl_array.h +15 -25
- data/ext/{gsl → gsl_native}/include/rb_gsl_cheb.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_common.h +44 -52
- data/ext/{gsl → gsl_native}/include/rb_gsl_complex.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_const.h +0 -5
- data/ext/{gsl → gsl_native}/include/rb_gsl_dirac.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_eigen.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_fft.h +0 -3
- data/ext/{gsl → gsl_native}/include/rb_gsl_fit.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_function.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_graph.h +2 -2
- data/ext/{gsl → gsl_native}/include/rb_gsl_histogram.h +8 -8
- data/ext/{gsl → gsl_native}/include/rb_gsl_histogram3d.h +50 -50
- data/ext/{gsl → gsl_native}/include/rb_gsl_integration.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_interp.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_linalg.h +0 -1
- data/ext/{gsl → gsl_native}/include/rb_gsl_math.h +0 -4
- data/ext/{gsl → gsl_native}/include/rb_gsl_odeiv.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_poly.h +3 -3
- data/ext/{gsl → gsl_native}/include/rb_gsl_rational.h +1 -1
- data/ext/{gsl → gsl_native}/include/rb_gsl_rng.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_root.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_sf.h +39 -43
- data/ext/{gsl → gsl_native}/include/rb_gsl_statistics.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_tensor.h +0 -0
- data/ext/{gsl → gsl_native}/include/rb_gsl_with_narray.h +0 -0
- data/ext/{gsl → gsl_native}/include/templates_off.h +0 -0
- data/ext/{gsl → gsl_native}/include/templates_on.h +1 -1
- data/ext/{gsl → gsl_native}/integration.c +160 -183
- data/ext/{gsl → gsl_native}/interp.c +23 -31
- data/ext/gsl_native/jacobi.c +733 -0
- data/ext/{gsl → gsl_native}/linalg.c +448 -576
- data/ext/{gsl → gsl_native}/linalg_complex.c +84 -98
- data/ext/{gsl → gsl_native}/math.c +45 -63
- data/ext/{gsl → gsl_native}/matrix.c +4 -6
- data/ext/{gsl → gsl_native}/matrix_complex.c +111 -114
- data/ext/{gsl → gsl_native}/matrix_double.c +74 -77
- data/ext/{gsl → gsl_native}/matrix_int.c +49 -50
- data/ext/{gsl/matrix_source.c → gsl_native/matrix_source.h} +280 -302
- data/ext/{gsl → gsl_native}/min.c +43 -74
- data/ext/{gsl → gsl_native}/monte.c +45 -59
- data/ext/{gsl → gsl_native}/multifit.c +138 -147
- data/ext/{gsl → gsl_native}/multimin.c +55 -83
- data/ext/{gsl → gsl_native}/multimin_fsdf.c +15 -15
- data/ext/{gsl → gsl_native}/multiroots.c +61 -64
- data/ext/{gsl → gsl_native}/multiset.c +3 -7
- data/ext/{gsl → gsl_native}/ndlinear.c +320 -321
- data/ext/{gsl → gsl_native}/nmf.c +11 -11
- data/ext/{gsl → gsl_native}/nmf_wrap.c +1 -1
- data/ext/{gsl → gsl_native}/ntuple.c +13 -13
- data/ext/{gsl → gsl_native}/odeiv.c +95 -106
- data/ext/gsl_native/ool.c +879 -0
- data/ext/{gsl → gsl_native}/permutation.c +36 -34
- data/ext/{gsl → gsl_native}/poly.c +2 -5
- data/ext/{gsl → gsl_native}/poly2.c +6 -6
- data/ext/{gsl/poly_source.c → gsl_native/poly_source.h} +232 -275
- data/ext/{gsl → gsl_native}/qrng.c +6 -17
- data/ext/{gsl → gsl_native}/randist.c +218 -243
- data/ext/{gsl → gsl_native}/rational.c +9 -9
- data/ext/{gsl → gsl_native}/rng.c +29 -45
- data/ext/{gsl → gsl_native}/root.c +43 -43
- data/ext/{gsl → gsl_native}/sf.c +163 -197
- data/ext/{gsl → gsl_native}/sf_airy.c +0 -0
- data/ext/{gsl → gsl_native}/sf_bessel.c +6 -6
- data/ext/{gsl → gsl_native}/sf_clausen.c +0 -0
- data/ext/{gsl → gsl_native}/sf_coulomb.c +39 -39
- data/ext/{gsl → gsl_native}/sf_coupling.c +29 -29
- data/ext/{gsl → gsl_native}/sf_dawson.c +0 -0
- data/ext/{gsl → gsl_native}/sf_debye.c +0 -9
- data/ext/{gsl → gsl_native}/sf_dilog.c +0 -0
- data/ext/{gsl → gsl_native}/sf_elementary.c +2 -2
- data/ext/{gsl → gsl_native}/sf_ellint.c +42 -42
- data/ext/{gsl → gsl_native}/sf_elljac.c +2 -2
- data/ext/{gsl → gsl_native}/sf_erfc.c +0 -4
- data/ext/{gsl → gsl_native}/sf_exp.c +2 -2
- data/ext/{gsl → gsl_native}/sf_expint.c +1 -11
- data/ext/{gsl → gsl_native}/sf_fermi_dirac.c +0 -0
- data/ext/{gsl → gsl_native}/sf_gamma.c +1 -5
- data/ext/{gsl → gsl_native}/sf_gegenbauer.c +0 -0
- data/ext/{gsl → gsl_native}/sf_hyperg.c +0 -0
- data/ext/{gsl → gsl_native}/sf_laguerre.c +3 -3
- data/ext/{gsl → gsl_native}/sf_lambert.c +0 -0
- data/ext/{gsl → gsl_native}/sf_legendre.c +0 -0
- data/ext/{gsl → gsl_native}/sf_log.c +3 -3
- data/ext/gsl_native/sf_mathieu.c +235 -0
- data/ext/{gsl → gsl_native}/sf_power.c +0 -0
- data/ext/{gsl → gsl_native}/sf_psi.c +2 -11
- data/ext/{gsl → gsl_native}/sf_synchrotron.c +0 -0
- data/ext/{gsl → gsl_native}/sf_transport.c +0 -0
- data/ext/{gsl → gsl_native}/sf_trigonometric.c +3 -3
- data/ext/{gsl → gsl_native}/sf_zeta.c +0 -4
- data/ext/{gsl → gsl_native}/signal.c +60 -64
- data/ext/{gsl → gsl_native}/siman.c +36 -40
- data/ext/{gsl → gsl_native}/sort.c +3 -4
- data/ext/{gsl → gsl_native}/spline.c +25 -43
- data/ext/{gsl → gsl_native}/stats.c +102 -115
- data/ext/{gsl → gsl_native}/sum.c +32 -32
- data/ext/{gsl → gsl_native}/tamu_anova.c +0 -0
- data/ext/{gsl → gsl_native}/tensor.c +2 -4
- data/ext/{gsl/tensor_source.c → gsl_native/tensor_source.h} +144 -144
- data/ext/{gsl → gsl_native}/vector.c +2 -4
- data/ext/{gsl → gsl_native}/vector_complex.c +165 -171
- data/ext/{gsl → gsl_native}/vector_double.c +167 -174
- data/ext/{gsl → gsl_native}/vector_int.c +23 -25
- data/ext/{gsl/vector_source.c → gsl_native/vector_source.h} +400 -414
- data/ext/{gsl → gsl_native}/wavelet.c +215 -236
- data/lib/gsl.rb +1 -7
- data/lib/gsl/gnuplot.rb +2 -2
- data/lib/gsl/version.rb +1 -3
- data/rb-gsl.gemspec +29 -0
- data/rdoc/blas.rdoc +3 -3
- data/rdoc/bspline.rdoc +7 -7
- data/rdoc/cheb.rdoc +8 -8
- data/rdoc/cholesky_complex.rdoc +1 -1
- data/rdoc/combi.rdoc +9 -9
- data/rdoc/complex.rdoc +11 -11
- data/rdoc/const.rdoc +20 -20
- data/rdoc/dht.rdoc +6 -6
- data/rdoc/diff.rdoc +6 -6
- data/rdoc/ehandling.rdoc +3 -3
- data/rdoc/eigen.rdoc +11 -11
- data/rdoc/fft.rdoc +26 -26
- data/rdoc/fit.rdoc +18 -18
- data/rdoc/graph.rdoc +2 -2
- data/rdoc/hist.rdoc +16 -16
- data/rdoc/hist2d.rdoc +4 -4
- data/rdoc/hist3d.rdoc +3 -3
- data/rdoc/integration.rdoc +16 -16
- data/rdoc/interp.rdoc +11 -11
- data/rdoc/intro.rdoc +3 -3
- data/rdoc/linalg.rdoc +20 -20
- data/rdoc/linalg_complex.rdoc +1 -1
- data/rdoc/math.rdoc +13 -13
- data/rdoc/matrix.rdoc +22 -22
- data/rdoc/min.rdoc +9 -9
- data/rdoc/monte.rdoc +3 -3
- data/rdoc/multimin.rdoc +12 -12
- data/rdoc/multiroot.rdoc +12 -12
- data/rdoc/narray.rdoc +9 -9
- data/rdoc/ndlinear.rdoc +4 -4
- data/rdoc/nonlinearfit.rdoc +17 -17
- data/rdoc/ntuple.rdoc +5 -5
- data/rdoc/odeiv.rdoc +12 -12
- data/rdoc/perm.rdoc +11 -11
- data/rdoc/poly.rdoc +17 -17
- data/rdoc/qrng.rdoc +9 -9
- data/rdoc/randist.rdoc +10 -10
- data/rdoc/ref.rdoc +49 -49
- data/rdoc/rng.rdoc +9 -9
- data/rdoc/roots.rdoc +12 -12
- data/rdoc/sf.rdoc +35 -35
- data/rdoc/siman.rdoc +3 -3
- data/rdoc/sort.rdoc +6 -6
- data/rdoc/start.rdoc +2 -2
- data/rdoc/stats.rdoc +13 -13
- data/rdoc/sum.rdoc +4 -4
- data/rdoc/tensor.rdoc +3 -3
- data/rdoc/tut.rdoc +1 -1
- data/rdoc/use.rdoc +3 -3
- data/rdoc/vector.rdoc +28 -28
- data/rdoc/vector_complex.rdoc +6 -6
- data/rdoc/wavelet.rdoc +8 -8
- data/test/gsl/blas_test.rb +1 -1
- data/test/gsl/index_test.rb +61 -0
- data/test/gsl/matrix_test.rb +21 -0
- data/uncrustify.cfg +1693 -0
- metadata +212 -243
- data/README +0 -28
- data/ext/gsl/bspline.c +0 -130
- data/ext/gsl/const.c +0 -672
- data/ext/gsl/cqp.c +0 -283
- data/ext/gsl/fcmp.c +0 -64
- data/ext/gsl/fresnel.c +0 -312
- data/ext/gsl/jacobi.c +0 -739
- data/ext/gsl/ool.c +0 -879
- data/ext/gsl/oper_complex_source.c +0 -251
- data/ext/gsl/sf_mathieu.c +0 -238
- data/rdoc/index.rdoc +0 -50
data/rdoc/tensor.rdoc
CHANGED
@@ -242,10 +242,10 @@
|
|
242
242
|
#
|
243
243
|
# Returns the size
|
244
244
|
#
|
245
|
-
# {prev}[link:rng_rdoc.html#label-Random+number+generator+initialization]
|
246
|
-
# {next}[link:narray_rdoc.html]
|
245
|
+
# {prev}[link:rdoc/rng_rdoc.html#label-Random+number+generator+initialization]
|
246
|
+
# {next}[link:rdoc/narray_rdoc.html]
|
247
247
|
#
|
248
|
-
# {Reference index}[link:ref_rdoc.html]
|
248
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
249
249
|
# {top}[link:index.html]
|
250
250
|
#
|
251
251
|
#
|
data/rdoc/tut.rdoc
CHANGED
data/rdoc/use.rdoc
CHANGED
@@ -168,10 +168,10 @@
|
|
168
168
|
# * CGSM (Module)
|
169
169
|
# * NUM (Module)
|
170
170
|
#
|
171
|
-
# {prev}[link:intro_rdoc.html]
|
172
|
-
# {next}[link:ehandling_rdoc.html]
|
171
|
+
# {prev}[link:rdoc/intro_rdoc.html]
|
172
|
+
# {next}[link:rdoc/ehandling_rdoc.html]
|
173
173
|
#
|
174
|
-
# {Reference index}[link:ref_rdoc.html]
|
174
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
175
175
|
# {top}[link:index.html]
|
176
176
|
#
|
177
177
|
#
|
data/rdoc/vector.rdoc
CHANGED
@@ -2,28 +2,28 @@
|
|
2
2
|
# = GSL::Vector class
|
3
3
|
#
|
4
4
|
# Contents:
|
5
|
-
# 1. {Class methods}[link:vector_rdoc.html#label-Class+methods]
|
6
|
-
# 1. {Notes}[link:vector_rdoc.html#label-NOTE%3A]
|
7
|
-
# 1. {Methods}[link:vector_rdoc.html#label-Methods]
|
8
|
-
# 1. {Accessing vector elements}[link:vector_rdoc.html#label-Accessing+vector+elements]
|
9
|
-
# 1. {Initializing vector elements}[link:vector_rdoc.html#label-Initializing+vector+elements]
|
10
|
-
# 1. {Iterators}[link:vector_rdoc.html#label-Iterators]
|
11
|
-
# 1. {IO}[link:vector_rdoc.html#label-IO]
|
12
|
-
# 1. {Copying vectors}[link:vector_rdoc.html#label-Copying+vectors]
|
13
|
-
# 1. {Vector views}[link:vector_rdoc.html#label-Vector+views]
|
14
|
-
# 1. {Vector operations}[link:vector_rdoc.html#label-Vector+operations]
|
15
|
-
# 1. {Vector operations with size changes}[link:vector_rdoc.html#label-Vector+operations+with+size+changes]
|
16
|
-
# 1. {Finding maximum and minimum elements of vectors}[link:vector_rdoc.html#label-Finding+maximum+and+minimum+elements+of+vectors]
|
17
|
-
# 1. {Vector properties}[link:vector_rdoc.html#label-Vector+Properties]
|
18
|
-
# 1. {Element-wise vector comparison}[link:vector_rdoc.html#label-Element-wise+vector+comparison]
|
19
|
-
# 1. {Histogram}[link:vector_rdoc.html#label-Histogram]
|
20
|
-
# 1. {Sorting}[link:vector_rdoc.html#label-Sorting]
|
21
|
-
# 1. {BLAS methods}[link:vector_rdoc.html#label-BLAS+Methods]
|
22
|
-
# 1. {Data type conversions}[link:vector_rdoc.html#label-Data+type+conversions]
|
23
|
-
# 1. {NArray}[link:vector_rdoc.html#label-NArray+conversions]
|
24
|
-
# 1. {GNU graph interface}[link:vector_rdoc.html#label-Graphics]
|
25
|
-
#
|
26
|
-
# See also {GSL::Vector::Complex}[link:vector_complex_rdoc.html].
|
5
|
+
# 1. {Class methods}[link:rdoc/vector_rdoc.html#label-Class+methods]
|
6
|
+
# 1. {Notes}[link:rdoc/vector_rdoc.html#label-NOTE%3A]
|
7
|
+
# 1. {Methods}[link:rdoc/vector_rdoc.html#label-Methods]
|
8
|
+
# 1. {Accessing vector elements}[link:rdoc/vector_rdoc.html#label-Accessing+vector+elements]
|
9
|
+
# 1. {Initializing vector elements}[link:rdoc/vector_rdoc.html#label-Initializing+vector+elements]
|
10
|
+
# 1. {Iterators}[link:rdoc/vector_rdoc.html#label-Iterators]
|
11
|
+
# 1. {IO}[link:rdoc/vector_rdoc.html#label-IO]
|
12
|
+
# 1. {Copying vectors}[link:rdoc/vector_rdoc.html#label-Copying+vectors]
|
13
|
+
# 1. {Vector views}[link:rdoc/vector_rdoc.html#label-Vector+views]
|
14
|
+
# 1. {Vector operations}[link:rdoc/vector_rdoc.html#label-Vector+operations]
|
15
|
+
# 1. {Vector operations with size changes}[link:rdoc/vector_rdoc.html#label-Vector+operations+with+size+changes]
|
16
|
+
# 1. {Finding maximum and minimum elements of vectors}[link:rdoc/vector_rdoc.html#label-Finding+maximum+and+minimum+elements+of+vectors]
|
17
|
+
# 1. {Vector properties}[link:rdoc/vector_rdoc.html#label-Vector+Properties]
|
18
|
+
# 1. {Element-wise vector comparison}[link:rdoc/vector_rdoc.html#label-Element-wise+vector+comparison]
|
19
|
+
# 1. {Histogram}[link:rdoc/vector_rdoc.html#label-Histogram]
|
20
|
+
# 1. {Sorting}[link:rdoc/vector_rdoc.html#label-Sorting]
|
21
|
+
# 1. {BLAS methods}[link:rdoc/vector_rdoc.html#label-BLAS+Methods]
|
22
|
+
# 1. {Data type conversions}[link:rdoc/vector_rdoc.html#label-Data+type+conversions]
|
23
|
+
# 1. {NArray}[link:rdoc/vector_rdoc.html#label-NArray+conversions]
|
24
|
+
# 1. {GNU graph interface}[link:rdoc/vector_rdoc.html#label-Graphics]
|
25
|
+
#
|
26
|
+
# See also {GSL::Vector::Complex}[link:rdoc/vector_complex_rdoc.html].
|
27
27
|
#
|
28
28
|
# == Class methods
|
29
29
|
#
|
@@ -134,7 +134,7 @@
|
|
134
134
|
# p v <----- [ 1 2 3 4 5 ]
|
135
135
|
#
|
136
136
|
#
|
137
|
-
# See also {here}[link:vector_rdoc.html#label-NArray+conversions].
|
137
|
+
# See also {here}[link:rdoc/vector_rdoc.html#label-NArray+conversions].
|
138
138
|
#
|
139
139
|
# == NOTE:
|
140
140
|
# In Ruby/GSL, vector length is limited within the range of Fixnum.
|
@@ -371,7 +371,7 @@
|
|
371
371
|
# * GSL::Vector#matrix_view(n1, n2)
|
372
372
|
#
|
373
373
|
# This creates a <tt>Matrix::View</tt> object from the vector <tt>self</tt>.
|
374
|
-
# It enables to use the vector as a {Matrix}[link:matrix_rdoc.html] object.
|
374
|
+
# It enables to use the vector as a {Matrix}[link:rdoc/matrix_rdoc.html] object.
|
375
375
|
#
|
376
376
|
# * Ex:
|
377
377
|
#
|
@@ -1076,7 +1076,7 @@
|
|
1076
1076
|
# * GSL::Vector#to_m_diagonal
|
1077
1077
|
#
|
1078
1078
|
# Converts the vector into a diagonal matrix.
|
1079
|
-
# See also {GSL::Matrix.diagonal(v)}[link:matrix_rdoc.html].
|
1079
|
+
# See also {GSL::Matrix.diagonal(v)}[link:rdoc/matrix_rdoc.html].
|
1080
1080
|
#
|
1081
1081
|
# >> v = GSL::Vector[1..4].to_i
|
1082
1082
|
# => GSL::Vector::Int:
|
@@ -1234,10 +1234,10 @@
|
|
1234
1234
|
# >> s = GSL::Sf::sin(x)
|
1235
1235
|
# >> GSL::Vector.graph(x, c, s, "-T X -C -L 'cos(x), sin(x)'")
|
1236
1236
|
#
|
1237
|
-
# {prev}[link:sf_rdoc.html]
|
1238
|
-
# {next}[link:matrix_rdoc.html]
|
1237
|
+
# {prev}[link:rdoc/sf_rdoc.html]
|
1238
|
+
# {next}[link:rdoc/matrix_rdoc.html]
|
1239
1239
|
#
|
1240
|
-
# {Reference index}[link:ref_rdoc.html]
|
1240
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
1241
1241
|
# {top}[link:index.html]
|
1242
1242
|
#
|
1243
1243
|
#
|
data/rdoc/vector_complex.rdoc
CHANGED
@@ -73,7 +73,7 @@
|
|
73
73
|
# NOTE: GSL does not provide a vector copy function that properly copies data
|
74
74
|
# across overlapping memory regions, so watch out if assigning to part of a
|
75
75
|
# Vector from another part of itself (see <tt>#set</tt> example of
|
76
|
-
# {GSL::Vector}[link:vector_rdoc.html]).
|
76
|
+
# {GSL::Vector}[link:rdoc/vector_rdoc.html]).
|
77
77
|
#
|
78
78
|
# === Initializing vector elements
|
79
79
|
# ---
|
@@ -127,10 +127,10 @@
|
|
127
127
|
# === Reordering Elements
|
128
128
|
# <tt>GSL::Vector::Complex</tt> provides four methods for shifting the frequency
|
129
129
|
# domain data between <b>FFT order</b>, shown in the table in the {Overview of
|
130
|
-
# complex data FFTs}[link:fft_rdoc.html#label-Overview+of+complex+data+FFTs], and <b>natural order</b>, which has
|
130
|
+
# complex data FFTs}[link:rdoc/fft_rdoc.html#label-Overview+of+complex+data+FFTs], and <b>natural order</b>, which has
|
131
131
|
# the most negative freqeuncy component first, the zero frequency component in the
|
132
132
|
# middle, and the most positive frequency component last. For more information
|
133
|
-
# on Ruby/GSL and FFTs, see {Fast Fourier Transforms}[link:fft_rdoc.html].
|
133
|
+
# on Ruby/GSL and FFTs, see {Fast Fourier Transforms}[link:rdoc/fft_rdoc.html].
|
134
134
|
#
|
135
135
|
# ---
|
136
136
|
# * GSL::Vector::Complex#fftshift
|
@@ -168,7 +168,7 @@
|
|
168
168
|
# Returns a new <tt>GSL::Vector::Complex</tt> instance containing the result of
|
169
169
|
# the appropriate arithmetic operation on <tt>self</tt> and <tt>other</tt>. The
|
170
170
|
# inputs are unchanged. The <tt>other</tt> parameter may be a scalar,
|
171
|
-
# <tt>{GSL::Vector}[link:vector_rdoc.html]</tt>, or <tt>GSL::Vector::Complex</tt>.
|
171
|
+
# <tt>{GSL::Vector}[link:rdoc/vector_rdoc.html]</tt>, or <tt>GSL::Vector::Complex</tt>.
|
172
172
|
#
|
173
173
|
# ---
|
174
174
|
# * GSL::Vector::Complex#+=(other)
|
@@ -182,7 +182,7 @@
|
|
182
182
|
#
|
183
183
|
# Modifies <tt>self</tt> in place to contain the result of the appropriate
|
184
184
|
# arithmetic operation on <tt>self</tt> and <tt>other</tt>. The <tt>other</tt>
|
185
|
-
# parameter may be a scalar, <tt>{GSL::Vector}[link:vector_rdoc.html]</tt>, or
|
185
|
+
# parameter may be a scalar, <tt>{GSL::Vector}[link:rdoc/vector_rdoc.html]</tt>, or
|
186
186
|
# <tt>GSL::Vector::Complex</tt>.
|
187
187
|
#
|
188
188
|
# === Reading and writing vectors
|
@@ -341,7 +341,7 @@
|
|
341
341
|
# [ [1.000e+00 2.000e+00] [3.000e+00 4.000e+00] ]
|
342
342
|
# => #<GSL::Vector::Complex:0x6d6424>
|
343
343
|
#
|
344
|
-
# {Reference index}[link:ref_rdoc.html]
|
344
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
345
345
|
# {top}[link:index.html]
|
346
346
|
#
|
347
347
|
#
|
data/rdoc/wavelet.rdoc
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
# The library includes wavelets for real data in both one and two dimensions.
|
6
6
|
#
|
7
7
|
# Contents:
|
8
|
-
# 1. {Definitions}[link:wavelet_rdoc.html#label-Definitions]
|
9
|
-
# 1. {Initialization}[link:wavelet_rdoc.html#label-Initialization]
|
10
|
-
# 1. {Transform methods}[link:wavelet_rdoc.html#label-Transform+Methods]
|
11
|
-
# 1. {Wavelet transforms in one dimension}[link:wavelet_rdoc.html#label-Wavelet+transforms+in+one+dimension]
|
12
|
-
# 1. {Wavelet transforms in two dimension}[link:wavelet_rdoc.html#label-Wavelet+transforms+in+two+dimension]
|
13
|
-
# 1. {Examples}[link:wavelet_rdoc.html#label-Example]
|
8
|
+
# 1. {Definitions}[link:rdoc/wavelet_rdoc.html#label-Definitions]
|
9
|
+
# 1. {Initialization}[link:rdoc/wavelet_rdoc.html#label-Initialization]
|
10
|
+
# 1. {Transform methods}[link:rdoc/wavelet_rdoc.html#label-Transform+Methods]
|
11
|
+
# 1. {Wavelet transforms in one dimension}[link:rdoc/wavelet_rdoc.html#label-Wavelet+transforms+in+one+dimension]
|
12
|
+
# 1. {Wavelet transforms in two dimension}[link:rdoc/wavelet_rdoc.html#label-Wavelet+transforms+in+two+dimension]
|
13
|
+
# 1. {Examples}[link:rdoc/wavelet_rdoc.html#label-Example]
|
14
14
|
#
|
15
15
|
# == Definitions
|
16
16
|
#
|
@@ -211,8 +211,8 @@
|
|
211
211
|
# #If you have GNU graph utility...
|
212
212
|
# GSL::graph(nil, data, data3, "-T X -C -g 3")
|
213
213
|
#
|
214
|
-
# {prev}[link:fft_rdoc.html]
|
215
|
-
# {next}[link:integration_rdoc.html]
|
214
|
+
# {prev}[link:rdoc/fft_rdoc.html]
|
215
|
+
# {next}[link:rdoc/integration_rdoc.html]
|
216
216
|
#
|
217
217
|
# {back}[link:index.html]
|
218
218
|
#
|
data/test/gsl/blas_test.rb
CHANGED
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class IndexTest < GSL::TestCase
|
4
|
+
|
5
|
+
# helper(s)
|
6
|
+
|
7
|
+
def _create_index array
|
8
|
+
i = GSL::Index.alloc(array.size)
|
9
|
+
array.each_with_index { |e, j| i[j] = e }
|
10
|
+
i
|
11
|
+
end
|
12
|
+
|
13
|
+
# tests
|
14
|
+
|
15
|
+
def test_get_int
|
16
|
+
i = GSL::Index.alloc(5)
|
17
|
+
assert_equal 2, i.get(2)
|
18
|
+
assert_equal 4, i.get(4)
|
19
|
+
assert_equal 3, i.get(-2)
|
20
|
+
assert_equal 0, i.get(-5)
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_get_array
|
24
|
+
i = GSL::Index.alloc(5)
|
25
|
+
assert_equal _create_index([2, 3]), i.get([2, 3])
|
26
|
+
assert_equal _create_index([4, 2]), i.get([-1, 2])
|
27
|
+
assert_equal _create_index([4, 3, 1]), i.get([4, -2, 1])
|
28
|
+
assert_equal _create_index([0, 4, 4, 0]), i.get([0, 4, -1, -5])
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_get_range
|
32
|
+
i = GSL::Index.alloc(5)
|
33
|
+
assert_equal _create_index([2, 3]), i.get(2..3)
|
34
|
+
assert_equal _create_index([0, 1, 2, 3, 4]), i.get(0..4)
|
35
|
+
assert_equal _create_index([0, 1, 2, 3, 4]), i.get(0..5)
|
36
|
+
assert_equal _create_index([0, 1, 2, 3, 4]), i.get(-5..-1)
|
37
|
+
assert_equal _create_index([0]), i.get(0..-5)
|
38
|
+
assert_equal _create_index([0]), i.get(-5..0)
|
39
|
+
assert_equal _create_index([3]), i.get(-2..3)
|
40
|
+
assert_equal _create_index([3, 4]), i.get(-2..4)
|
41
|
+
assert_equal _create_index([1, 2, 3]), i.get(-4...-1) # note the exclusive range operator!
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_get_failure
|
45
|
+
i = GSL::Index.alloc(5)
|
46
|
+
assert_raises(RangeError) { i.get(5) }
|
47
|
+
assert_raises(RangeError) { i.get(-6) }
|
48
|
+
assert_raises(RangeError) { i.get(1_000_000) }
|
49
|
+
assert_raises(ArgumentError) { i.get(10**100) }
|
50
|
+
|
51
|
+
assert_raises(RangeError) { i.get([5]) }
|
52
|
+
assert_raises(RangeError) { i.get([-6]) }
|
53
|
+
assert_raises(RangeError) { i.get([-6, 0, 5]) }
|
54
|
+
|
55
|
+
assert_raises(RangeError) { i.get(-6..-1) }
|
56
|
+
assert_raises(RangeError) { i.get(3..-5) }
|
57
|
+
assert_raises(RangeError) { i.get(-2..-3) }
|
58
|
+
assert_raises(RangeError) { i.get(-2..1) }
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
data/test/gsl/matrix_test.rb
CHANGED
@@ -74,4 +74,25 @@ class MatrixTest < GSL::TestCase
|
|
74
74
|
assert_equal z1, m[1, 0]
|
75
75
|
end
|
76
76
|
|
77
|
+
def test_coerce
|
78
|
+
{ 1 => m0 = GSL::Matrix.ones(1), 2 => GSL::Matrix[[2]] }.each { |a, b|
|
79
|
+
[a, a.to_f].each { |c| assert_equal([b, m0], m0.coerce(c)) } }
|
80
|
+
|
81
|
+
m1 = GSL::Matrix::Int.ones(1); [1, 2].each { |a|
|
82
|
+
[a, a.to_f].each { |c| assert_equal([c, m0], m1.coerce(c)) } }
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_mul
|
86
|
+
{ 1 => m0 = GSL::Matrix.ones(1), 2 => GSL::Matrix[[2]] }.each { |a, b|
|
87
|
+
[a, a.to_f].each { |c| assert_equal(b, m0 * c); assert_equal(b, c * m0) } }
|
88
|
+
|
89
|
+
{ 1 => m1 = GSL::Matrix::Int.ones(1), 2 => GSL::Matrix::Int[[2]] }.each { |a, b|
|
90
|
+
assert_equal(b, m1 * a); [a, a.to_f].each { |c| assert_equal(b, c * m1) } }
|
91
|
+
|
92
|
+
assert_equal GSL::Matrix[[0.2]], m0 * 0.2
|
93
|
+
assert_equal GSL::Matrix[[0.2]], 0.2 * m0
|
94
|
+
|
95
|
+
assert_equal GSL::Matrix::Int[[0]], 0.2 * m1
|
96
|
+
end
|
97
|
+
|
77
98
|
end
|
data/uncrustify.cfg
ADDED
@@ -0,0 +1,1693 @@
|
|
1
|
+
# Uncrustify 0.61
|
2
|
+
|
3
|
+
#
|
4
|
+
# General options
|
5
|
+
#
|
6
|
+
|
7
|
+
# The type of line endings
|
8
|
+
newlines = lf # auto/lf/crlf/cr
|
9
|
+
|
10
|
+
# The original size of tabs in the input
|
11
|
+
input_tab_size = 8 # number
|
12
|
+
|
13
|
+
# The size of tabs in the output (only used if align_with_tabs=true)
|
14
|
+
output_tab_size = 8 # number
|
15
|
+
|
16
|
+
# The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
|
17
|
+
string_escape_char = 92 # number
|
18
|
+
|
19
|
+
# Alternate string escape char for Pawn. Only works right before the quote char.
|
20
|
+
string_escape_char2 = 0 # number
|
21
|
+
|
22
|
+
# Allow interpreting '>=' and '>>=' as part of a template in 'void f(list<list<B>>=val);'.
|
23
|
+
# If true (default), 'assert(x<0 && y>=3)' will be broken.
|
24
|
+
# Improvements to template detection may make this option obsolete.
|
25
|
+
tok_split_gte = false # false/true
|
26
|
+
|
27
|
+
# Control what to do with the UTF-8 BOM (recommend 'remove')
|
28
|
+
utf8_bom = remove # ignore/add/remove/force
|
29
|
+
|
30
|
+
# If the file contains bytes with values between 128 and 255, but is not UTF-8, then output as UTF-8
|
31
|
+
utf8_byte = false # false/true
|
32
|
+
|
33
|
+
# Force the output encoding to UTF-8
|
34
|
+
utf8_force = false # false/true
|
35
|
+
|
36
|
+
#
|
37
|
+
# Indenting
|
38
|
+
#
|
39
|
+
|
40
|
+
# The number of columns to indent per level.
|
41
|
+
# Usually 2, 3, 4, or 8.
|
42
|
+
indent_columns = 2 # number
|
43
|
+
|
44
|
+
# The continuation indent. If non-zero, this overrides the indent of '(' and '=' continuation indents.
|
45
|
+
# For FreeBSD, this is set to 4. Negative value is absolute and not increased for each ( level
|
46
|
+
indent_continue = 0 # number
|
47
|
+
|
48
|
+
# How to use tabs when indenting code
|
49
|
+
# 0=spaces only
|
50
|
+
# 1=indent with tabs to brace level, align with spaces
|
51
|
+
# 2=indent and align with tabs, using spaces when not on a tabstop
|
52
|
+
indent_with_tabs = 0 # number
|
53
|
+
|
54
|
+
# Comments that are not a brace level are indented with tabs on a tabstop.
|
55
|
+
# Requires indent_with_tabs=2. If false, will use spaces.
|
56
|
+
indent_cmt_with_tabs = false # false/true
|
57
|
+
|
58
|
+
# Whether to indent strings broken by '\' so that they line up
|
59
|
+
indent_align_string = false # false/true
|
60
|
+
|
61
|
+
# The number of spaces to indent multi-line XML strings.
|
62
|
+
# Requires indent_align_string=True
|
63
|
+
indent_xml_string = 0 # number
|
64
|
+
|
65
|
+
# Spaces to indent '{' from level
|
66
|
+
indent_brace = 0 # number
|
67
|
+
|
68
|
+
# Whether braces are indented to the body level
|
69
|
+
indent_braces = false # false/true
|
70
|
+
|
71
|
+
# Disabled indenting function braces if indent_braces is true
|
72
|
+
indent_braces_no_func = false # false/true
|
73
|
+
|
74
|
+
# Disabled indenting class braces if indent_braces is true
|
75
|
+
indent_braces_no_class = false # false/true
|
76
|
+
|
77
|
+
# Disabled indenting struct braces if indent_braces is true
|
78
|
+
indent_braces_no_struct = false # false/true
|
79
|
+
|
80
|
+
# Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
|
81
|
+
indent_brace_parent = false # false/true
|
82
|
+
|
83
|
+
# Indent based on the paren open instead of the brace open in '({\n', default is to indent by brace.
|
84
|
+
indent_paren_open_brace = false # false/true
|
85
|
+
|
86
|
+
# Whether the 'namespace' body is indented
|
87
|
+
indent_namespace = false # false/true
|
88
|
+
|
89
|
+
# Only indent one namespace and no sub-namepaces.
|
90
|
+
# Requires indent_namespace=true.
|
91
|
+
indent_namespace_single_indent = false # false/true
|
92
|
+
|
93
|
+
# The number of spaces to indent a namespace block
|
94
|
+
indent_namespace_level = 0 # number
|
95
|
+
|
96
|
+
# If the body of the namespace is longer than this number, it won't be indented.
|
97
|
+
# Requires indent_namespace=true. Default=0 (no limit)
|
98
|
+
indent_namespace_limit = 0 # number
|
99
|
+
|
100
|
+
# Whether the 'extern "C"' body is indented
|
101
|
+
indent_extern = false # false/true
|
102
|
+
|
103
|
+
# Whether the 'class' body is indented
|
104
|
+
indent_class = false # false/true
|
105
|
+
|
106
|
+
# Whether to indent the stuff after a leading base class colon
|
107
|
+
indent_class_colon = false # false/true
|
108
|
+
|
109
|
+
# Whether to indent the stuff after a leading class initializer colon
|
110
|
+
indent_constr_colon = false # false/true
|
111
|
+
|
112
|
+
# Virtual indent from the ':' for member initializers. Default is 2
|
113
|
+
indent_ctor_init_leading = 2 # number
|
114
|
+
|
115
|
+
# Additional indenting for constructor initializer list
|
116
|
+
indent_ctor_init = 0 # number
|
117
|
+
|
118
|
+
# False=treat 'else\nif' as 'else if' for indenting purposes
|
119
|
+
# True=indent the 'if' one level
|
120
|
+
indent_else_if = false # false/true
|
121
|
+
|
122
|
+
# Amount to indent variable declarations after a open brace. neg=relative, pos=absolute
|
123
|
+
indent_var_def_blk = 0 # number
|
124
|
+
|
125
|
+
# Indent continued variable declarations instead of aligning.
|
126
|
+
indent_var_def_cont = false # false/true
|
127
|
+
|
128
|
+
# True: force indentation of function definition to start in column 1
|
129
|
+
# False: use the default behavior
|
130
|
+
indent_func_def_force_col1 = false # false/true
|
131
|
+
|
132
|
+
# True: indent continued function call parameters one indent level
|
133
|
+
# False: align parameters under the open paren
|
134
|
+
indent_func_call_param = false # false/true
|
135
|
+
|
136
|
+
# Same as indent_func_call_param, but for function defs
|
137
|
+
indent_func_def_param = false # false/true
|
138
|
+
|
139
|
+
# Same as indent_func_call_param, but for function protos
|
140
|
+
indent_func_proto_param = false # false/true
|
141
|
+
|
142
|
+
# Same as indent_func_call_param, but for class declarations
|
143
|
+
indent_func_class_param = false # false/true
|
144
|
+
|
145
|
+
# Same as indent_func_call_param, but for class variable constructors
|
146
|
+
indent_func_ctor_var_param = false # false/true
|
147
|
+
|
148
|
+
# Same as indent_func_call_param, but for templates
|
149
|
+
indent_template_param = false # false/true
|
150
|
+
|
151
|
+
# Double the indent for indent_func_xxx_param options
|
152
|
+
indent_func_param_double = false # false/true
|
153
|
+
|
154
|
+
# Indentation column for standalone 'const' function decl/proto qualifier
|
155
|
+
indent_func_const = 0 # number
|
156
|
+
|
157
|
+
# Indentation column for standalone 'throw' function decl/proto qualifier
|
158
|
+
indent_func_throw = 0 # number
|
159
|
+
|
160
|
+
# The number of spaces to indent a continued '->' or '.'
|
161
|
+
# Usually set to 0, 1, or indent_columns.
|
162
|
+
indent_member = 0 # number
|
163
|
+
|
164
|
+
# Spaces to indent single line ('//') comments on lines before code
|
165
|
+
indent_sing_line_comments = 0 # number
|
166
|
+
|
167
|
+
# If set, will indent trailing single line ('//') comments relative
|
168
|
+
# to the code instead of trying to keep the same absolute column
|
169
|
+
indent_relative_single_line_comments = false # false/true
|
170
|
+
|
171
|
+
# Spaces to indent 'case' from 'switch'
|
172
|
+
# Usually 0 or indent_columns.
|
173
|
+
indent_switch_case = 0 # number
|
174
|
+
|
175
|
+
# Spaces to shift the 'case' line, without affecting any other lines
|
176
|
+
# Usually 0.
|
177
|
+
indent_case_shift = 0 # number
|
178
|
+
|
179
|
+
# Spaces to indent '{' from 'case'.
|
180
|
+
# By default, the brace will appear under the 'c' in case.
|
181
|
+
# Usually set to 0 or indent_columns.
|
182
|
+
indent_case_brace = 0 # number
|
183
|
+
|
184
|
+
# Whether to indent comments found in first column
|
185
|
+
indent_col1_comment = false # false/true
|
186
|
+
|
187
|
+
# How to indent goto labels
|
188
|
+
# >0 : absolute column where 1 is the leftmost column
|
189
|
+
# <=0 : subtract from brace indent
|
190
|
+
indent_label = 1 # number
|
191
|
+
|
192
|
+
# Same as indent_label, but for access specifiers that are followed by a colon
|
193
|
+
indent_access_spec = 1 # number
|
194
|
+
|
195
|
+
# Indent the code after an access specifier by one level.
|
196
|
+
# If set, this option forces 'indent_access_spec=0'
|
197
|
+
indent_access_spec_body = false # false/true
|
198
|
+
|
199
|
+
# If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
|
200
|
+
indent_paren_nl = false # false/true
|
201
|
+
|
202
|
+
# Controls the indent of a close paren after a newline.
|
203
|
+
# 0: Indent to body level
|
204
|
+
# 1: Align under the open paren
|
205
|
+
# 2: Indent to the brace level
|
206
|
+
indent_paren_close = 0 # number
|
207
|
+
|
208
|
+
# Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren
|
209
|
+
indent_comma_paren = false # false/true
|
210
|
+
|
211
|
+
# Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren
|
212
|
+
indent_bool_paren = false # false/true
|
213
|
+
|
214
|
+
# If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones
|
215
|
+
indent_first_bool_expr = false # false/true
|
216
|
+
|
217
|
+
# If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
|
218
|
+
indent_square_nl = false # false/true
|
219
|
+
|
220
|
+
# Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
|
221
|
+
indent_preserve_sql = false # false/true
|
222
|
+
|
223
|
+
# Align continued statements at the '='. Default=True
|
224
|
+
# If FALSE or the '=' is followed by a newline, the next line is indent one tab.
|
225
|
+
indent_align_assign = true # false/true
|
226
|
+
|
227
|
+
# Indent OC blocks at brace level instead of usual rules.
|
228
|
+
indent_oc_block = false # false/true
|
229
|
+
|
230
|
+
# Indent OC blocks in a message relative to the parameter name.
|
231
|
+
# 0=use indent_oc_block rules, 1+=spaces to indent
|
232
|
+
indent_oc_block_msg = 0 # number
|
233
|
+
|
234
|
+
# Minimum indent for subsequent parameters
|
235
|
+
indent_oc_msg_colon = 0 # number
|
236
|
+
|
237
|
+
# If true, prioritize aligning with initial colon (and stripping spaces from lines, if necessary).
|
238
|
+
# Default is true.
|
239
|
+
indent_oc_msg_prioritize_first_colon = true # false/true
|
240
|
+
|
241
|
+
# If indent_oc_block_msg and this option are on, blocks will be indented the way that Xcode does by default (from keyword if the parameter is on its own line; otherwise, from the previous indentation level).
|
242
|
+
indent_oc_block_msg_xcode_style = false # false/true
|
243
|
+
|
244
|
+
# If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is relative to a msg keyword.
|
245
|
+
indent_oc_block_msg_from_keyword = false # false/true
|
246
|
+
|
247
|
+
# If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is relative to a msg colon.
|
248
|
+
indent_oc_block_msg_from_colon = false # false/true
|
249
|
+
|
250
|
+
# If indent_oc_block_msg and this option are on, blocks will be indented from where the block caret is.
|
251
|
+
indent_oc_block_msg_from_caret = false # false/true
|
252
|
+
|
253
|
+
# If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is.
|
254
|
+
indent_oc_block_msg_from_brace = false # false/true
|
255
|
+
|
256
|
+
#
|
257
|
+
# Spacing options
|
258
|
+
#
|
259
|
+
|
260
|
+
# Add or remove space around arithmetic operator '+', '-', '/', '*', etc
|
261
|
+
sp_arith = ignore # ignore/add/remove/force
|
262
|
+
|
263
|
+
# Add or remove space around assignment operator '=', '+=', etc
|
264
|
+
sp_assign = add # ignore/add/remove/force
|
265
|
+
|
266
|
+
# Add or remove space around '=' in C++11 lambda capture specifications. Overrides sp_assign
|
267
|
+
sp_cpp_lambda_assign = ignore # ignore/add/remove/force
|
268
|
+
|
269
|
+
# Add or remove space after the capture specification in C++11 lambda.
|
270
|
+
sp_cpp_lambda_paren = ignore # ignore/add/remove/force
|
271
|
+
|
272
|
+
# Add or remove space around assignment operator '=' in a prototype
|
273
|
+
sp_assign_default = ignore # ignore/add/remove/force
|
274
|
+
|
275
|
+
# Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
|
276
|
+
sp_before_assign = add # ignore/add/remove/force
|
277
|
+
|
278
|
+
# Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign.
|
279
|
+
sp_after_assign = add # ignore/add/remove/force
|
280
|
+
|
281
|
+
# Add or remove space in 'NS_ENUM ('
|
282
|
+
sp_enum_paren = ignore # ignore/add/remove/force
|
283
|
+
|
284
|
+
# Add or remove space around assignment '=' in enum
|
285
|
+
sp_enum_assign = ignore # ignore/add/remove/force
|
286
|
+
|
287
|
+
# Add or remove space before assignment '=' in enum. Overrides sp_enum_assign.
|
288
|
+
sp_enum_before_assign = ignore # ignore/add/remove/force
|
289
|
+
|
290
|
+
# Add or remove space after assignment '=' in enum. Overrides sp_enum_assign.
|
291
|
+
sp_enum_after_assign = ignore # ignore/add/remove/force
|
292
|
+
|
293
|
+
# Add or remove space around preprocessor '##' concatenation operator. Default=Add
|
294
|
+
sp_pp_concat = add # ignore/add/remove/force
|
295
|
+
|
296
|
+
# Add or remove space after preprocessor '#' stringify operator. Also affects the '#@' charizing operator.
|
297
|
+
sp_pp_stringify = ignore # ignore/add/remove/force
|
298
|
+
|
299
|
+
# Add or remove space before preprocessor '#' stringify operator as in '#define x(y) L#y'.
|
300
|
+
sp_before_pp_stringify = ignore # ignore/add/remove/force
|
301
|
+
|
302
|
+
# Add or remove space around boolean operators '&&' and '||'
|
303
|
+
sp_bool = ignore # ignore/add/remove/force
|
304
|
+
|
305
|
+
# Add or remove space around compare operator '<', '>', '==', etc
|
306
|
+
sp_compare = ignore # ignore/add/remove/force
|
307
|
+
|
308
|
+
# Add or remove space inside '(' and ')'
|
309
|
+
sp_inside_paren = ignore # ignore/add/remove/force
|
310
|
+
|
311
|
+
# Add or remove space between nested parens: '((' vs ') )'
|
312
|
+
sp_paren_paren = ignore # ignore/add/remove/force
|
313
|
+
|
314
|
+
# Add or remove space between back-to-back parens: ')(' vs ') ('
|
315
|
+
sp_cparen_oparen = ignore # ignore/add/remove/force
|
316
|
+
|
317
|
+
# Whether to balance spaces inside nested parens
|
318
|
+
sp_balance_nested_parens = false # false/true
|
319
|
+
|
320
|
+
# Add or remove space between ')' and '{'
|
321
|
+
sp_paren_brace = ignore # ignore/add/remove/force
|
322
|
+
|
323
|
+
# Add or remove space before pointer star '*'
|
324
|
+
sp_before_ptr_star = ignore # ignore/add/remove/force
|
325
|
+
|
326
|
+
# Add or remove space before pointer star '*' that isn't followed by a variable name
|
327
|
+
# If set to 'ignore', sp_before_ptr_star is used instead.
|
328
|
+
sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force
|
329
|
+
|
330
|
+
# Add or remove space between pointer stars '*'
|
331
|
+
sp_between_ptr_star = ignore # ignore/add/remove/force
|
332
|
+
|
333
|
+
# Add or remove space after pointer star '*', if followed by a word.
|
334
|
+
sp_after_ptr_star = ignore # ignore/add/remove/force
|
335
|
+
|
336
|
+
# Add or remove space after pointer star '*', if followed by a qualifier.
|
337
|
+
sp_after_ptr_star_qualifier = ignore # ignore/add/remove/force
|
338
|
+
|
339
|
+
# Add or remove space after a pointer star '*', if followed by a func proto/def.
|
340
|
+
sp_after_ptr_star_func = ignore # ignore/add/remove/force
|
341
|
+
|
342
|
+
# Add or remove space after a pointer star '*', if followed by an open paren (function types).
|
343
|
+
sp_ptr_star_paren = ignore # ignore/add/remove/force
|
344
|
+
|
345
|
+
# Add or remove space before a pointer star '*', if followed by a func proto/def.
|
346
|
+
sp_before_ptr_star_func = ignore # ignore/add/remove/force
|
347
|
+
|
348
|
+
# Add or remove space before a reference sign '&'
|
349
|
+
sp_before_byref = ignore # ignore/add/remove/force
|
350
|
+
|
351
|
+
# Add or remove space before a reference sign '&' that isn't followed by a variable name
|
352
|
+
# If set to 'ignore', sp_before_byref is used instead.
|
353
|
+
sp_before_unnamed_byref = ignore # ignore/add/remove/force
|
354
|
+
|
355
|
+
# Add or remove space after reference sign '&', if followed by a word.
|
356
|
+
sp_after_byref = ignore # ignore/add/remove/force
|
357
|
+
|
358
|
+
# Add or remove space after a reference sign '&', if followed by a func proto/def.
|
359
|
+
sp_after_byref_func = ignore # ignore/add/remove/force
|
360
|
+
|
361
|
+
# Add or remove space before a reference sign '&', if followed by a func proto/def.
|
362
|
+
sp_before_byref_func = ignore # ignore/add/remove/force
|
363
|
+
|
364
|
+
# Add or remove space between type and word. Default=Force
|
365
|
+
sp_after_type = force # ignore/add/remove/force
|
366
|
+
|
367
|
+
# Add or remove space before the paren in the D constructs 'template Foo(' and 'class Foo('.
|
368
|
+
sp_before_template_paren = ignore # ignore/add/remove/force
|
369
|
+
|
370
|
+
# Add or remove space in 'template <' vs 'template<'.
|
371
|
+
# If set to ignore, sp_before_angle is used.
|
372
|
+
sp_template_angle = ignore # ignore/add/remove/force
|
373
|
+
|
374
|
+
# Add or remove space before '<>'
|
375
|
+
sp_before_angle = ignore # ignore/add/remove/force
|
376
|
+
|
377
|
+
# Add or remove space inside '<' and '>'
|
378
|
+
sp_inside_angle = ignore # ignore/add/remove/force
|
379
|
+
|
380
|
+
# Add or remove space after '<>'
|
381
|
+
sp_after_angle = ignore # ignore/add/remove/force
|
382
|
+
|
383
|
+
# Add or remove space between '<>' and '(' as found in 'new List<byte>();'
|
384
|
+
sp_angle_paren = ignore # ignore/add/remove/force
|
385
|
+
|
386
|
+
# Add or remove space between '<>' and a word as in 'List<byte> m;'
|
387
|
+
sp_angle_word = ignore # ignore/add/remove/force
|
388
|
+
|
389
|
+
# Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add
|
390
|
+
sp_angle_shift = add # ignore/add/remove/force
|
391
|
+
|
392
|
+
# Permit removal of the space between '>>' in 'foo<bar<int> >' (C++11 only). Default=False
|
393
|
+
# sp_angle_shift cannot remove the space without this option.
|
394
|
+
sp_permit_cpp11_shift = false # false/true
|
395
|
+
|
396
|
+
# Add or remove space before '(' of 'if', 'for', 'switch', and 'while'
|
397
|
+
sp_before_sparen = ignore # ignore/add/remove/force
|
398
|
+
|
399
|
+
# Add or remove space inside if-condition '(' and ')'
|
400
|
+
sp_inside_sparen = ignore # ignore/add/remove/force
|
401
|
+
|
402
|
+
# Add or remove space before if-condition ')'. Overrides sp_inside_sparen.
|
403
|
+
sp_inside_sparen_close = ignore # ignore/add/remove/force
|
404
|
+
|
405
|
+
# Add or remove space before if-condition '('. Overrides sp_inside_sparen.
|
406
|
+
sp_inside_sparen_open = ignore # ignore/add/remove/force
|
407
|
+
|
408
|
+
# Add or remove space after ')' of 'if', 'for', 'switch', and 'while'
|
409
|
+
sp_after_sparen = ignore # ignore/add/remove/force
|
410
|
+
|
411
|
+
# Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while'
|
412
|
+
sp_sparen_brace = ignore # ignore/add/remove/force
|
413
|
+
|
414
|
+
# Add or remove space between 'invariant' and '(' in the D language.
|
415
|
+
sp_invariant_paren = ignore # ignore/add/remove/force
|
416
|
+
|
417
|
+
# Add or remove space after the ')' in 'invariant (C) c' in the D language.
|
418
|
+
sp_after_invariant_paren = ignore # ignore/add/remove/force
|
419
|
+
|
420
|
+
# Add or remove space before empty statement ';' on 'if', 'for' and 'while'
|
421
|
+
sp_special_semi = ignore # ignore/add/remove/force
|
422
|
+
|
423
|
+
# Add or remove space before ';'. Default=Remove
|
424
|
+
sp_before_semi = remove # ignore/add/remove/force
|
425
|
+
|
426
|
+
# Add or remove space before ';' in non-empty 'for' statements
|
427
|
+
sp_before_semi_for = ignore # ignore/add/remove/force
|
428
|
+
|
429
|
+
# Add or remove space before a semicolon of an empty part of a for statement.
|
430
|
+
sp_before_semi_for_empty = ignore # ignore/add/remove/force
|
431
|
+
|
432
|
+
# Add or remove space after ';', except when followed by a comment. Default=Add
|
433
|
+
sp_after_semi = add # ignore/add/remove/force
|
434
|
+
|
435
|
+
# Add or remove space after ';' in non-empty 'for' statements. Default=Force
|
436
|
+
sp_after_semi_for = force # ignore/add/remove/force
|
437
|
+
|
438
|
+
# Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ).
|
439
|
+
sp_after_semi_for_empty = ignore # ignore/add/remove/force
|
440
|
+
|
441
|
+
# Add or remove space before '[' (except '[]')
|
442
|
+
sp_before_square = ignore # ignore/add/remove/force
|
443
|
+
|
444
|
+
# Add or remove space before '[]'
|
445
|
+
sp_before_squares = ignore # ignore/add/remove/force
|
446
|
+
|
447
|
+
# Add or remove space inside a non-empty '[' and ']'
|
448
|
+
sp_inside_square = ignore # ignore/add/remove/force
|
449
|
+
|
450
|
+
# Add or remove space after ','
|
451
|
+
sp_after_comma = ignore # ignore/add/remove/force
|
452
|
+
|
453
|
+
# Add or remove space before ','
|
454
|
+
sp_before_comma = remove # ignore/add/remove/force
|
455
|
+
|
456
|
+
# Add or remove space between an open paren and comma: '(,' vs '( ,'
|
457
|
+
sp_paren_comma = force # ignore/add/remove/force
|
458
|
+
|
459
|
+
# Add or remove space before the variadic '...' when preceded by a non-punctuator
|
460
|
+
sp_before_ellipsis = ignore # ignore/add/remove/force
|
461
|
+
|
462
|
+
# Add or remove space after class ':'
|
463
|
+
sp_after_class_colon = ignore # ignore/add/remove/force
|
464
|
+
|
465
|
+
# Add or remove space before class ':'
|
466
|
+
sp_before_class_colon = ignore # ignore/add/remove/force
|
467
|
+
|
468
|
+
# Add or remove space after class constructor ':'
|
469
|
+
sp_after_constr_colon = ignore # ignore/add/remove/force
|
470
|
+
|
471
|
+
# Add or remove space before class constructor ':'
|
472
|
+
sp_before_constr_colon = ignore # ignore/add/remove/force
|
473
|
+
|
474
|
+
# Add or remove space before case ':'. Default=Remove
|
475
|
+
sp_before_case_colon = remove # ignore/add/remove/force
|
476
|
+
|
477
|
+
# Add or remove space between 'operator' and operator sign
|
478
|
+
sp_after_operator = ignore # ignore/add/remove/force
|
479
|
+
|
480
|
+
# Add or remove space between the operator symbol and the open paren, as in 'operator ++('
|
481
|
+
sp_after_operator_sym = ignore # ignore/add/remove/force
|
482
|
+
|
483
|
+
# Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
|
484
|
+
sp_after_cast = ignore # ignore/add/remove/force
|
485
|
+
|
486
|
+
# Add or remove spaces inside cast parens
|
487
|
+
sp_inside_paren_cast = ignore # ignore/add/remove/force
|
488
|
+
|
489
|
+
# Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)'
|
490
|
+
sp_cpp_cast_paren = ignore # ignore/add/remove/force
|
491
|
+
|
492
|
+
# Add or remove space between 'sizeof' and '('
|
493
|
+
sp_sizeof_paren = ignore # ignore/add/remove/force
|
494
|
+
|
495
|
+
# Add or remove space after the tag keyword (Pawn)
|
496
|
+
sp_after_tag = ignore # ignore/add/remove/force
|
497
|
+
|
498
|
+
# Add or remove space inside enum '{' and '}'
|
499
|
+
sp_inside_braces_enum = ignore # ignore/add/remove/force
|
500
|
+
|
501
|
+
# Add or remove space inside struct/union '{' and '}'
|
502
|
+
sp_inside_braces_struct = ignore # ignore/add/remove/force
|
503
|
+
|
504
|
+
# Add or remove space inside '{' and '}'
|
505
|
+
sp_inside_braces = ignore # ignore/add/remove/force
|
506
|
+
|
507
|
+
# Add or remove space inside '{}'
|
508
|
+
sp_inside_braces_empty = ignore # ignore/add/remove/force
|
509
|
+
|
510
|
+
# Add or remove space between return type and function name
|
511
|
+
# A minimum of 1 is forced except for pointer return types.
|
512
|
+
sp_type_func = ignore # ignore/add/remove/force
|
513
|
+
|
514
|
+
# Add or remove space between function name and '(' on function declaration
|
515
|
+
sp_func_proto_paren = ignore # ignore/add/remove/force
|
516
|
+
|
517
|
+
# Add or remove space between function name and '(' on function definition
|
518
|
+
sp_func_def_paren = ignore # ignore/add/remove/force
|
519
|
+
|
520
|
+
# Add or remove space inside empty function '()'
|
521
|
+
sp_inside_fparens = ignore # ignore/add/remove/force
|
522
|
+
|
523
|
+
# Add or remove space inside function '(' and ')'
|
524
|
+
sp_inside_fparen = ignore # ignore/add/remove/force
|
525
|
+
|
526
|
+
# Add or remove space inside the first parens in the function type: 'void (*x)(...)'
|
527
|
+
sp_inside_tparen = ignore # ignore/add/remove/force
|
528
|
+
|
529
|
+
# Add or remove between the parens in the function type: 'void (*x)(...)'
|
530
|
+
sp_after_tparen_close = ignore # ignore/add/remove/force
|
531
|
+
|
532
|
+
# Add or remove space between ']' and '(' when part of a function call.
|
533
|
+
sp_square_fparen = ignore # ignore/add/remove/force
|
534
|
+
|
535
|
+
# Add or remove space between ')' and '{' of function
|
536
|
+
sp_fparen_brace = ignore # ignore/add/remove/force
|
537
|
+
|
538
|
+
# Java: Add or remove space between ')' and '{{' of double brace initializer.
|
539
|
+
sp_fparen_dbrace = ignore # ignore/add/remove/force
|
540
|
+
|
541
|
+
# Add or remove space between function name and '(' on function calls
|
542
|
+
sp_func_call_paren = ignore # ignore/add/remove/force
|
543
|
+
|
544
|
+
# Add or remove space between function name and '()' on function calls without parameters.
|
545
|
+
# If set to 'ignore' (the default), sp_func_call_paren is used.
|
546
|
+
sp_func_call_paren_empty = ignore # ignore/add/remove/force
|
547
|
+
|
548
|
+
# Add or remove space between the user function name and '(' on function calls
|
549
|
+
# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
|
550
|
+
sp_func_call_user_paren = ignore # ignore/add/remove/force
|
551
|
+
|
552
|
+
# Add or remove space between a constructor/destructor and the open paren
|
553
|
+
sp_func_class_paren = ignore # ignore/add/remove/force
|
554
|
+
|
555
|
+
# Add or remove space between 'return' and '('
|
556
|
+
sp_return_paren = ignore # ignore/add/remove/force
|
557
|
+
|
558
|
+
# Add or remove space between '__attribute__' and '('
|
559
|
+
sp_attribute_paren = ignore # ignore/add/remove/force
|
560
|
+
|
561
|
+
# Add or remove space between 'defined' and '(' in '#if defined (FOO)'
|
562
|
+
sp_defined_paren = ignore # ignore/add/remove/force
|
563
|
+
|
564
|
+
# Add or remove space between 'throw' and '(' in 'throw (something)'
|
565
|
+
sp_throw_paren = ignore # ignore/add/remove/force
|
566
|
+
|
567
|
+
# Add or remove space between 'throw' and anything other than '(' as in '@throw [...];'
|
568
|
+
sp_after_throw = ignore # ignore/add/remove/force
|
569
|
+
|
570
|
+
# Add or remove space between 'catch' and '(' in 'catch (something) { }'
|
571
|
+
# If set to ignore, sp_before_sparen is used.
|
572
|
+
sp_catch_paren = ignore # ignore/add/remove/force
|
573
|
+
|
574
|
+
# Add or remove space between 'version' and '(' in 'version (something) { }' (D language)
|
575
|
+
# If set to ignore, sp_before_sparen is used.
|
576
|
+
sp_version_paren = ignore # ignore/add/remove/force
|
577
|
+
|
578
|
+
# Add or remove space between 'scope' and '(' in 'scope (something) { }' (D language)
|
579
|
+
# If set to ignore, sp_before_sparen is used.
|
580
|
+
sp_scope_paren = ignore # ignore/add/remove/force
|
581
|
+
|
582
|
+
# Add or remove space between macro and value
|
583
|
+
sp_macro = ignore # ignore/add/remove/force
|
584
|
+
|
585
|
+
# Add or remove space between macro function ')' and value
|
586
|
+
sp_macro_func = ignore # ignore/add/remove/force
|
587
|
+
|
588
|
+
# Add or remove space between 'else' and '{' if on the same line
|
589
|
+
sp_else_brace = ignore # ignore/add/remove/force
|
590
|
+
|
591
|
+
# Add or remove space between '}' and 'else' if on the same line
|
592
|
+
sp_brace_else = ignore # ignore/add/remove/force
|
593
|
+
|
594
|
+
# Add or remove space between '}' and the name of a typedef on the same line
|
595
|
+
sp_brace_typedef = ignore # ignore/add/remove/force
|
596
|
+
|
597
|
+
# Add or remove space between 'catch' and '{' if on the same line
|
598
|
+
sp_catch_brace = ignore # ignore/add/remove/force
|
599
|
+
|
600
|
+
# Add or remove space between '}' and 'catch' if on the same line
|
601
|
+
sp_brace_catch = ignore # ignore/add/remove/force
|
602
|
+
|
603
|
+
# Add or remove space between 'finally' and '{' if on the same line
|
604
|
+
sp_finally_brace = ignore # ignore/add/remove/force
|
605
|
+
|
606
|
+
# Add or remove space between '}' and 'finally' if on the same line
|
607
|
+
sp_brace_finally = ignore # ignore/add/remove/force
|
608
|
+
|
609
|
+
# Add or remove space between 'try' and '{' if on the same line
|
610
|
+
sp_try_brace = ignore # ignore/add/remove/force
|
611
|
+
|
612
|
+
# Add or remove space between get/set and '{' if on the same line
|
613
|
+
sp_getset_brace = ignore # ignore/add/remove/force
|
614
|
+
|
615
|
+
# Add or remove space between a variable and '{' for C++ uniform initialization
|
616
|
+
sp_word_brace = add # ignore/add/remove/force
|
617
|
+
|
618
|
+
# Add or remove space between a variable and '{' for a namespace
|
619
|
+
sp_word_brace_ns = add # ignore/add/remove/force
|
620
|
+
|
621
|
+
# Add or remove space before the '::' operator
|
622
|
+
sp_before_dc = ignore # ignore/add/remove/force
|
623
|
+
|
624
|
+
# Add or remove space after the '::' operator
|
625
|
+
sp_after_dc = ignore # ignore/add/remove/force
|
626
|
+
|
627
|
+
# Add or remove around the D named array initializer ':' operator
|
628
|
+
sp_d_array_colon = ignore # ignore/add/remove/force
|
629
|
+
|
630
|
+
# Add or remove space after the '!' (not) operator. Default=Remove
|
631
|
+
sp_not = remove # ignore/add/remove/force
|
632
|
+
|
633
|
+
# Add or remove space after the '~' (invert) operator. Default=Remove
|
634
|
+
sp_inv = remove # ignore/add/remove/force
|
635
|
+
|
636
|
+
# Add or remove space after the '&' (address-of) operator. Default=Remove
|
637
|
+
# This does not affect the spacing after a '&' that is part of a type.
|
638
|
+
sp_addr = remove # ignore/add/remove/force
|
639
|
+
|
640
|
+
# Add or remove space around the '.' or '->' operators. Default=Remove
|
641
|
+
sp_member = remove # ignore/add/remove/force
|
642
|
+
|
643
|
+
# Add or remove space after the '*' (dereference) operator. Default=Remove
|
644
|
+
# This does not affect the spacing after a '*' that is part of a type.
|
645
|
+
sp_deref = remove # ignore/add/remove/force
|
646
|
+
|
647
|
+
# Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove
|
648
|
+
sp_sign = remove # ignore/add/remove/force
|
649
|
+
|
650
|
+
# Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove
|
651
|
+
sp_incdec = remove # ignore/add/remove/force
|
652
|
+
|
653
|
+
# Add or remove space before a backslash-newline at the end of a line. Default=Add
|
654
|
+
sp_before_nl_cont = add # ignore/add/remove/force
|
655
|
+
|
656
|
+
# Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
|
657
|
+
sp_after_oc_scope = ignore # ignore/add/remove/force
|
658
|
+
|
659
|
+
# Add or remove space after the colon in message specs
|
660
|
+
# '-(int) f:(int) x;' vs '-(int) f: (int) x;'
|
661
|
+
sp_after_oc_colon = ignore # ignore/add/remove/force
|
662
|
+
|
663
|
+
# Add or remove space before the colon in message specs
|
664
|
+
# '-(int) f: (int) x;' vs '-(int) f : (int) x;'
|
665
|
+
sp_before_oc_colon = ignore # ignore/add/remove/force
|
666
|
+
|
667
|
+
# Add or remove space after the colon in immutable dictionary expression
|
668
|
+
# 'NSDictionary *test = @{@"foo" :@"bar"};'
|
669
|
+
sp_after_oc_dict_colon = ignore # ignore/add/remove/force
|
670
|
+
|
671
|
+
# Add or remove space before the colon in immutable dictionary expression
|
672
|
+
# 'NSDictionary *test = @{@"foo" :@"bar"};'
|
673
|
+
sp_before_oc_dict_colon = ignore # ignore/add/remove/force
|
674
|
+
|
675
|
+
# Add or remove space after the colon in message specs
|
676
|
+
# '[object setValue:1];' vs '[object setValue: 1];'
|
677
|
+
sp_after_send_oc_colon = ignore # ignore/add/remove/force
|
678
|
+
|
679
|
+
# Add or remove space before the colon in message specs
|
680
|
+
# '[object setValue:1];' vs '[object setValue :1];'
|
681
|
+
sp_before_send_oc_colon = ignore # ignore/add/remove/force
|
682
|
+
|
683
|
+
# Add or remove space after the (type) in message specs
|
684
|
+
# '-(int)f: (int) x;' vs '-(int)f: (int)x;'
|
685
|
+
sp_after_oc_type = ignore # ignore/add/remove/force
|
686
|
+
|
687
|
+
# Add or remove space after the first (type) in message specs
|
688
|
+
# '-(int) f:(int)x;' vs '-(int)f:(int)x;'
|
689
|
+
sp_after_oc_return_type = ignore # ignore/add/remove/force
|
690
|
+
|
691
|
+
# Add or remove space between '@selector' and '('
|
692
|
+
# '@selector(msgName)' vs '@selector (msgName)'
|
693
|
+
# Also applies to @protocol() constructs
|
694
|
+
sp_after_oc_at_sel = ignore # ignore/add/remove/force
|
695
|
+
|
696
|
+
# Add or remove space between '@selector(x)' and the following word
|
697
|
+
# '@selector(foo) a:' vs '@selector(foo)a:'
|
698
|
+
sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force
|
699
|
+
|
700
|
+
# Add or remove space inside '@selector' parens
|
701
|
+
# '@selector(foo)' vs '@selector( foo )'
|
702
|
+
# Also applies to @protocol() constructs
|
703
|
+
sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force
|
704
|
+
|
705
|
+
# Add or remove space before a block pointer caret
|
706
|
+
# '^int (int arg){...}' vs. ' ^int (int arg){...}'
|
707
|
+
sp_before_oc_block_caret = ignore # ignore/add/remove/force
|
708
|
+
|
709
|
+
# Add or remove space after a block pointer caret
|
710
|
+
# '^int (int arg){...}' vs. '^ int (int arg){...}'
|
711
|
+
sp_after_oc_block_caret = ignore # ignore/add/remove/force
|
712
|
+
|
713
|
+
# Add or remove space between the receiver and selector in a message.
|
714
|
+
# '[receiver selector ...]'
|
715
|
+
sp_after_oc_msg_receiver = ignore # ignore/add/remove/force
|
716
|
+
|
717
|
+
# Add or remove space after @property.
|
718
|
+
sp_after_oc_property = ignore # ignore/add/remove/force
|
719
|
+
|
720
|
+
# Add or remove space around the ':' in 'b ? t : f'
|
721
|
+
sp_cond_colon = ignore # ignore/add/remove/force
|
722
|
+
|
723
|
+
# Add or remove space before the ':' in 'b ? t : f'. Overrides sp_cond_colon.
|
724
|
+
sp_cond_colon_before = ignore # ignore/add/remove/force
|
725
|
+
|
726
|
+
# Add or remove space after the ':' in 'b ? t : f'. Overrides sp_cond_colon.
|
727
|
+
sp_cond_colon_after = ignore # ignore/add/remove/force
|
728
|
+
|
729
|
+
# Add or remove space around the '?' in 'b ? t : f'
|
730
|
+
sp_cond_question = ignore # ignore/add/remove/force
|
731
|
+
|
732
|
+
# Add or remove space before the '?' in 'b ? t : f'. Overrides sp_cond_question.
|
733
|
+
sp_cond_question_before = ignore # ignore/add/remove/force
|
734
|
+
|
735
|
+
# Add or remove space after the '?' in 'b ? t : f'. Overrides sp_cond_question.
|
736
|
+
sp_cond_question_after = ignore # ignore/add/remove/force
|
737
|
+
|
738
|
+
# In the abbreviated ternary form (a ?: b), add/remove space between ? and :.'. Overrides all other sp_cond_* options.
|
739
|
+
sp_cond_ternary_short = ignore # ignore/add/remove/force
|
740
|
+
|
741
|
+
# Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
|
742
|
+
sp_case_label = ignore # ignore/add/remove/force
|
743
|
+
|
744
|
+
# Control the space around the D '..' operator.
|
745
|
+
sp_range = ignore # ignore/add/remove/force
|
746
|
+
|
747
|
+
# Control the spacing after ':' in 'for (TYPE VAR : EXPR)' (Java)
|
748
|
+
sp_after_for_colon = ignore # ignore/add/remove/force
|
749
|
+
|
750
|
+
# Control the spacing before ':' in 'for (TYPE VAR : EXPR)' (Java)
|
751
|
+
sp_before_for_colon = ignore # ignore/add/remove/force
|
752
|
+
|
753
|
+
# Control the spacing in 'extern (C)' (D)
|
754
|
+
sp_extern_paren = ignore # ignore/add/remove/force
|
755
|
+
|
756
|
+
# Control the space after the opening of a C++ comment '// A' vs '//A'
|
757
|
+
sp_cmt_cpp_start = ignore # ignore/add/remove/force
|
758
|
+
|
759
|
+
# Controls the spaces between #else or #endif and a trailing comment
|
760
|
+
sp_endif_cmt = ignore # ignore/add/remove/force
|
761
|
+
|
762
|
+
# Controls the spaces after 'new', 'delete', and 'delete[]'
|
763
|
+
sp_after_new = ignore # ignore/add/remove/force
|
764
|
+
|
765
|
+
# Controls the spaces before a trailing or embedded comment
|
766
|
+
sp_before_tr_emb_cmt = ignore # ignore/add/remove/force
|
767
|
+
|
768
|
+
# Number of spaces before a trailing or embedded comment
|
769
|
+
sp_num_before_tr_emb_cmt = 0 # number
|
770
|
+
|
771
|
+
# Control space between a Java annotation and the open paren.
|
772
|
+
sp_annotation_paren = ignore # ignore/add/remove/force
|
773
|
+
|
774
|
+
#
|
775
|
+
# Code alignment (not left column spaces/tabs)
|
776
|
+
#
|
777
|
+
|
778
|
+
# Whether to keep non-indenting tabs
|
779
|
+
align_keep_tabs = false # false/true
|
780
|
+
|
781
|
+
# Whether to use tabs for aligning
|
782
|
+
align_with_tabs = false # false/true
|
783
|
+
|
784
|
+
# Whether to bump out to the next tab when aligning
|
785
|
+
align_on_tabstop = false # false/true
|
786
|
+
|
787
|
+
# Whether to left-align numbers
|
788
|
+
align_number_left = false # false/true
|
789
|
+
|
790
|
+
# Whether to keep whitespace not required for alignment.
|
791
|
+
align_keep_extra_space = false # false/true
|
792
|
+
|
793
|
+
# Align variable definitions in prototypes and functions
|
794
|
+
align_func_params = false # false/true
|
795
|
+
|
796
|
+
# Align parameters in single-line functions that have the same name.
|
797
|
+
# The function names must already be aligned with each other.
|
798
|
+
align_same_func_call_params = false # false/true
|
799
|
+
|
800
|
+
# The span for aligning variable definitions (0=don't align)
|
801
|
+
align_var_def_span = 0 # number
|
802
|
+
|
803
|
+
# How to align the star in variable definitions.
|
804
|
+
# 0=Part of the type 'void * foo;'
|
805
|
+
# 1=Part of the variable 'void *foo;'
|
806
|
+
# 2=Dangling 'void *foo;'
|
807
|
+
align_var_def_star_style = 0 # number
|
808
|
+
|
809
|
+
# How to align the '&' in variable definitions.
|
810
|
+
# 0=Part of the type
|
811
|
+
# 1=Part of the variable
|
812
|
+
# 2=Dangling
|
813
|
+
align_var_def_amp_style = 0 # number
|
814
|
+
|
815
|
+
# The threshold for aligning variable definitions (0=no limit)
|
816
|
+
align_var_def_thresh = 0 # number
|
817
|
+
|
818
|
+
# The gap for aligning variable definitions
|
819
|
+
align_var_def_gap = 0 # number
|
820
|
+
|
821
|
+
# Whether to align the colon in struct bit fields
|
822
|
+
align_var_def_colon = false # false/true
|
823
|
+
|
824
|
+
# Whether to align any attribute after the variable name
|
825
|
+
align_var_def_attribute = false # false/true
|
826
|
+
|
827
|
+
# Whether to align inline struct/enum/union variable definitions
|
828
|
+
align_var_def_inline = false # false/true
|
829
|
+
|
830
|
+
# The span for aligning on '=' in assignments (0=don't align)
|
831
|
+
align_assign_span = 0 # number
|
832
|
+
|
833
|
+
# The threshold for aligning on '=' in assignments (0=no limit)
|
834
|
+
align_assign_thresh = 0 # number
|
835
|
+
|
836
|
+
# The span for aligning on '=' in enums (0=don't align)
|
837
|
+
align_enum_equ_span = 0 # number
|
838
|
+
|
839
|
+
# The threshold for aligning on '=' in enums (0=no limit)
|
840
|
+
align_enum_equ_thresh = 0 # number
|
841
|
+
|
842
|
+
# The span for aligning struct/union (0=don't align)
|
843
|
+
align_var_struct_span = 0 # number
|
844
|
+
|
845
|
+
# The threshold for aligning struct/union member definitions (0=no limit)
|
846
|
+
align_var_struct_thresh = 0 # number
|
847
|
+
|
848
|
+
# The gap for aligning struct/union member definitions
|
849
|
+
align_var_struct_gap = 0 # number
|
850
|
+
|
851
|
+
# The span for aligning struct initializer values (0=don't align)
|
852
|
+
align_struct_init_span = 0 # number
|
853
|
+
|
854
|
+
# The minimum space between the type and the synonym of a typedef
|
855
|
+
align_typedef_gap = 0 # number
|
856
|
+
|
857
|
+
# The span for aligning single-line typedefs (0=don't align)
|
858
|
+
align_typedef_span = 0 # number
|
859
|
+
|
860
|
+
# How to align typedef'd functions with other typedefs
|
861
|
+
# 0: Don't mix them at all
|
862
|
+
# 1: align the open paren with the types
|
863
|
+
# 2: align the function type name with the other type names
|
864
|
+
align_typedef_func = 0 # number
|
865
|
+
|
866
|
+
# Controls the positioning of the '*' in typedefs. Just try it.
|
867
|
+
# 0: Align on typedef type, ignore '*'
|
868
|
+
# 1: The '*' is part of type name: typedef int *pint;
|
869
|
+
# 2: The '*' is part of the type, but dangling: typedef int *pint;
|
870
|
+
align_typedef_star_style = 0 # number
|
871
|
+
|
872
|
+
# Controls the positioning of the '&' in typedefs. Just try it.
|
873
|
+
# 0: Align on typedef type, ignore '&'
|
874
|
+
# 1: The '&' is part of type name: typedef int &pint;
|
875
|
+
# 2: The '&' is part of the type, but dangling: typedef int &pint;
|
876
|
+
align_typedef_amp_style = 0 # number
|
877
|
+
|
878
|
+
# The span for aligning comments that end lines (0=don't align)
|
879
|
+
align_right_cmt_span = 0 # number
|
880
|
+
|
881
|
+
# If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
|
882
|
+
align_right_cmt_mix = false # false/true
|
883
|
+
|
884
|
+
# If a trailing comment is more than this number of columns away from the text it follows,
|
885
|
+
# it will qualify for being aligned. This has to be > 0 to do anything.
|
886
|
+
align_right_cmt_gap = 0 # number
|
887
|
+
|
888
|
+
# Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore)
|
889
|
+
align_right_cmt_at_col = 0 # number
|
890
|
+
|
891
|
+
# The span for aligning function prototypes (0=don't align)
|
892
|
+
align_func_proto_span = 0 # number
|
893
|
+
|
894
|
+
# Minimum gap between the return type and the function name.
|
895
|
+
align_func_proto_gap = 0 # number
|
896
|
+
|
897
|
+
# Align function protos on the 'operator' keyword instead of what follows
|
898
|
+
align_on_operator = false # false/true
|
899
|
+
|
900
|
+
# Whether to mix aligning prototype and variable declarations.
|
901
|
+
# If true, align_var_def_XXX options are used instead of align_func_proto_XXX options.
|
902
|
+
align_mix_var_proto = false # false/true
|
903
|
+
|
904
|
+
# Align single-line functions with function prototypes, uses align_func_proto_span
|
905
|
+
align_single_line_func = false # false/true
|
906
|
+
|
907
|
+
# Aligning the open brace of single-line functions.
|
908
|
+
# Requires align_single_line_func=true, uses align_func_proto_span
|
909
|
+
align_single_line_brace = false # false/true
|
910
|
+
|
911
|
+
# Gap for align_single_line_brace.
|
912
|
+
align_single_line_brace_gap = 0 # number
|
913
|
+
|
914
|
+
# The span for aligning ObjC msg spec (0=don't align)
|
915
|
+
align_oc_msg_spec_span = 0 # number
|
916
|
+
|
917
|
+
# Whether to align macros wrapped with a backslash and a newline.
|
918
|
+
# This will not work right if the macro contains a multi-line comment.
|
919
|
+
align_nl_cont = false # false/true
|
920
|
+
|
921
|
+
# # Align macro functions and variables together
|
922
|
+
align_pp_define_together = false # false/true
|
923
|
+
|
924
|
+
# The minimum space between label and value of a preprocessor define
|
925
|
+
align_pp_define_gap = 0 # number
|
926
|
+
|
927
|
+
# The span for aligning on '#define' bodies (0=don't align, other=number of lines including comments between blocks)
|
928
|
+
align_pp_define_span = 0 # number
|
929
|
+
|
930
|
+
# Align lines that start with '<<' with previous '<<'. Default=true
|
931
|
+
align_left_shift = true # false/true
|
932
|
+
|
933
|
+
# Span for aligning parameters in an Obj-C message call on the ':' (0=don't align)
|
934
|
+
align_oc_msg_colon_span = 0 # number
|
935
|
+
|
936
|
+
# If true, always align with the first parameter, even if it is too short.
|
937
|
+
align_oc_msg_colon_first = false # false/true
|
938
|
+
|
939
|
+
# Aligning parameters in an Obj-C '+' or '-' declaration on the ':'
|
940
|
+
align_oc_decl_colon = false # false/true
|
941
|
+
|
942
|
+
#
|
943
|
+
# Newline adding and removing options
|
944
|
+
#
|
945
|
+
|
946
|
+
# Whether to collapse empty blocks between '{' and '}'
|
947
|
+
nl_collapse_empty_body = false # false/true
|
948
|
+
|
949
|
+
# Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
|
950
|
+
nl_assign_leave_one_liners = false # false/true
|
951
|
+
|
952
|
+
# Don't split one-line braced statements inside a class xx { } body
|
953
|
+
nl_class_leave_one_liners = false # false/true
|
954
|
+
|
955
|
+
# Don't split one-line enums: 'enum foo { BAR = 15 };'
|
956
|
+
nl_enum_leave_one_liners = false # false/true
|
957
|
+
|
958
|
+
# Don't split one-line get or set functions
|
959
|
+
nl_getset_leave_one_liners = false # false/true
|
960
|
+
|
961
|
+
# Don't split one-line function definitions - 'int foo() { return 0; }'
|
962
|
+
nl_func_leave_one_liners = false # false/true
|
963
|
+
|
964
|
+
# Don't split one-line C++11 lambdas - '[]() { return 0; }'
|
965
|
+
nl_cpp_lambda_leave_one_liners = false # false/true
|
966
|
+
|
967
|
+
# Don't split one-line if/else statements - 'if(a) b++;'
|
968
|
+
nl_if_leave_one_liners = false # false/true
|
969
|
+
|
970
|
+
# Don't split one-line OC messages
|
971
|
+
nl_oc_msg_leave_one_liner = false # false/true
|
972
|
+
|
973
|
+
# Add or remove newlines at the start of the file
|
974
|
+
nl_start_of_file = ignore # ignore/add/remove/force
|
975
|
+
|
976
|
+
# The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
|
977
|
+
nl_start_of_file_min = 0 # number
|
978
|
+
|
979
|
+
# Add or remove newline at the end of the file
|
980
|
+
nl_end_of_file = ignore # ignore/add/remove/force
|
981
|
+
|
982
|
+
# The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
|
983
|
+
nl_end_of_file_min = 0 # number
|
984
|
+
|
985
|
+
# Add or remove newline between '=' and '{'
|
986
|
+
nl_assign_brace = ignore # ignore/add/remove/force
|
987
|
+
|
988
|
+
# Add or remove newline between '=' and '[' (D only)
|
989
|
+
nl_assign_square = ignore # ignore/add/remove/force
|
990
|
+
|
991
|
+
# Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
|
992
|
+
nl_after_square_assign = ignore # ignore/add/remove/force
|
993
|
+
|
994
|
+
# The number of blank lines after a block of variable definitions at the top of a function body
|
995
|
+
# 0 = No change (default)
|
996
|
+
nl_func_var_def_blk = 0 # number
|
997
|
+
|
998
|
+
# The number of newlines before a block of typedefs
|
999
|
+
# 0 = No change (default)
|
1000
|
+
nl_typedef_blk_start = 0 # number
|
1001
|
+
|
1002
|
+
# The number of newlines after a block of typedefs
|
1003
|
+
# 0 = No change (default)
|
1004
|
+
nl_typedef_blk_end = 0 # number
|
1005
|
+
|
1006
|
+
# The maximum consecutive newlines within a block of typedefs
|
1007
|
+
# 0 = No change (default)
|
1008
|
+
nl_typedef_blk_in = 0 # number
|
1009
|
+
|
1010
|
+
# The number of newlines before a block of variable definitions not at the top of a function body
|
1011
|
+
# 0 = No change (default)
|
1012
|
+
nl_var_def_blk_start = 0 # number
|
1013
|
+
|
1014
|
+
# The number of newlines after a block of variable definitions not at the top of a function body
|
1015
|
+
# 0 = No change (default)
|
1016
|
+
nl_var_def_blk_end = 0 # number
|
1017
|
+
|
1018
|
+
# The maximum consecutive newlines within a block of variable definitions
|
1019
|
+
# 0 = No change (default)
|
1020
|
+
nl_var_def_blk_in = 0 # number
|
1021
|
+
|
1022
|
+
# Add or remove newline between a function call's ')' and '{', as in:
|
1023
|
+
# list_for_each(item, &list) { }
|
1024
|
+
nl_fcall_brace = ignore # ignore/add/remove/force
|
1025
|
+
|
1026
|
+
# Add or remove newline between 'enum' and '{'
|
1027
|
+
nl_enum_brace = ignore # ignore/add/remove/force
|
1028
|
+
|
1029
|
+
# Add or remove newline between 'struct and '{'
|
1030
|
+
nl_struct_brace = ignore # ignore/add/remove/force
|
1031
|
+
|
1032
|
+
# Add or remove newline between 'union' and '{'
|
1033
|
+
nl_union_brace = ignore # ignore/add/remove/force
|
1034
|
+
|
1035
|
+
# Add or remove newline between 'if' and '{'
|
1036
|
+
nl_if_brace = ignore # ignore/add/remove/force
|
1037
|
+
|
1038
|
+
# Add or remove newline between '}' and 'else'
|
1039
|
+
nl_brace_else = ignore # ignore/add/remove/force
|
1040
|
+
|
1041
|
+
# Add or remove newline between 'else if' and '{'
|
1042
|
+
# If set to ignore, nl_if_brace is used instead
|
1043
|
+
nl_elseif_brace = ignore # ignore/add/remove/force
|
1044
|
+
|
1045
|
+
# Add or remove newline between 'else' and '{'
|
1046
|
+
nl_else_brace = ignore # ignore/add/remove/force
|
1047
|
+
|
1048
|
+
# Add or remove newline between 'else' and 'if'
|
1049
|
+
nl_else_if = ignore # ignore/add/remove/force
|
1050
|
+
|
1051
|
+
# Add or remove newline between '}' and 'finally'
|
1052
|
+
nl_brace_finally = ignore # ignore/add/remove/force
|
1053
|
+
|
1054
|
+
# Add or remove newline between 'finally' and '{'
|
1055
|
+
nl_finally_brace = ignore # ignore/add/remove/force
|
1056
|
+
|
1057
|
+
# Add or remove newline between 'try' and '{'
|
1058
|
+
nl_try_brace = ignore # ignore/add/remove/force
|
1059
|
+
|
1060
|
+
# Add or remove newline between get/set and '{'
|
1061
|
+
nl_getset_brace = ignore # ignore/add/remove/force
|
1062
|
+
|
1063
|
+
# Add or remove newline between 'for' and '{'
|
1064
|
+
nl_for_brace = ignore # ignore/add/remove/force
|
1065
|
+
|
1066
|
+
# Add or remove newline between 'catch' and '{'
|
1067
|
+
nl_catch_brace = ignore # ignore/add/remove/force
|
1068
|
+
|
1069
|
+
# Add or remove newline between '}' and 'catch'
|
1070
|
+
nl_brace_catch = ignore # ignore/add/remove/force
|
1071
|
+
|
1072
|
+
# Add or remove newline between '}' and ']'
|
1073
|
+
nl_brace_square = ignore # ignore/add/remove/force
|
1074
|
+
|
1075
|
+
# Add or remove newline between '}' and ')' in a function invocation
|
1076
|
+
nl_brace_fparen = ignore # ignore/add/remove/force
|
1077
|
+
|
1078
|
+
# Add or remove newline between 'while' and '{'
|
1079
|
+
nl_while_brace = ignore # ignore/add/remove/force
|
1080
|
+
|
1081
|
+
# Add or remove newline between 'scope (x)' and '{' (D)
|
1082
|
+
nl_scope_brace = ignore # ignore/add/remove/force
|
1083
|
+
|
1084
|
+
# Add or remove newline between 'unittest' and '{' (D)
|
1085
|
+
nl_unittest_brace = ignore # ignore/add/remove/force
|
1086
|
+
|
1087
|
+
# Add or remove newline between 'version (x)' and '{' (D)
|
1088
|
+
nl_version_brace = ignore # ignore/add/remove/force
|
1089
|
+
|
1090
|
+
# Add or remove newline between 'using' and '{'
|
1091
|
+
nl_using_brace = ignore # ignore/add/remove/force
|
1092
|
+
|
1093
|
+
# Add or remove newline between two open or close braces.
|
1094
|
+
# Due to general newline/brace handling, REMOVE may not work.
|
1095
|
+
nl_brace_brace = ignore # ignore/add/remove/force
|
1096
|
+
|
1097
|
+
# Add or remove newline between 'do' and '{'
|
1098
|
+
nl_do_brace = ignore # ignore/add/remove/force
|
1099
|
+
|
1100
|
+
# Add or remove newline between '}' and 'while' of 'do' statement
|
1101
|
+
nl_brace_while = ignore # ignore/add/remove/force
|
1102
|
+
|
1103
|
+
# Add or remove newline between 'switch' and '{'
|
1104
|
+
nl_switch_brace = ignore # ignore/add/remove/force
|
1105
|
+
|
1106
|
+
# Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc.
|
1107
|
+
# Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace.
|
1108
|
+
nl_multi_line_cond = false # false/true
|
1109
|
+
|
1110
|
+
# Force a newline in a define after the macro name for multi-line defines.
|
1111
|
+
nl_multi_line_define = false # false/true
|
1112
|
+
|
1113
|
+
# Whether to put a newline before 'case' statement
|
1114
|
+
nl_before_case = false # false/true
|
1115
|
+
|
1116
|
+
# Add or remove newline between ')' and 'throw'
|
1117
|
+
nl_before_throw = ignore # ignore/add/remove/force
|
1118
|
+
|
1119
|
+
# Whether to put a newline after 'case' statement
|
1120
|
+
nl_after_case = false # false/true
|
1121
|
+
|
1122
|
+
# Add or remove a newline between a case ':' and '{'. Overrides nl_after_case.
|
1123
|
+
nl_case_colon_brace = ignore # ignore/add/remove/force
|
1124
|
+
|
1125
|
+
# Newline between namespace and {
|
1126
|
+
nl_namespace_brace = ignore # ignore/add/remove/force
|
1127
|
+
|
1128
|
+
# Add or remove newline between 'template<>' and whatever follows.
|
1129
|
+
nl_template_class = ignore # ignore/add/remove/force
|
1130
|
+
|
1131
|
+
# Add or remove newline between 'class' and '{'
|
1132
|
+
nl_class_brace = ignore # ignore/add/remove/force
|
1133
|
+
|
1134
|
+
# Add or remove newline after each ',' in the class base list
|
1135
|
+
nl_class_init_args = ignore # ignore/add/remove/force
|
1136
|
+
|
1137
|
+
# Add or remove newline after each ',' in the constructor member initialization
|
1138
|
+
nl_constr_init_args = ignore # ignore/add/remove/force
|
1139
|
+
|
1140
|
+
# Add or remove newline between return type and function name in a function definition
|
1141
|
+
nl_func_type_name = ignore # ignore/add/remove/force
|
1142
|
+
|
1143
|
+
# Add or remove newline between return type and function name inside a class {}
|
1144
|
+
# Uses nl_func_type_name or nl_func_proto_type_name if set to ignore.
|
1145
|
+
nl_func_type_name_class = ignore # ignore/add/remove/force
|
1146
|
+
|
1147
|
+
# Add or remove newline between function scope and name in a definition
|
1148
|
+
# Controls the newline after '::' in 'void A::f() { }'
|
1149
|
+
nl_func_scope_name = ignore # ignore/add/remove/force
|
1150
|
+
|
1151
|
+
# Add or remove newline between return type and function name in a prototype
|
1152
|
+
nl_func_proto_type_name = ignore # ignore/add/remove/force
|
1153
|
+
|
1154
|
+
# Add or remove newline between a function name and the opening '('
|
1155
|
+
nl_func_paren = ignore # ignore/add/remove/force
|
1156
|
+
|
1157
|
+
# Add or remove newline between a function name and the opening '(' in the definition
|
1158
|
+
nl_func_def_paren = ignore # ignore/add/remove/force
|
1159
|
+
|
1160
|
+
# Add or remove newline after '(' in a function declaration
|
1161
|
+
nl_func_decl_start = ignore # ignore/add/remove/force
|
1162
|
+
|
1163
|
+
# Add or remove newline after '(' in a function definition
|
1164
|
+
nl_func_def_start = ignore # ignore/add/remove/force
|
1165
|
+
|
1166
|
+
# Overrides nl_func_decl_start when there is only one parameter.
|
1167
|
+
nl_func_decl_start_single = ignore # ignore/add/remove/force
|
1168
|
+
|
1169
|
+
# Overrides nl_func_def_start when there is only one parameter.
|
1170
|
+
nl_func_def_start_single = ignore # ignore/add/remove/force
|
1171
|
+
|
1172
|
+
# Add or remove newline after each ',' in a function declaration
|
1173
|
+
nl_func_decl_args = ignore # ignore/add/remove/force
|
1174
|
+
|
1175
|
+
# Add or remove newline after each ',' in a function definition
|
1176
|
+
nl_func_def_args = ignore # ignore/add/remove/force
|
1177
|
+
|
1178
|
+
# Add or remove newline before the ')' in a function declaration
|
1179
|
+
nl_func_decl_end = ignore # ignore/add/remove/force
|
1180
|
+
|
1181
|
+
# Add or remove newline before the ')' in a function definition
|
1182
|
+
nl_func_def_end = ignore # ignore/add/remove/force
|
1183
|
+
|
1184
|
+
# Overrides nl_func_decl_end when there is only one parameter.
|
1185
|
+
nl_func_decl_end_single = ignore # ignore/add/remove/force
|
1186
|
+
|
1187
|
+
# Overrides nl_func_def_end when there is only one parameter.
|
1188
|
+
nl_func_def_end_single = ignore # ignore/add/remove/force
|
1189
|
+
|
1190
|
+
# Add or remove newline between '()' in a function declaration.
|
1191
|
+
nl_func_decl_empty = ignore # ignore/add/remove/force
|
1192
|
+
|
1193
|
+
# Add or remove newline between '()' in a function definition.
|
1194
|
+
nl_func_def_empty = ignore # ignore/add/remove/force
|
1195
|
+
|
1196
|
+
# Whether to put each OC message parameter on a separate line
|
1197
|
+
# See nl_oc_msg_leave_one_liner
|
1198
|
+
nl_oc_msg_args = false # false/true
|
1199
|
+
|
1200
|
+
# Add or remove newline between function signature and '{'
|
1201
|
+
nl_fdef_brace = ignore # ignore/add/remove/force
|
1202
|
+
|
1203
|
+
# Add or remove newline between C++11 lambda signature and '{'
|
1204
|
+
nl_cpp_ldef_brace = ignore # ignore/add/remove/force
|
1205
|
+
|
1206
|
+
# Add or remove a newline between the return keyword and return expression.
|
1207
|
+
nl_return_expr = ignore # ignore/add/remove/force
|
1208
|
+
|
1209
|
+
# Whether to put a newline after semicolons, except in 'for' statements
|
1210
|
+
nl_after_semicolon = false # false/true
|
1211
|
+
|
1212
|
+
# Java: Control the newline between the ')' and '{{' of the double brace initializer.
|
1213
|
+
nl_paren_dbrace_open = ignore # ignore/add/remove/force
|
1214
|
+
|
1215
|
+
# Whether to put a newline after brace open.
|
1216
|
+
# This also adds a newline before the matching brace close.
|
1217
|
+
nl_after_brace_open = false # false/true
|
1218
|
+
|
1219
|
+
# If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is
|
1220
|
+
# placed between the open brace and a trailing single-line comment.
|
1221
|
+
nl_after_brace_open_cmt = false # false/true
|
1222
|
+
|
1223
|
+
# Whether to put a newline after a virtual brace open with a non-empty body.
|
1224
|
+
# These occur in un-braced if/while/do/for statement bodies.
|
1225
|
+
nl_after_vbrace_open = false # false/true
|
1226
|
+
|
1227
|
+
# Whether to put a newline after a virtual brace open with an empty body.
|
1228
|
+
# These occur in un-braced if/while/do/for statement bodies.
|
1229
|
+
nl_after_vbrace_open_empty = false # false/true
|
1230
|
+
|
1231
|
+
# Whether to put a newline after a brace close.
|
1232
|
+
# Does not apply if followed by a necessary ';'.
|
1233
|
+
nl_after_brace_close = false # false/true
|
1234
|
+
|
1235
|
+
# Whether to put a newline after a virtual brace close.
|
1236
|
+
# Would add a newline before return in: 'if (foo) a++; return;'
|
1237
|
+
nl_after_vbrace_close = false # false/true
|
1238
|
+
|
1239
|
+
# Control the newline between the close brace and 'b' in: 'struct { int a; } b;'
|
1240
|
+
# Affects enums, unions, and structures. If set to ignore, uses nl_after_brace_close
|
1241
|
+
nl_brace_struct_var = ignore # ignore/add/remove/force
|
1242
|
+
|
1243
|
+
# Whether to alter newlines in '#define' macros
|
1244
|
+
nl_define_macro = false # false/true
|
1245
|
+
|
1246
|
+
# Whether to not put blanks after '#ifxx', '#elxx', or before '#endif'
|
1247
|
+
nl_squeeze_ifdef = false # false/true
|
1248
|
+
|
1249
|
+
# Add or remove blank line before 'if'
|
1250
|
+
nl_before_if = ignore # ignore/add/remove/force
|
1251
|
+
|
1252
|
+
# Add or remove blank line after 'if' statement
|
1253
|
+
nl_after_if = remove # ignore/add/remove/force
|
1254
|
+
|
1255
|
+
# Add or remove blank line before 'for'
|
1256
|
+
nl_before_for = ignore # ignore/add/remove/force
|
1257
|
+
|
1258
|
+
# Add or remove blank line after 'for' statement
|
1259
|
+
nl_after_for = remove # ignore/add/remove/force
|
1260
|
+
|
1261
|
+
# Add or remove blank line before 'while'
|
1262
|
+
nl_before_while = ignore # ignore/add/remove/force
|
1263
|
+
|
1264
|
+
# Add or remove blank line after 'while' statement
|
1265
|
+
nl_after_while = ignore # ignore/add/remove/force
|
1266
|
+
|
1267
|
+
# Add or remove blank line before 'switch'
|
1268
|
+
nl_before_switch = ignore # ignore/add/remove/force
|
1269
|
+
|
1270
|
+
# Add or remove blank line after 'switch' statement
|
1271
|
+
nl_after_switch = ignore # ignore/add/remove/force
|
1272
|
+
|
1273
|
+
# Add or remove blank line before 'do'
|
1274
|
+
nl_before_do = ignore # ignore/add/remove/force
|
1275
|
+
|
1276
|
+
# Add or remove blank line after 'do/while' statement
|
1277
|
+
nl_after_do = ignore # ignore/add/remove/force
|
1278
|
+
|
1279
|
+
# Whether to double-space commented-entries in struct/enum
|
1280
|
+
nl_ds_struct_enum_cmt = false # false/true
|
1281
|
+
|
1282
|
+
# Whether to double-space before the close brace of a struct/union/enum
|
1283
|
+
# (lower priority than 'eat_blanks_before_close_brace')
|
1284
|
+
nl_ds_struct_enum_close_brace = false # false/true
|
1285
|
+
|
1286
|
+
# Add or remove a newline around a class colon.
|
1287
|
+
# Related to pos_class_colon, nl_class_init_args, and pos_class_comma.
|
1288
|
+
nl_class_colon = ignore # ignore/add/remove/force
|
1289
|
+
|
1290
|
+
# Add or remove a newline around a class constructor colon.
|
1291
|
+
# Related to pos_constr_colon, nl_constr_init_args, and pos_constr_comma.
|
1292
|
+
nl_constr_colon = ignore # ignore/add/remove/force
|
1293
|
+
|
1294
|
+
# Change simple unbraced if statements into a one-liner
|
1295
|
+
# 'if(b)\n i++;' => 'if(b) i++;'
|
1296
|
+
nl_create_if_one_liner = false # false/true
|
1297
|
+
|
1298
|
+
# Change simple unbraced for statements into a one-liner
|
1299
|
+
# 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
|
1300
|
+
nl_create_for_one_liner = false # false/true
|
1301
|
+
|
1302
|
+
# Change simple unbraced while statements into a one-liner
|
1303
|
+
# 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
|
1304
|
+
nl_create_while_one_liner = false # false/true
|
1305
|
+
|
1306
|
+
#
|
1307
|
+
# Positioning options
|
1308
|
+
#
|
1309
|
+
|
1310
|
+
# The position of arithmetic operators in wrapped expressions
|
1311
|
+
pos_arith = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1312
|
+
|
1313
|
+
# The position of assignment in wrapped expressions.
|
1314
|
+
# Do not affect '=' followed by '{'
|
1315
|
+
pos_assign = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1316
|
+
|
1317
|
+
# The position of boolean operators in wrapped expressions
|
1318
|
+
pos_bool = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1319
|
+
|
1320
|
+
# The position of comparison operators in wrapped expressions
|
1321
|
+
pos_compare = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1322
|
+
|
1323
|
+
# The position of conditional (b ? t : f) operators in wrapped expressions
|
1324
|
+
pos_conditional = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1325
|
+
|
1326
|
+
# The position of the comma in wrapped expressions
|
1327
|
+
pos_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1328
|
+
|
1329
|
+
# The position of the comma in the class base list
|
1330
|
+
pos_class_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1331
|
+
|
1332
|
+
# The position of the comma in the constructor initialization list
|
1333
|
+
pos_constr_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1334
|
+
|
1335
|
+
# The position of colons between class and base class list
|
1336
|
+
pos_class_colon = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1337
|
+
|
1338
|
+
# The position of colons between constructor and member initialization
|
1339
|
+
pos_constr_colon = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
|
1340
|
+
|
1341
|
+
#
|
1342
|
+
# Line Splitting options
|
1343
|
+
#
|
1344
|
+
|
1345
|
+
# Try to limit code width to N number of columns
|
1346
|
+
code_width = 0 # number
|
1347
|
+
|
1348
|
+
# Whether to fully split long 'for' statements at semi-colons
|
1349
|
+
ls_for_split_full = false # false/true
|
1350
|
+
|
1351
|
+
# Whether to fully split long function protos/calls at commas
|
1352
|
+
ls_func_split_full = false # false/true
|
1353
|
+
|
1354
|
+
# Whether to split lines as close to code_width as possible and ignore some groupings
|
1355
|
+
ls_code_width = false # false/true
|
1356
|
+
|
1357
|
+
#
|
1358
|
+
# Blank line options
|
1359
|
+
#
|
1360
|
+
|
1361
|
+
# The maximum consecutive newlines
|
1362
|
+
nl_max = 0 # number
|
1363
|
+
|
1364
|
+
# The number of newlines after a function prototype, if followed by another function prototype
|
1365
|
+
nl_after_func_proto = 0 # number
|
1366
|
+
|
1367
|
+
# The number of newlines after a function prototype, if not followed by another function prototype
|
1368
|
+
nl_after_func_proto_group = 0 # number
|
1369
|
+
|
1370
|
+
# The number of newlines after '}' of a multi-line function body
|
1371
|
+
nl_after_func_body = 0 # number
|
1372
|
+
|
1373
|
+
# The number of newlines after '}' of a multi-line function body in a class declaration
|
1374
|
+
nl_after_func_body_class = 0 # number
|
1375
|
+
|
1376
|
+
# The number of newlines after '}' of a single line function body
|
1377
|
+
nl_after_func_body_one_liner = 0 # number
|
1378
|
+
|
1379
|
+
# The minimum number of newlines before a multi-line comment.
|
1380
|
+
# Doesn't apply if after a brace open or another multi-line comment.
|
1381
|
+
nl_before_block_comment = 0 # number
|
1382
|
+
|
1383
|
+
# The minimum number of newlines before a single-line C comment.
|
1384
|
+
# Doesn't apply if after a brace open or other single-line C comments.
|
1385
|
+
nl_before_c_comment = 0 # number
|
1386
|
+
|
1387
|
+
# The minimum number of newlines before a CPP comment.
|
1388
|
+
# Doesn't apply if after a brace open or other CPP comments.
|
1389
|
+
nl_before_cpp_comment = 0 # number
|
1390
|
+
|
1391
|
+
# Whether to force a newline after a multi-line comment.
|
1392
|
+
nl_after_multiline_comment = false # false/true
|
1393
|
+
|
1394
|
+
# The number of newlines after '}' or ';' of a struct/enum/union definition
|
1395
|
+
nl_after_struct = 0 # number
|
1396
|
+
|
1397
|
+
# The number of newlines after '}' or ';' of a class definition
|
1398
|
+
nl_after_class = 0 # number
|
1399
|
+
|
1400
|
+
# The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
|
1401
|
+
# Will not change the newline count if after a brace open.
|
1402
|
+
# 0 = No change.
|
1403
|
+
nl_before_access_spec = 0 # number
|
1404
|
+
|
1405
|
+
# The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
|
1406
|
+
# 0 = No change.
|
1407
|
+
nl_after_access_spec = 0 # number
|
1408
|
+
|
1409
|
+
# The number of newlines between a function def and the function comment.
|
1410
|
+
# 0 = No change.
|
1411
|
+
nl_comment_func_def = 0 # number
|
1412
|
+
|
1413
|
+
# The number of newlines after a try-catch-finally block that isn't followed by a brace close.
|
1414
|
+
# 0 = No change.
|
1415
|
+
nl_after_try_catch_finally = 0 # number
|
1416
|
+
|
1417
|
+
# The number of newlines before and after a property, indexer or event decl.
|
1418
|
+
# 0 = No change.
|
1419
|
+
nl_around_cs_property = 0 # number
|
1420
|
+
|
1421
|
+
# The number of newlines between the get/set/add/remove handlers in C#.
|
1422
|
+
# 0 = No change.
|
1423
|
+
nl_between_get_set = 0 # number
|
1424
|
+
|
1425
|
+
# Add or remove newline between C# property and the '{'
|
1426
|
+
nl_property_brace = ignore # ignore/add/remove/force
|
1427
|
+
|
1428
|
+
# Whether to remove blank lines after '{'
|
1429
|
+
eat_blanks_after_open_brace = false # false/true
|
1430
|
+
|
1431
|
+
# Whether to remove blank lines before '}'
|
1432
|
+
eat_blanks_before_close_brace = false # false/true
|
1433
|
+
|
1434
|
+
# How aggressively to remove extra newlines not in preproc.
|
1435
|
+
# 0: No change
|
1436
|
+
# 1: Remove most newlines not handled by other config
|
1437
|
+
# 2: Remove all newlines and reformat completely by config
|
1438
|
+
nl_remove_extra_newlines = 0 # number
|
1439
|
+
|
1440
|
+
# Whether to put a blank line before 'return' statements, unless after an open brace.
|
1441
|
+
nl_before_return = false # false/true
|
1442
|
+
|
1443
|
+
# Whether to put a blank line after 'return' statements, unless followed by a close brace.
|
1444
|
+
nl_after_return = false # false/true
|
1445
|
+
|
1446
|
+
# Whether to put a newline after a Java annotation statement.
|
1447
|
+
# Only affects annotations that are after a newline.
|
1448
|
+
nl_after_annotation = ignore # ignore/add/remove/force
|
1449
|
+
|
1450
|
+
# Controls the newline between two annotations.
|
1451
|
+
nl_between_annotation = ignore # ignore/add/remove/force
|
1452
|
+
|
1453
|
+
#
|
1454
|
+
# Code modifying options (non-whitespace)
|
1455
|
+
#
|
1456
|
+
|
1457
|
+
# Add or remove braces on single-line 'do' statement
|
1458
|
+
mod_full_brace_do = ignore # ignore/add/remove/force
|
1459
|
+
|
1460
|
+
# Add or remove braces on single-line 'for' statement
|
1461
|
+
mod_full_brace_for = ignore # ignore/add/remove/force
|
1462
|
+
|
1463
|
+
# Add or remove braces on single-line function definitions. (Pawn)
|
1464
|
+
mod_full_brace_function = ignore # ignore/add/remove/force
|
1465
|
+
|
1466
|
+
# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
|
1467
|
+
mod_full_brace_if = ignore # ignore/add/remove/force
|
1468
|
+
|
1469
|
+
# Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if.
|
1470
|
+
# If any must be braced, they are all braced. If all can be unbraced, then the braces are removed.
|
1471
|
+
mod_full_brace_if_chain = false # false/true
|
1472
|
+
|
1473
|
+
# Don't remove braces around statements that span N newlines
|
1474
|
+
mod_full_brace_nl = 0 # number
|
1475
|
+
|
1476
|
+
# Add or remove braces on single-line 'while' statement
|
1477
|
+
mod_full_brace_while = ignore # ignore/add/remove/force
|
1478
|
+
|
1479
|
+
# Add or remove braces on single-line 'using ()' statement
|
1480
|
+
mod_full_brace_using = ignore # ignore/add/remove/force
|
1481
|
+
|
1482
|
+
# Add or remove unnecessary paren on 'return' statement
|
1483
|
+
mod_paren_on_return = ignore # ignore/add/remove/force
|
1484
|
+
|
1485
|
+
# Whether to change optional semicolons to real semicolons
|
1486
|
+
mod_pawn_semicolon = false # false/true
|
1487
|
+
|
1488
|
+
# Add parens on 'while' and 'if' statement around bools
|
1489
|
+
mod_full_paren_if_bool = false # false/true
|
1490
|
+
|
1491
|
+
# Whether to remove superfluous semicolons
|
1492
|
+
mod_remove_extra_semicolon = true # false/true
|
1493
|
+
|
1494
|
+
# If a function body exceeds the specified number of newlines and doesn't have a comment after
|
1495
|
+
# the close brace, a comment will be added.
|
1496
|
+
mod_add_long_function_closebrace_comment = 0 # number
|
1497
|
+
|
1498
|
+
# If a namespace body exceeds the specified number of newlines and doesn't have a comment after
|
1499
|
+
# the close brace, a comment will be added.
|
1500
|
+
mod_add_long_namespace_closebrace_comment = 0 # number
|
1501
|
+
|
1502
|
+
# If a switch body exceeds the specified number of newlines and doesn't have a comment after
|
1503
|
+
# the close brace, a comment will be added.
|
1504
|
+
mod_add_long_switch_closebrace_comment = 0 # number
|
1505
|
+
|
1506
|
+
# If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after
|
1507
|
+
# the #endif, a comment will be added.
|
1508
|
+
mod_add_long_ifdef_endif_comment = 0 # number
|
1509
|
+
|
1510
|
+
# If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after
|
1511
|
+
# the #else, a comment will be added.
|
1512
|
+
mod_add_long_ifdef_else_comment = 0 # number
|
1513
|
+
|
1514
|
+
# If TRUE, will sort consecutive single-line 'import' statements [Java, D]
|
1515
|
+
mod_sort_import = false # false/true
|
1516
|
+
|
1517
|
+
# If TRUE, will sort consecutive single-line 'using' statements [C#]
|
1518
|
+
mod_sort_using = false # false/true
|
1519
|
+
|
1520
|
+
# If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
|
1521
|
+
# This is generally a bad idea, as it may break your code.
|
1522
|
+
mod_sort_include = false # false/true
|
1523
|
+
|
1524
|
+
# If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace.
|
1525
|
+
mod_move_case_break = false # false/true
|
1526
|
+
|
1527
|
+
# Will add or remove the braces around a fully braced case statement.
|
1528
|
+
# Will only remove the braces if there are no variable declarations in the block.
|
1529
|
+
mod_case_brace = ignore # ignore/add/remove/force
|
1530
|
+
|
1531
|
+
# If TRUE, it will remove a void 'return;' that appears as the last statement in a function.
|
1532
|
+
mod_remove_empty_return = false # false/true
|
1533
|
+
|
1534
|
+
#
|
1535
|
+
# Comment modifications
|
1536
|
+
#
|
1537
|
+
|
1538
|
+
# Try to wrap comments at cmt_width columns
|
1539
|
+
cmt_width = 0 # number
|
1540
|
+
|
1541
|
+
# Set the comment reflow mode (default: 0)
|
1542
|
+
# 0: no reflowing (apart from the line wrapping due to cmt_width)
|
1543
|
+
# 1: no touching at all
|
1544
|
+
# 2: full reflow
|
1545
|
+
cmt_reflow_mode = 0 # number
|
1546
|
+
|
1547
|
+
# Whether to convert all tabs to spaces in comments. Default is to leave tabs inside comments alone, unless used for indenting.
|
1548
|
+
cmt_convert_tab_to_spaces = false # false/true
|
1549
|
+
|
1550
|
+
# If false, disable all multi-line comment changes, including cmt_width. keyword substitution, and leading chars.
|
1551
|
+
# Default is true.
|
1552
|
+
cmt_indent_multi = false # false/true
|
1553
|
+
|
1554
|
+
# Whether to group c-comments that look like they are in a block
|
1555
|
+
cmt_c_group = false # false/true
|
1556
|
+
|
1557
|
+
# Whether to put an empty '/*' on the first line of the combined c-comment
|
1558
|
+
cmt_c_nl_start = false # false/true
|
1559
|
+
|
1560
|
+
# Whether to put a newline before the closing '*/' of the combined c-comment
|
1561
|
+
cmt_c_nl_end = false # false/true
|
1562
|
+
|
1563
|
+
# Whether to group cpp-comments that look like they are in a block
|
1564
|
+
cmt_cpp_group = false # false/true
|
1565
|
+
|
1566
|
+
# Whether to put an empty '/*' on the first line of the combined cpp-comment
|
1567
|
+
cmt_cpp_nl_start = false # false/true
|
1568
|
+
|
1569
|
+
# Whether to put a newline before the closing '*/' of the combined cpp-comment
|
1570
|
+
cmt_cpp_nl_end = false # false/true
|
1571
|
+
|
1572
|
+
# Whether to change cpp-comments into c-comments
|
1573
|
+
cmt_cpp_to_c = false # false/true
|
1574
|
+
|
1575
|
+
# Whether to put a star on subsequent comment lines
|
1576
|
+
cmt_star_cont = false # false/true
|
1577
|
+
|
1578
|
+
# The number of spaces to insert at the start of subsequent comment lines
|
1579
|
+
cmt_sp_before_star_cont = 0 # number
|
1580
|
+
|
1581
|
+
# The number of spaces to insert after the star on subsequent comment lines
|
1582
|
+
cmt_sp_after_star_cont = 0 # number
|
1583
|
+
|
1584
|
+
# For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
|
1585
|
+
# the comment are the same length. Default=True
|
1586
|
+
cmt_multi_check_last = true # false/true
|
1587
|
+
|
1588
|
+
# The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
|
1589
|
+
# Will substitute $(filename) with the current file's name.
|
1590
|
+
cmt_insert_file_header = "" # string
|
1591
|
+
|
1592
|
+
# The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment.
|
1593
|
+
# Will substitute $(filename) with the current file's name.
|
1594
|
+
cmt_insert_file_footer = "" # string
|
1595
|
+
|
1596
|
+
# The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment.
|
1597
|
+
# Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
|
1598
|
+
# Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
|
1599
|
+
cmt_insert_func_header = "" # string
|
1600
|
+
|
1601
|
+
# The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment.
|
1602
|
+
# Will substitute $(class) with the class name.
|
1603
|
+
cmt_insert_class_header = "" # string
|
1604
|
+
|
1605
|
+
# The filename that contains text to insert before a Obj-C message specification if the method isn't preceded with a C/C++ comment.
|
1606
|
+
# Will substitute $(message) with the function name and $(javaparam) with the javadoc @param and @return stuff.
|
1607
|
+
cmt_insert_oc_msg_header = "" # string
|
1608
|
+
|
1609
|
+
# If a preprocessor is encountered when stepping backwards from a function name, then
|
1610
|
+
# this option decides whether the comment should be inserted.
|
1611
|
+
# Affects cmt_insert_oc_msg_header, cmt_insert_func_header and cmt_insert_class_header.
|
1612
|
+
cmt_insert_before_preproc = false # false/true
|
1613
|
+
|
1614
|
+
#
|
1615
|
+
# Preprocessor options
|
1616
|
+
#
|
1617
|
+
|
1618
|
+
# Control indent of preprocessors inside #if blocks at brace level 0 (file-level)
|
1619
|
+
pp_indent = ignore # ignore/add/remove/force
|
1620
|
+
|
1621
|
+
# Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
|
1622
|
+
pp_indent_at_level = false # false/true
|
1623
|
+
|
1624
|
+
# Specifies the number of columns to indent preprocessors per level at brace level 0 (file-level).
|
1625
|
+
# If pp_indent_at_level=false, specifies the number of columns to indent preprocessors per level at brace level > 0 (function-level).
|
1626
|
+
# Default=1.
|
1627
|
+
pp_indent_count = 1 # number
|
1628
|
+
|
1629
|
+
# Add or remove space after # based on pp_level of #if blocks
|
1630
|
+
pp_space = ignore # ignore/add/remove/force
|
1631
|
+
|
1632
|
+
# Sets the number of spaces added with pp_space
|
1633
|
+
pp_space_count = 0 # number
|
1634
|
+
|
1635
|
+
# The indent for #region and #endregion in C# and '#pragma region' in C/C++
|
1636
|
+
pp_indent_region = 0 # number
|
1637
|
+
|
1638
|
+
# Whether to indent the code between #region and #endregion
|
1639
|
+
pp_region_indent_code = false # false/true
|
1640
|
+
|
1641
|
+
# If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level.
|
1642
|
+
# 0: indent preprocessors using output_tab_size.
|
1643
|
+
# >0: column at which all preprocessors will be indented.
|
1644
|
+
pp_indent_if = 0 # number
|
1645
|
+
|
1646
|
+
# Control whether to indent the code between #if, #else and #endif.
|
1647
|
+
pp_if_indent_code = false # false/true
|
1648
|
+
|
1649
|
+
# Whether to indent '#define' at the brace level (true) or from column 1 (false)
|
1650
|
+
pp_define_at_level = false # false/true
|
1651
|
+
|
1652
|
+
# You can force a token to be a type with the 'type' option.
|
1653
|
+
# Example:
|
1654
|
+
# type myfoo1 myfoo2
|
1655
|
+
#
|
1656
|
+
# You can create custom macro-based indentation using macro-open,
|
1657
|
+
# macro-else and macro-close.
|
1658
|
+
# Example:
|
1659
|
+
# macro-open BEGIN_TEMPLATE_MESSAGE_MAP
|
1660
|
+
# macro-open BEGIN_MESSAGE_MAP
|
1661
|
+
# macro-close END_MESSAGE_MAP
|
1662
|
+
#
|
1663
|
+
# You can assign any keyword to any type with the set option.
|
1664
|
+
# set func_call_user _ N_
|
1665
|
+
#
|
1666
|
+
# The full syntax description of all custom definition config entries
|
1667
|
+
# is shown below:
|
1668
|
+
#
|
1669
|
+
# define custom tokens as:
|
1670
|
+
# - embed whitespace in token using '' escape character, or
|
1671
|
+
# put token in quotes
|
1672
|
+
# - these: ' " and ` are recognized as quote delimiters
|
1673
|
+
#
|
1674
|
+
# type token1 token2 token3 ...
|
1675
|
+
# ^ optionally specify multiple tokens on a single line
|
1676
|
+
# define def_token output_token
|
1677
|
+
# ^ output_token is optional, then NULL is assumed
|
1678
|
+
# macro-open token
|
1679
|
+
# macro-close token
|
1680
|
+
# macro-else token
|
1681
|
+
# set id token1 token2 ...
|
1682
|
+
# ^ optionally specify multiple tokens on a single line
|
1683
|
+
# ^ id is one of the names in token_enum.h sans the CT_ prefix,
|
1684
|
+
# e.g. PP_PRAGMA
|
1685
|
+
#
|
1686
|
+
# all tokens are separated by any mix of ',' commas, '=' equal signs
|
1687
|
+
# and whitespace (space, tab)
|
1688
|
+
#
|
1689
|
+
# You can add support for other file extensions using the 'file_ext' command.
|
1690
|
+
# The first arg is the language name used with the '-l' option.
|
1691
|
+
# The remaining args are file extensions, matched with 'endswith'.
|
1692
|
+
# file_ext CPP .ch .cxx .cpp.in
|
1693
|
+
#
|