Repository navigation
WIP: added .editorconfig file, applied uncrustify to make indentation uniform #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
28af13f
73cce51
2f2008c
64974a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # https://EditorConfig.org | ||
|
|
||
| # top-most EditorConfig file | ||
| root = true | ||
|
|
||
| # Apply to all code files | ||
| [*] | ||
|
|
||
| # A newline ending every file | ||
| insert_final_newline = true | ||
|
|
||
| # Set default charset | ||
| charset = utf-8 | ||
|
|
||
| # 3 space indentation | ||
| indent_style = space | ||
| indent_size = 3 | ||
|
|
||
| # Various options | ||
| trim_trailing_whitespace = true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # | ||
| # This file lists revisions that should be ignored when considering | ||
| # attribution for the actual code written. Code style changes should | ||
| # not be considered as modifications with regards to attribution. | ||
| # | ||
| # To see clean and meaningful blame information. | ||
| # $ git blame important.py --ignore-revs-file .git-blame-ignore-revs | ||
| # | ||
| # To configure git to automatically ignore revisions listed in a file on every call to git blame. | ||
| # $ git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
| # | ||
|
|
||
| # TODO: add reformatting commits | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Google Carbon] This file still contains template boilerplate ( |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |
| TIME_SERIES, NODE_INDEX, RGB_VECTOR, RGBA_VECTOR, SHAPE | ||
|
|
||
| 08 Mar 2019 [PT,DRG] | ||
| - Updated to include [qs]form_code = 5 | ||
| - Updated to include [qs]form_code = 5 | ||
|
|
||
| */ | ||
|
|
||
|
|
@@ -149,61 +149,61 @@ struct nifti_1_header { /* NIFTI-1 usage */ /* ANALYZE 7.5 field(s) */ | |
| /*************************/ /************************/ | ||
|
|
||
| /*--- was header_key substruct ---*/ | ||
| int sizeof_hdr; /*!< MUST be 348 */ /* int sizeof_hdr; */ | ||
| char data_type[10]; /*!< ++UNUSED++ */ /* char data_type[10]; */ | ||
| char db_name[18]; /*!< ++UNUSED++ */ /* char db_name[18]; */ | ||
| int extents; /*!< ++UNUSED++ */ /* int extents; */ | ||
| short session_error; /*!< ++UNUSED++ */ /* short session_error; */ | ||
| char regular; /*!< ++UNUSED++ */ /* char regular; */ | ||
| char dim_info; /*!< MRI slice ordering. */ /* char hkey_un0; */ | ||
| int sizeof_hdr; /*!< MUST be 348 */ /* int sizeof_hdr; */ | ||
| char data_type[10];/*!< ++UNUSED++ */ /* char data_type[10]; */ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Google Carbon] Running |
||
| char db_name[18]; /*!< ++UNUSED++ */ /* char db_name[18]; */ | ||
| int extents; /*!< ++UNUSED++ */ /* int extents; */ | ||
| short session_error; /*!< ++UNUSED++ */ /* short session_error; */ | ||
| char regular; /*!< ++UNUSED++ */ /* char regular; */ | ||
| char dim_info; /*!< MRI slice ordering. */ /* char hkey_un0; */ | ||
|
|
||
| /*--- was image_dimension substruct ---*/ | ||
| short dim[8]; /*!< Data array dimensions.*/ /* short dim[8]; */ | ||
| float intent_p1 ; /*!< 1st intent parameter. */ /* short unused8; */ | ||
| short dim[8]; /*!< Data array dimensions.*/ /* short dim[8]; */ | ||
| float intent_p1 ; /*!< 1st intent parameter. */ /* short unused8; */ | ||
| /* short unused9; */ | ||
| float intent_p2 ; /*!< 2nd intent parameter. */ /* short unused10; */ | ||
| float intent_p2 ; /*!< 2nd intent parameter. */ /* short unused10; */ | ||
| /* short unused11; */ | ||
| float intent_p3 ; /*!< 3rd intent parameter. */ /* short unused12; */ | ||
| float intent_p3 ; /*!< 3rd intent parameter. */ /* short unused12; */ | ||
| /* short unused13; */ | ||
| short intent_code ; /*!< NIFTI_INTENT_* code. */ /* short unused14; */ | ||
| short datatype; /*!< Defines data type! */ /* short datatype; */ | ||
| short bitpix; /*!< Number bits/voxel. */ /* short bitpix; */ | ||
| short slice_start; /*!< First slice index. */ /* short dim_un0; */ | ||
| float pixdim[8]; /*!< Grid spacings. */ /* float pixdim[8]; */ | ||
| float vox_offset; /*!< Offset into .nii file */ /* float vox_offset; */ | ||
| float scl_slope ; /*!< Data scaling: slope. */ /* float funused1; */ | ||
| float scl_inter ; /*!< Data scaling: offset. */ /* float funused2; */ | ||
| short slice_end; /*!< Last slice index. */ /* float funused3; */ | ||
| char slice_code ; /*!< Slice timing order. */ | ||
| char xyzt_units ; /*!< Units of pixdim[1..4] */ | ||
| float cal_max; /*!< Max display intensity */ /* float cal_max; */ | ||
| float cal_min; /*!< Min display intensity */ /* float cal_min; */ | ||
| float slice_duration;/*!< Time for 1 slice. */ /* float compressed; */ | ||
| float toffset; /*!< Time axis shift. */ /* float verified; */ | ||
| int glmax; /*!< ++UNUSED++ */ /* int glmax; */ | ||
| int glmin; /*!< ++UNUSED++ */ /* int glmin; */ | ||
| short intent_code ; /*!< NIFTI_INTENT_* code. */ /* short unused14; */ | ||
| short datatype; /*!< Defines data type! */ /* short datatype; */ | ||
| short bitpix; /*!< Number bits/voxel. */ /* short bitpix; */ | ||
| short slice_start; /*!< First slice index. */ /* short dim_un0; */ | ||
| float pixdim[8]; /*!< Grid spacings. */ /* float pixdim[8]; */ | ||
| float vox_offset; /*!< Offset into .nii file */ /* float vox_offset; */ | ||
| float scl_slope ; /*!< Data scaling: slope. */ /* float funused1; */ | ||
| float scl_inter ; /*!< Data scaling: offset. */ /* float funused2; */ | ||
| short slice_end; /*!< Last slice index. */ /* float funused3; */ | ||
| char slice_code ; /*!< Slice timing order. */ | ||
| char xyzt_units ; /*!< Units of pixdim[1..4] */ | ||
| float cal_max; /*!< Max display intensity */ /* float cal_max; */ | ||
| float cal_min; /*!< Min display intensity */ /* float cal_min; */ | ||
| float slice_duration;/*!< Time for 1 slice. */ /* float compressed; */ | ||
| float toffset; /*!< Time axis shift. */ /* float verified; */ | ||
| int glmax; /*!< ++UNUSED++ */ /* int glmax; */ | ||
| int glmin; /*!< ++UNUSED++ */ /* int glmin; */ | ||
|
|
||
| /*--- was data_history substruct ---*/ | ||
| char descrip[80]; /*!< any text you like. */ /* char descrip[80]; */ | ||
| char aux_file[24]; /*!< auxiliary filename. */ /* char aux_file[24]; */ | ||
| char descrip[80]; /*!< any text you like. */ /* char descrip[80]; */ | ||
| char aux_file[24];/*!< auxiliary filename. */ /* char aux_file[24]; */ | ||
|
|
||
| short qform_code ; /*!< NIFTI_XFORM_* code. */ /*-- all ANALYZE 7.5 ---*/ | ||
| short sform_code ; /*!< NIFTI_XFORM_* code. */ /* fields below here */ | ||
| short qform_code ; /*!< NIFTI_XFORM_* code. */ /*-- all ANALYZE 7.5 ---*/ | ||
| short sform_code ; /*!< NIFTI_XFORM_* code. */ /* fields below here */ | ||
| /* are replaced */ | ||
| float quatern_b ; /*!< Quaternion b param. */ | ||
| float quatern_c ; /*!< Quaternion c param. */ | ||
| float quatern_d ; /*!< Quaternion d param. */ | ||
| float qoffset_x ; /*!< Quaternion x shift. */ | ||
| float qoffset_y ; /*!< Quaternion y shift. */ | ||
| float qoffset_z ; /*!< Quaternion z shift. */ | ||
| float quatern_b ; /*!< Quaternion b param. */ | ||
| float quatern_c ; /*!< Quaternion c param. */ | ||
| float quatern_d ; /*!< Quaternion d param. */ | ||
| float qoffset_x ; /*!< Quaternion x shift. */ | ||
| float qoffset_y ; /*!< Quaternion y shift. */ | ||
| float qoffset_z ; /*!< Quaternion z shift. */ | ||
|
|
||
| float srow_x[4] ; /*!< 1st row affine transform. */ | ||
| float srow_y[4] ; /*!< 2nd row affine transform. */ | ||
| float srow_z[4] ; /*!< 3rd row affine transform. */ | ||
| float srow_x[4] ; /*!< 1st row affine transform. */ | ||
| float srow_y[4] ; /*!< 2nd row affine transform. */ | ||
| float srow_z[4] ; /*!< 3rd row affine transform. */ | ||
|
|
||
| char intent_name[16];/*!< 'name' or meaning of data. */ | ||
| char intent_name[16];/*!< 'name' or meaning of data. */ | ||
|
|
||
| char magic[4] ; /*!< MUST be "ni1\0" or "n+1\0". */ | ||
| char magic[4] ; /*!< MUST be "ni1\0" or "n+1\0". */ | ||
|
|
||
| } ; /**** 348 bytes total ****/ | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Google Carbon] Scoping
indent_style = spaceandindent_size = 3under[*]applies 3-space indentation toMakefiles (where GNUmakerequires hard TABs on recipe lines), YAML workflows, CMake files, and Markdown (trim_trailing_whitespace = trueon line 20). Please scope C/C++ rules under[*.{c,h,cc,cpp,hpp}]and add explicit[Makefile](indent_style = tab),[*.{yml,yaml,cmake}],[CMakeLists.txt], and[*.md](trim_trailing_whitespace = false) sections.