clang format namespace fix

This commit is contained in:
gabime 2018-03-17 12:47:04 +02:00
parent 4445f6f869
commit c739e68021
2 changed files with 7 additions and 3 deletions

View File

@ -45,7 +45,7 @@ BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true BreakStringLiterals: true
ColumnLimit: 140 ColumnLimit: 140
CommentPragmas: '^ IWYU pragma:' CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: true CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4 ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4 ContinuationIndentWidth: 4

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
find . -name "*\.h" -o -name "*\.cpp"|xargs dos2unix echo -n "Running dos2unix "
find . -name "*\.h" -o -name "*\.cpp"|xargs clang-format -i find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
echo
echo -n "Running clang-format "
find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
echo