FV3 Bundle
ioda/tools/cpplint.py File Reference

Go to the source code of this file.

Classes

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

Namespaces

 cpplint
 

Functions

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

Variables

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