Kaleidoscope
Public Member Functions | Public Attributes | List of all members
cpplint._CppLintState Class Reference
Inheritance diagram for cpplint._CppLintState:
Inheritance graph
[legend]
Collaboration diagram for cpplint._CppLintState:
Collaboration graph
[legend]

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)
 
def PrintInfo (self, message)
 
def PrintError (self, message)
 
def AddJUnitFailure (self, filename, linenum, message, category, confidence)
 
def FormatJUnitXML (self)
 

Public Attributes

 verbose_level
 
 error_count
 
 filters
 
 counting
 
 errors_by_category
 
 output_format
 

Detailed Description

Maintains module-wide state..

Constructor & Destructor Documentation

◆ __init__()

def cpplint._CppLintState.__init__ (   self)

Member Function Documentation

◆ AddFilters()

def cpplint._CppLintState.AddFilters (   self,
  filters 
)
Adds more filters to the existing list of error-message filters. 

◆ AddJUnitFailure()

def cpplint._CppLintState.AddJUnitFailure (   self,
  filename,
  linenum,
  message,
  category,
  confidence 
)

◆ BackupFilters()

def cpplint._CppLintState.BackupFilters (   self)
Saves the current filter list to backup storage.

◆ FormatJUnitXML()

def cpplint._CppLintState.FormatJUnitXML (   self)

◆ IncrementErrorCount()

def cpplint._CppLintState.IncrementErrorCount (   self,
  category 
)
Bumps the module's error statistic.

◆ PrintError()

def cpplint._CppLintState.PrintError (   self,
  message 
)

◆ PrintErrorCounts()

def cpplint._CppLintState.PrintErrorCounts (   self)
Print a summary of errors by category, and the total.

◆ PrintInfo()

def cpplint._CppLintState.PrintInfo (   self,
  message 
)

◆ ResetErrorCounts()

def cpplint._CppLintState.ResetErrorCounts (   self)
Sets the module's error statistic back to zero.

◆ RestoreFilters()

def cpplint._CppLintState.RestoreFilters (   self)
Restores filters previously backed up.

◆ SetCountingStyle()

def cpplint._CppLintState.SetCountingStyle (   self,
  counting_style 
)
Sets the module's counting options.

◆ SetFilters()

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"

◆ SetOutputFormat()

def cpplint._CppLintState.SetOutputFormat (   self,
  output_format 
)
Sets the output format for errors.

◆ SetVerboseLevel()

def cpplint._CppLintState.SetVerboseLevel (   self,
  level 
)
Sets the module's verbosity, and returns the previous setting.

Member Data Documentation

◆ counting

cpplint._CppLintState.counting

◆ error_count

cpplint._CppLintState.error_count

◆ errors_by_category

cpplint._CppLintState.errors_by_category

◆ filters

cpplint._CppLintState.filters

◆ output_format

cpplint._CppLintState.output_format

◆ verbose_level

cpplint._CppLintState.verbose_level

The documentation for this class was generated from the following file: