Skip to content

Commit

Permalink
STYLE: Use vtk .clang-format for code style
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Feb 27, 2022
1 parent 58a1267 commit fca8b06
Show file tree
Hide file tree
Showing 16 changed files with 1,929 additions and 2,385 deletions.
26 changes: 26 additions & 0 deletions Modules/ThirdParty/DICOMParser/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Note: if you change any of the settings here, please reformat the entire
# codebase as part of the same commit, that will prevent subsequent commits
# from being flagged as being improperly formatted.

---
# This configuration requires clang-format 8.0 or higher.
BasedOnStyle: Mozilla
AlignAfterOpenBracket: DontAlign
AlignOperands: false
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterDefinitionReturnType: None
BreakBeforeBraces: Allman
BinPackArguments: true
BinPackParameters: true
ColumnLimit: 100
SpaceAfterTemplateKeyword: true
Standard: Cpp11
StatementMacros:
- PyObject_HEAD
- PyObject_VAR_HEAD
- vtkAbstractTypeMacro
- vtkTypeMacro
- vtkBaseTypeMacro
- vtkAbstractTemplateTypeMacro
- vtkAbstractTypeMacroWithNewInstanceType
...
4 changes: 2 additions & 2 deletions Modules/ThirdParty/DICOMParser/src/DICOMParser/Copyright.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ modification, are permitted provided that the following conditions are met:
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* The name of Matt Turek nor the names of any contributors may be used to
endorse or promote products derived from this software without specific
* The name of Matt Turek nor the names of any contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

* Modified source versions must be plainly marked as such, and must not be
Expand Down
Loading

0 comments on commit fca8b06

Please sign in to comment.