Last active
April 17, 2017 20:21
-
-
Save asus4/358e9090d9398fc63a09 to your computer and use it in GitHub Desktop.
cpplint script for XCode openFrameworks.- TARGET -> Build Phases -> New Run Script Phase- Change /bin/bash to /bin/zsh
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 characters
# or exclude libs/ folder | |
find src -name "?*.*" ! -regex ".*libs.*" -exec /usr/local/bin/cpplint --filter=-build/header_guard,-runtime/references {} \; |
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 characters
if type "/usr/local/bin/cpplint" > /dev/null 2>&1 | |
then | |
# ignores | |
# build/header_guard to use #pragma once | |
# runtime/references to use ofxGui | |
/usr/local/bin/cpplint --filter=-build/header_guard,-runtime/references src/**/*.* | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment