Skip to content

Instantly share code, notes, and snippets.

@nickdowell
Created October 14, 2022 10:01
Show Gist options
  • Save nickdowell/88ee872335d3ae43458ba11b6616bdda to your computer and use it in GitHub Desktop.
Save nickdowell/88ee872335d3ae43458ba11b6616bdda to your computer and use it in GitHub Desktop.
#!/bin/zsh
set -euxo pipefail
sdk_path=`xcrun -f --sdk iphoneos --show-sdk-path`
plat_path=`xcrun -f --sdk iphoneos --show-sdk-platform-path`
$CLANG_TIDY \
Sources/MyLibrary/**/*.mm -- \
-ISources/MyLibrary/include \
-std=c++14 \
-fobjc-arc \
-target armv7-apple-ios10.0 \
-isysroot $sdk_path \
-iframework $sdk_path/Developer/Library/Frameworks \
-F$plat_path/Developer/Library/Frameworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment