class documentation

class _CppLintState(object):

View In Hierarchy

Maintains module-wide state..

Method __init__ Undocumented
Method AddFilters Adds more filters to the existing list of error-message filters.
Method BackupFilters Saves the current filter list to backup storage.
Method IncrementErrorCount Bumps the module's error statistic.
Method PrintErrorCounts Print a summary of errors by category, and the total.
Method ResetErrorCounts Sets the module's error statistic back to zero.
Method RestoreFilters Restores filters previously backed up.
Method SetCountingStyle Sets the module's counting options.
Method SetFilters Sets the error-message filters.
Method SetOutputFormat Sets the output format for errors.
Method SetQuiet Sets the module's quiet settings, and returns the previous setting.
Method SetVerboseLevel Sets the module's verbosity, and returns the previous setting.
Instance Variable counting Undocumented
Instance Variable error_count Undocumented
Instance Variable errors_by_category Undocumented
Instance Variable filters Undocumented
Instance Variable output_format Undocumented
Instance Variable quiet Undocumented
Instance Variable verbose_level Undocumented
Instance Variable _filters_backup Undocumented
def __init__(self):

Undocumented

def AddFilters(self, filters):

Adds more filters to the existing list of error-message filters.

def BackupFilters(self):

Saves the current filter list to backup storage.

def IncrementErrorCount(self, category):

Bumps the module's error statistic.

def PrintErrorCounts(self):

Print a summary of errors by category, and the total.

def ResetErrorCounts(self):

Sets the module's error statistic back to zero.

def RestoreFilters(self):

Restores filters previously backed up.

def SetCountingStyle(self, counting_style):

Sets the module's counting options.

def 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 SetOutputFormat(self, output_format):

Sets the output format for errors.

def SetQuiet(self, quiet):

Sets the module's quiet settings, and returns the previous setting.

def SetVerboseLevel(self, level):

Sets the module's verbosity, and returns the previous setting.

counting =

Undocumented

error_count: int =

Undocumented

errors_by_category: dict =

Undocumented

filters =

Undocumented

output_format =

Undocumented

quiet =

Undocumented

verbose_level =

Undocumented

_filters_backup =

Undocumented