forked from Cisco-Talos/clamav-bytecode-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clam-format
executable file
·11 lines (8 loc) · 968 Bytes
/
clam-format
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
clang-format-16 -style='{ Language: Cpp, UseTab: Never, IndentWidth: 4, AlignTrailingComments: true, AlignConsecutiveAssignments: true, AlignAfterOpenBracket: true, AlignEscapedNewlines: Left, AlignOperands: true, AllowShortFunctionsOnASingleLine: Empty, AllowShortIfStatementsOnASingleLine: true, AllowShortLoopsOnASingleLine: true, BreakBeforeBraces: Linux, BreakBeforeTernaryOperators: true, ColumnLimit: 0, FixNamespaceComments: true, SortIncludes: false, MaxEmptyLinesToKeep: 1, SpaceBeforeParens: ControlStatements, IndentCaseLabels: true, DerivePointerAlignment: true }' -dump-config > .clang-format
clang-format-16 -i -verbose `find libclambcc -name "*.cpp"`
clang-format-16 -i -verbose `find libclambcc -name "*.h"`
clang-format-16 -i -verbose `find libclambcc -name "*.c"`
clang-format-16 -i -verbose `find examples -name "*.cpp"`
clang-format-16 -i -verbose `find examples -name "*.h"`
clang-format-16 -i -verbose `find examples -name "*.c"`