Incendie
|
Public Member Functions | |
def | __init__ (self) |
def | SetOutputFormat (self, output_format) |
def | SetVerboseLevel (self, level) |
def | SetCountingStyle (self, counting_style) |
def | SetFilters (self, filters) |
def | AddFilters (self, filters) |
def | BackupFilters (self) |
def | RestoreFilters (self) |
def | ResetErrorCounts (self) |
def | IncrementErrorCount (self, category) |
def | PrintErrorCounts (self) |
Public Attributes | |
verbose_level | |
error_count | |
filters | |
counting | |
errors_by_category | |
output_format | |
Maintains module-wide state..
def cpplint._CppLintState.AddFilters | ( | self, | |
filters | |||
) |
Adds more filters to the existing list of error-message filters.
def cpplint._CppLintState.BackupFilters | ( | self | ) |
Saves the current filter list to backup storage.
def cpplint._CppLintState.IncrementErrorCount | ( | self, | |
category | |||
) |
Bumps the module's error statistic.
def cpplint._CppLintState.PrintErrorCounts | ( | self | ) |
Print a summary of errors by category, and the total.
def cpplint._CppLintState.ResetErrorCounts | ( | self | ) |
Sets the module's error statistic back to zero.
def cpplint._CppLintState.RestoreFilters | ( | self | ) |
Restores filters previously backed up.
def cpplint._CppLintState.SetCountingStyle | ( | self, | |
counting_style | |||
) |
Sets the module's counting options.
def cpplint._CppLintState.SetFilters | ( | self, | |
filters | |||
) |
Sets the error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A string of comma-separated filters (eg "+whitespace/indent"). Each filter should start with + or -; else we die. Raises: ValueError: The comma-separated filters did not all start with '+' or '-'. E.g. "-,+whitespace,-whitespace/indent,whitespace/badfilter"
def cpplint._CppLintState.SetOutputFormat | ( | self, | |
output_format | |||
) |
Sets the output format for errors.
def cpplint._CppLintState.SetVerboseLevel | ( | self, | |
level | |||
) |
Sets the module's verbosity, and returns the previous setting.