BTW, you might also be interested in setting:
[code] // If set to true will warm up the cache for supported files
// when they are opened
“cache_on_load”: false,
// When set to true a reparse command will be triggered
// when a view is activated
"reparse_on_activated": false,
// When set to true a reparse command will be triggered
// when a view is saved
"reparse_on_save": false,
[/code]
in your SublimeClang user settings. This way the file is only parsed when you trigger an auto complete event or a go to definition/implementation request. You’ll have to wait for a couple of seconds while the file is being compiled though.
You might also want to tweak the following value to something other than the default:
// This is the bitmask sent to index.parse.
// For example, to be able to go to the definition of
// preprocessed macros, set it to 1, for using an implicit
// precompiled header set it to 4 and for caching completion
// results, set it to 8. Or all together 1+4+8=13.
//
// See http://clang.llvm.org/doxygen/group__CINDEX__TRANSLATION__UNIT.html#gab1e4965c1ebe8e41d71e90203a723fe9
// and http://clang.llvm.org/doxygen/Index_8h_source.html
// for more details
"index_parse_options": 13,