SABER
saber_cpplint._CppLintState Class Reference
Inheritance diagram for saber_cpplint._CppLintState:
Collaboration diagram for saber_cpplint._CppLintState:

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
 

Private Attributes

 _filters_backup
 
 _junit_errors
 
 _junit_failures
 

Detailed Description

Maintains module-wide state..

Definition at line 964 of file saber_cpplint.py.

Constructor & Destructor Documentation

◆ __init__()

def saber_cpplint._CppLintState.__init__ (   self)

Definition at line 967 of file saber_cpplint.py.

Member Function Documentation

◆ AddFilters()

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

Definition at line 1021 of file saber_cpplint.py.

Here is the caller graph for this function:

◆ AddJUnitFailure()

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

Definition at line 1073 of file saber_cpplint.py.

◆ BackupFilters()

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

Definition at line 1032 of file saber_cpplint.py.

◆ FormatJUnitXML()

def saber_cpplint._CppLintState.FormatJUnitXML (   self)

Definition at line 1077 of file saber_cpplint.py.

◆ IncrementErrorCount()

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

Definition at line 1045 of file saber_cpplint.py.

◆ PrintError()

def saber_cpplint._CppLintState.PrintError (   self,
  message 
)

Definition at line 1067 of file saber_cpplint.py.

◆ PrintErrorCounts()

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

Definition at line 1055 of file saber_cpplint.py.

Here is the call graph for this function:

◆ PrintInfo()

def saber_cpplint._CppLintState.PrintInfo (   self,
  message 
)

Definition at line 1063 of file saber_cpplint.py.

Here is the caller graph for this function:

◆ ResetErrorCounts()

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

Definition at line 1040 of file saber_cpplint.py.

◆ RestoreFilters()

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

Definition at line 1036 of file saber_cpplint.py.

◆ SetCountingStyle()

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

Definition at line 999 of file saber_cpplint.py.

◆ SetFilters()

def saber_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"

Definition at line 1003 of file saber_cpplint.py.

Here is the call graph for this function:

◆ SetOutputFormat()

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

Definition at line 989 of file saber_cpplint.py.

◆ SetVerboseLevel()

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

Definition at line 993 of file saber_cpplint.py.

Member Data Documentation

◆ _filters_backup

saber_cpplint._CppLintState._filters_backup
private

Definition at line 973 of file saber_cpplint.py.

◆ _junit_errors

saber_cpplint._CppLintState._junit_errors
private

Definition at line 986 of file saber_cpplint.py.

◆ _junit_failures

saber_cpplint._CppLintState._junit_failures
private

Definition at line 987 of file saber_cpplint.py.

◆ counting

saber_cpplint._CppLintState.counting

Definition at line 974 of file saber_cpplint.py.

◆ error_count

saber_cpplint._CppLintState.error_count

Definition at line 969 of file saber_cpplint.py.

◆ errors_by_category

saber_cpplint._CppLintState.errors_by_category

Definition at line 975 of file saber_cpplint.py.

◆ filters

saber_cpplint._CppLintState.filters

Definition at line 971 of file saber_cpplint.py.

◆ output_format

saber_cpplint._CppLintState.output_format

Definition at line 982 of file saber_cpplint.py.

◆ verbose_level

saber_cpplint._CppLintState.verbose_level

Definition at line 968 of file saber_cpplint.py.


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