Since this question was asked and answered, there are now some options for C/C++ linting in Sublime that are a bit more user friendly than the accepted answer. All of these are plugins for SublimeLinter. I recommend using Package Control as a package manager for Sublime Text (as do the plugin authors).
First, install Sublime Linter if you don't already have it (it's a pretty popular linting framework for multiple languages). It is most easily installed through package control, as the authors recommend, but more info is on the github site. Once Sublime Linter is installed, there are two to four different accessory packages that now exist for linting C and C++ code.
Two of these use the C/C++ compiler itself for checking; these are SublimeLinter-gcc and SublimeLinter-clang. Both can be installed via Package Control, and provide SublimeLinter with an interface to the relevant underlying compiler. The gcc package makes it easy to specify which compiler executable you want to use, in case you might want to check code for cross-compilation.
The other two are interfaces to cpplint and cppcheck, respectively. These two are also available on Package Control, and despite the names it seems that both will lint C and C++ code.
Note that you probably only want one of these options enabled at a time, although the SublimeLinter setup allows you to have multiple options installed and only one enabled via the "linters": {...} option stanza.