The plugin is wonderful!
Finally get this plugin working for Objective C project with the following change to the options: ( you might want to change some of the path to fit your sdk/project )
"add_language_option": false, // I set this to false and added -ObjC so that .h file will be parsed as Objective-C even when the syntax selected as c/c++; alternative choice is to force all .h open as Objective-C
// Any options you want to give to clang
"options":
"-Wall",
"-ObjC",
"-fexceptions",
"-fasm-blocks",
"-mmacosx-version-min=10.6",
"-gdwarf-2",
"-Wno-sign-conversion",
"-fobjc-abi-version=2",
"-fobjc-legacy-dispatch",
"-D__IPHONE_OS_VERSION_MIN_REQUIRED=30000",
"-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk",
"-F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks",
"-I/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include",
"-I/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/libxml2",
"-I/MyCode/Interface",
"-I/MyCode/Core",
"-I/MyCode/Headers"
]
A wish list (no pressing):
- parsing configuration on per project basis, currently it seems not possible as the plugin load setting by sublime.load_settings(), maybe consider read it from view.settings() as well?
- showing a “syntax error” indicate for the view on the status bar (view.set_status(“clang”, “Clang: Syntax Error”))
- command to navigate through error positions
- option to show error panel only when check after saved ( a bit annoy when it keeps show up when writing code )