Last active
February 18, 2020 13:51
-
-
Save kristopherjohnson/5b2c4a1c725bcbf7a38e to your computer and use it in GitHub Desktop.
Revisions
-
kristopherjohnson revised this gist
Jan 9, 2015 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ BasedOnStyle: Webkit BreakBeforeBraces: Allman BreakConstructorInitializersBeforeComma: false ConstructorInitializerAllOnOneLineOrOnePerLine: true Cpp11BracedListStyle: true IndentCaseLabels: true MaxEmptyLinesToKeep: 2 PointerBindsToType: false SpacesBeforeTrailingComments: 2 Standard: Cpp11 -
kristopherjohnson revised this gist
Jan 9, 2015 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,3 +2,6 @@ BasedOnStyle: Webkit IndentCaseLabels: true MaxEmptyLinesToKeep: 2 PointerBindsToType: false BreakBeforeBraces: Allman Cpp11BracedListStyle: true -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ # - If you use Xcode, install the ClangFormat-Xcode plugin. See instructions at # <https://github.com/travisjeffery/ClangFormat-Xcode/>. # After installation, the executable can be found at # $HOME/Library/Application Support/Alcatraz/Plug-ins/ClangFormat/bin/clang-format. # # - Download an LLVM release from <http://llvm.org/releases/download.html>. # For OS X, use the pre-built binaries for "Darwin". -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,9 +21,12 @@ # # - Build the LLVM tools from source. See the documentation at <http://llvm.org>. # Change this if your clang-format executable is somewhere else CLANG_FORMAT="$HOME/Library/Application Support/Alcatraz/Plug-ins/ClangFormat/bin/clang-format" for DIRECTORY in MyApp MyAppTests MyLibrary MyLibraryTests do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" \( -name '*.h' -or -name '*.m' -or -name '*.mm' \) -print0 | xargs -0 "$CLANG_FORMAT" -i done -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,8 @@ # # - Build the LLVM tools from source. See the documentation at <http://llvm.org>. for DIRECTORY in MyApp MyAppTests MyLibrary MyLibraryTests do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" \( -name '*.h' -or -name '*.m' -or -name '*.mm' \) -print0 | xargs -0 clang-format -i done -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,6 +23,6 @@ for DIRECTORY in MMQA MMQATests; do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" \( -name '*.h' -or -name '*.m' -or -name '*.mm' \) -print0 | xargs -0 clang-format -i done -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,8 +21,8 @@ # # - Build the LLVM tools from source. See the documentation at <http://llvm.org>. for DIRECTORY in MMQA MMQATests; do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" \( -name '*.h' -or -name '*.m' -or -name '*.mm' \) -print0 | xargs -0 clang-format -style=file -i done -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,5 +24,5 @@ for DIRECTORY in MyApp MyAppTests MyLibrary MyLibraryTests do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" -name '*.h' -o -name '*.m' -o -name '*.mm' -print0 | xargs -0 clang-format -style=file -i done -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 2 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,4 @@ BasedOnStyle: Webkit IndentCaseLabels: true MaxEmptyLinesToKeep: 2 PointerBindsToType: false -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,9 @@ # # The file .clang-format in this directory specifies the formatting parameters. # # Files are changed in-place, so make sure you don't have anything open in an # editor, and you may want to commit before formatting in case of awryness. # # Note that clang-format is not included with OS X or Xcode; you must # install it yourself. There are multiple ways to do this: # -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ # # - Build the LLVM tools from source. See the documentation at <http://llvm.org>. for DIRECTORY in MyApp MyAppTests MyLibrary MyLibraryTests do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" -name '*.h' -o -name '*.m' -print0 | xargs -0 clang-format -style=file -i -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,8 @@ # # - Build the LLVM tools from source. See the documentation at <http://llvm.org>. for DIRECTORY in MyProject MyProjecTests MyLibrary do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" -name '*.h' -o -name '*.m' -print0 | xargs -0 clang-format -style=file -i done -
kristopherjohnson revised this gist
Aug 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,5 +20,5 @@ for DIRECTORY in MyProject MyProjecTests MyLibrary; do echo "Formatting code under $DIRECTORY/" find "$DIRECTORY" -name '*.h' -o -name '*.m' -print0 | xargs -0 clang-format -style=file -i done -
kristopherjohnson created this gist
Aug 15, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ BasedOnStyle: Chromium AlignTrailingComments: true BreakBeforeBraces: Stroustrup ColumnLimit: 0 IndentWidth: 4 KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: 2 ObjCSpaceAfterProperty: true ObjCSpaceBeforeProtocolList: true PointerBindsToType: false SpacesBeforeTrailingComments: 1 TabWidth: 8 UseTab: Never This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ #!/bin/bash # This script reformats source files using the clang-format utility. # Set the list of source directories on the "for" line below. # # The file .clang-format in this directory specifies the formatting parameters. # # Note that clang-format is not included with OS X or Xcode; you must # install it yourself. There are multiple ways to do this: # # - If you use Xcode, install the ClangFormat-Xcode plugin. See instructions at # <https://github.com/travisjeffery/ClangFormat-Xcode/>. # After installation, the executable can be found at # ~/Library/Application Support/Alcatraz/Plug-ins/ClangFormat/bin/clang-format. # # - Download an LLVM release from <http://llvm.org/releases/download.html>. # For OS X, use the pre-built binaries for "Darwin". # # - Build the LLVM tools from source. See the documentation at <http://llvm.org>. for DIRECTORY in MyProject MyProjecTests MyLibrary; do echo "Formatting code under $DIRECTORY/" find $DIRECTORY -name '*.h' -o -name '*.m' -print0 | xargs -0 clang-format -style=file -i done