Public Member Functions | Public Attributes

cpplint::_CppLintState Class Reference

List of all members.

Public Member Functions

def __init__
def SetOutputFormat
def SetVerboseLevel
def SetCountingStyle
def SetFilters
def ResetErrorCounts
def IncrementErrorCount
def PrintErrorCounts
def __init__
def SetOutputFormat
def SetVerboseLevel
def SetCountingStyle
def SetFilters
def ResetErrorCounts
def IncrementErrorCount
def PrintErrorCounts

Public Attributes

 verbose_level
 error_count
 filters
 counting
 errors_by_category
 output_format

Detailed Description

Maintains module-wide state..

Member Function Documentation

def cpplint::_CppLintState::IncrementErrorCount (   self,
  category 
)
Bumps the module's error statistic.
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::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::ResetErrorCounts (   self  ) 
Sets the module's error statistic back to zero.
def cpplint::_CppLintState::SetCountingStyle (   self,
  counting_style 
)
Sets the module's counting options.
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::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::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.
def cpplint::_CppLintState::SetVerboseLevel (   self,
  level 
)
Sets the module's verbosity, and returns the previous setting.

The documentation for this class was generated from the following files:
 All Classes Functions