oranges_enable_cpplint

include (OrangesCpplint)

View the full docs for this module.

oranges_enable_cpplint (<target>
                       [IGNORE <checks...>]
                       [VERBOSITY <level>]
                       [EXTRA_ARGS <args...>]
                       [LANGS <C|CXX>...])

Configures cpplint for the given <target> by manipulating the target’s <LANG>_CPPLINT properties.

If the CPPLINT_OFF variable is set to ON, this function does nothing.

Options:

IGNORE

A list of cpplint checks to ignore for this target. Each one may optionally begin with a ‘-’ character, though this is not required. f not specified, the value of the CPPLINT_IGNORE variable will be used.

VERBOSITY

An integer verbosity level between 0 and 5 (inclusive). If not specified, the value of the CPPLINT_VERBOSITY variable will be used.

EXTRA_ARGS

Extra arguments to pass to cpplint verbatim. If not specified, the value of the CPPLINT_EXTRA_ARGS variable will be used.

LANGS

Languages for which to enable cpplint. Valid values are C or CXX. If no languages are specified, this function will configure cpplint for both valid languages.