SABER
saber_cpplint.py File Reference

Go to the source code of this file.

Classes

class  saber_cpplint._IncludeState
 
class  saber_cpplint._CppLintState
 
class  saber_cpplint._FunctionState
 
class  saber_cpplint._IncludeError
 
class  saber_cpplint.FileInfo
 
class  saber_cpplint.CleansedLines
 
class  saber_cpplint._BlockInfo
 
class  saber_cpplint._ExternCInfo
 
class  saber_cpplint._ClassInfo
 
class  saber_cpplint._NamespaceInfo
 
class  saber_cpplint._PreprocessorInfo
 
class  saber_cpplint.NestingState
 

Namespaces

 saber_cpplint
 

Functions

def saber_cpplint.GetHeaderExtensions ()
 
def saber_cpplint.GetAllExtensions ()
 
def saber_cpplint.GetNonHeaderExtensions ()
 
def saber_cpplint.unicode_escape_decode (x)
 
def saber_cpplint.ParseNolintSuppressions (filename, raw_line, linenum, error)
 
def saber_cpplint.ProcessGlobalSuppresions (lines)
 
def saber_cpplint.ResetNolintSuppressions ()
 
def saber_cpplint.IsErrorSuppressedByNolint (category, linenum)
 
def saber_cpplint.Match (pattern, s)
 
def saber_cpplint.ReplaceAll (pattern, rep, s)
 
def saber_cpplint.Search (pattern, s)
 
def saber_cpplint._IsSourceExtension (s)
 
def saber_cpplint._OutputFormat ()
 
def saber_cpplint._SetOutputFormat (output_format)
 
def saber_cpplint._VerboseLevel ()
 
def saber_cpplint._SetVerboseLevel (level)
 
def saber_cpplint._SetCountingStyle (level)
 
def saber_cpplint._Filters ()
 
def saber_cpplint._SetFilters (filters)
 
def saber_cpplint._AddFilters (filters)
 
def saber_cpplint._BackupFilters ()
 
def saber_cpplint._RestoreFilters ()
 
def saber_cpplint._ShouldPrintError (category, confidence, linenum)
 
def saber_cpplint.Error (filename, linenum, category, confidence, message)
 
def saber_cpplint.IsCppString (line)
 
def saber_cpplint.CleanseRawStrings (raw_lines)
 
def saber_cpplint.FindNextMultiLineCommentStart (lines, lineix)
 
def saber_cpplint.FindNextMultiLineCommentEnd (lines, lineix)
 
def saber_cpplint.RemoveMultiLineCommentsFromRange (lines, begin, end)
 
def saber_cpplint.RemoveMultiLineComments (filename, lines, error)
 
def saber_cpplint.CleanseComments (line)
 
def saber_cpplint.FindEndOfExpressionInLine (line, startpos, stack)
 
def saber_cpplint.CloseExpression (clean_lines, linenum, pos)
 
def saber_cpplint.FindStartOfExpressionInLine (line, endpos, stack)
 
def saber_cpplint.ReverseCloseExpression (clean_lines, linenum, pos)
 
def saber_cpplint.CheckForCopyright (filename, lines, error)
 
def saber_cpplint.GetIndentLevel (line)
 
def saber_cpplint.GetHeaderGuardCPPVariable (filename)
 
def saber_cpplint.CheckForHeaderGuard (filename, clean_lines, error)
 
def saber_cpplint.CheckHeaderFileIncluded (filename, include_state, error)
 
def saber_cpplint.CheckForBadCharacters (filename, lines, error)
 
def saber_cpplint.CheckForNewlineAtEOF (filename, lines, error)
 
def saber_cpplint.CheckForMultilineCommentsAndStrings (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckPosixThreading (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckVlogArguments (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckInvalidIncrement (filename, clean_lines, linenum, error)
 
def saber_cpplint.IsMacroDefinition (clean_lines, linenum)
 
def saber_cpplint.IsForwardClassDeclaration (clean_lines, linenum)
 
def saber_cpplint.CheckForNonStandardConstructs (filename, clean_lines, linenum, nesting_state, error)
 
def saber_cpplint.CheckSpacingForFunctionCall (filename, clean_lines, linenum, error)
 
def saber_cpplint.IsBlankLine (line)
 
def saber_cpplint.CheckForNamespaceIndentation (filename, nesting_state, clean_lines, line, error)
 
def saber_cpplint.CheckForFunctionLengths (filename, clean_lines, linenum, function_state, error)
 
def saber_cpplint.CheckComment (line, filename, linenum, next_line_start, error)
 
def saber_cpplint.CheckAccess (filename, clean_lines, linenum, nesting_state, error)
 
def saber_cpplint.CheckSpacing (filename, clean_lines, linenum, nesting_state, error)
 
def saber_cpplint.CheckOperatorSpacing (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckParenthesisSpacing (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckCommaSpacing (filename, clean_lines, linenum, error)
 
def saber_cpplint._IsType (clean_lines, nesting_state, expr)
 
def saber_cpplint.CheckBracesSpacing (filename, clean_lines, linenum, nesting_state, error)
 
def saber_cpplint.IsDecltype (clean_lines, linenum, column)
 
def saber_cpplint.CheckSectionSpacing (filename, clean_lines, class_info, linenum, error)
 
def saber_cpplint.GetPreviousNonBlankLine (clean_lines, linenum)
 
def saber_cpplint.CheckBraces (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckTrailingSemicolon (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckEmptyBlockBody (filename, clean_lines, linenum, error)
 
def saber_cpplint.FindCheckMacro (line)
 
def saber_cpplint.CheckCheck (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckAltTokens (filename, clean_lines, linenum, error)
 
def saber_cpplint.GetLineWidth (line)
 
def saber_cpplint.CheckStyle (filename, clean_lines, linenum, file_extension, nesting_state, error)
 
def saber_cpplint._DropCommonSuffixes (filename)
 
def saber_cpplint._ClassifyInclude (fileinfo, include, is_system)
 
def saber_cpplint.CheckIncludeLine (filename, clean_lines, linenum, include_state, error)
 
def saber_cpplint._GetTextInside (text, start_pattern)
 
def saber_cpplint.CheckLanguage (filename, clean_lines, linenum, file_extension, include_state, nesting_state, error)
 
def saber_cpplint.CheckGlobalStatic (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckPrintf (filename, clean_lines, linenum, error)
 
def saber_cpplint.IsDerivedFunction (clean_lines, linenum)
 
def saber_cpplint.IsOutOfLineMethodDefinition (clean_lines, linenum)
 
def saber_cpplint.IsInitializerList (clean_lines, linenum)
 
def saber_cpplint.CheckForNonConstReference (filename, clean_lines, linenum, nesting_state, error)
 
def saber_cpplint.CheckCasts (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckCStyleCast (filename, clean_lines, linenum, cast_type, pattern, error)
 
def saber_cpplint.ExpectingFunctionArgs (clean_lines, linenum)
 
def saber_cpplint.FilesBelongToSameModule (filename_cc, filename_h)
 
def saber_cpplint.UpdateIncludeState (filename, include_dict, io=codecs)
 
def saber_cpplint.CheckForIncludeWhatYouUse (filename, clean_lines, include_state, error, io=codecs)
 
def saber_cpplint.CheckMakePairUsesDeduction (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckRedundantVirtual (filename, clean_lines, linenum, error)
 
def saber_cpplint.CheckRedundantOverrideOrFinal (filename, clean_lines, linenum, error)
 
def saber_cpplint.IsBlockInNameSpace (nesting_state, is_forward_declaration)
 
def saber_cpplint.ShouldCheckNamespaceIndentation (nesting_state, is_namespace_indent_item, raw_lines_no_comments, linenum)
 
def saber_cpplint.CheckItemIndentationInNamespace (filename, raw_lines_no_comments, linenum, error)
 
def saber_cpplint.ProcessLine (filename, file_extension, clean_lines, line, include_state, function_state, nesting_state, error, extra_check_functions=None)
 
def saber_cpplint.FlagCxx11Features (filename, clean_lines, linenum, error)
 
def saber_cpplint.FlagCxx14Features (filename, clean_lines, linenum, error)
 
def saber_cpplint.ProcessFileData (filename, file_extension, lines, error, extra_check_functions=None)
 
def saber_cpplint.ProcessConfigOverrides (filename)
 
def saber_cpplint.ProcessFile (filename, vlevel, extra_check_functions=None)
 
def saber_cpplint.PrintUsage (message)
 
def saber_cpplint.PrintCategories ()
 
def saber_cpplint.ParseArguments (args)
 
def saber_cpplint._ExpandDirectories (filenames)
 
def saber_cpplint._FilterExcludedFiles (filenames)
 
def saber_cpplint.main ()
 

Variables

 saber_cpplint._header_extensions = set([])
 
 saber_cpplint._valid_extensions = set([])
 
string saber_cpplint._USAGE
 
list saber_cpplint._ERROR_CATEGORIES
 
list saber_cpplint._LEGACY_ERROR_CATEGORIES
 
list saber_cpplint._DEFAULT_FILTERS = ['-build/include_alpha']
 
list saber_cpplint._DEFAULT_C_SUPPRESSED_CATEGORIES
 
list saber_cpplint._DEFAULT_KERNEL_SUPPRESSED_CATEGORIES
 
 saber_cpplint._CPP_HEADERS
 
 saber_cpplint._TYPES
 
 saber_cpplint._THIRD_PARTY_HEADERS_PATTERN
 
list saber_cpplint._test_suffixes = ['_test', '_regtest', '_unittest']
 
string saber_cpplint._TEST_FILE_SUFFIX = '(' + '|'.join(_test_suffixes) + r')$'
 
 saber_cpplint._EMPTY_CONDITIONAL_BODY_PATTERN = re.compile(r'^\s*$', re.DOTALL)
 
list saber_cpplint._CHECK_MACROS
 
 saber_cpplint._CHECK_REPLACEMENT = dict([(macro_var, {}) for macro_var in _CHECK_MACROS])
 
dictionary saber_cpplint._ALT_TOKEN_REPLACEMENT
 
 saber_cpplint._ALT_TOKEN_REPLACEMENT_PATTERN
 
int saber_cpplint._C_SYS_HEADER = 1
 
int saber_cpplint._CPP_SYS_HEADER = 2
 
int saber_cpplint._LIKELY_MY_HEADER = 3
 
int saber_cpplint._POSSIBLE_MY_HEADER = 4
 
int saber_cpplint._OTHER_HEADER = 5
 
int saber_cpplint._NO_ASM = 0
 
int saber_cpplint._INSIDE_ASM = 1
 
int saber_cpplint._END_ASM = 2
 
int saber_cpplint._BLOCK_ASM = 3
 
 saber_cpplint._MATCH_ASM
 
 saber_cpplint._SEARCH_C_FILE
 
 saber_cpplint._SEARCH_KERNEL_FILE = re.compile(r'\b(?:LINT_KERNEL_FILE)')
 
dictionary saber_cpplint._regexp_compile_cache = {}
 
dictionary saber_cpplint._error_suppressions = {}
 
 saber_cpplint._root = None
 
 saber_cpplint._repository = None
 
 saber_cpplint._excludes = None
 
bool saber_cpplint._quiet = False
 
int saber_cpplint._line_length = 80
 
 saber_cpplint.xrange = range
 
 saber_cpplint.basestring = str
 
 saber_cpplint.long = int
 
 saber_cpplint.itervalues = dict.itervalues
 
 saber_cpplint.iteritems = dict.iteritems
 
dictionary saber_cpplint._global_error_suppressions = {}
 
 saber_cpplint._cpplint_state = _CppLintState()
 
 saber_cpplint._RE_PATTERN_CLEANSE_LINE_ESCAPES
 
string saber_cpplint._RE_PATTERN_C_COMMENTS = r'/\*(?:[^*]|\*(?!/))*\*/'
 
 saber_cpplint._RE_PATTERN_CLEANSE_LINE_C_COMMENTS
 
string saber_cpplint._UNSAFE_FUNC_PREFIX = r'(?:[-+*/=%^&|(<]\s*|>\s+)'
 
tuple saber_cpplint._THREADING_LIST
 
 saber_cpplint._RE_PATTERN_INVALID_INCREMENT
 
 saber_cpplint._RE_PATTERN_TODO = re.compile(r'^//(\s*)TODO(\‍(.+?\‍))?:?(\s|$)?')
 
 saber_cpplint._RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*include\s*([<"])([^>"]*)[>"].*$')
 
 saber_cpplint._RE_FIRST_COMPONENT = re.compile(r'^[^-_.]+')
 
string saber_cpplint._RE_PATTERN_IDENT = r'[_a-zA-Z]\w*'
 
tuple saber_cpplint._RE_PATTERN_TYPE
 
 saber_cpplint._RE_PATTERN_REF_PARAM
 
tuple saber_cpplint._RE_PATTERN_CONST_REF_PARAM
 
tuple saber_cpplint._RE_PATTERN_REF_STREAM_PARAM
 
tuple saber_cpplint._HEADERS_CONTAINING_TEMPLATES
 
tuple saber_cpplint._HEADERS_MAYBE_TEMPLATES
 
 saber_cpplint._RE_PATTERN_STRING = re.compile(r'\bstring\b')
 
list saber_cpplint._re_pattern_headers_maybe_templates = []
 
list saber_cpplint._re_pattern_templates = []
 
 saber_cpplint._RE_PATTERN_EXPLICIT_MAKEPAIR = re.compile(r'\bmake_pair\s*<')