Home | History | Annotate | Download | only in tools

Lines Matching refs:include_state

3028 def CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
3039 include_state: An _IncludeState instance in which the headers are inserted.
3058 if include in include_state:
3061 (include, filename, include_state[include]))
3063 include_state[include] = linenum
3073 # using a number of techniques. The include_state object keeps
3076 error_message = include_state.CheckNextIncludeOrder(
3082 if not include_state.IsInAlphabeticalOrder(include):
3153 def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state,
3165 include_state: An _IncludeState instance in which the headers are inserted.
3176 CheckIncludeLine(filename, clean_lines, linenum, include_state, error)
3638 def UpdateIncludeState(filename, include_state, io=codecs):
3639 """Fill up the include_state with new includes found from the file.
3643 include_state: an _IncludeState instance in which the headers are inserted.
3662 # What matters here is that the key is in include_state.
3663 include_state.setdefault(include, '%s:%d' % (filename, linenum))
3667 def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error,
3680 include_state: An _IncludeState instance.
3716 # Let's copy the include_state so it is only messed up within this function.
3717 include_state = include_state.copy()
3734 # include_state is modified during iteration, so we iterate over a copy of
3736 header_keys = include_state.keys()
3740 if same_module and UpdateIncludeState(fullpath, include_state, io):
3754 if required_header_unstripped.strip('<>"') not in include_state:
3786 include_state, function_state, nesting_state, error,
3796 include_state: An _IncludeState instance in which the headers are inserted.
3814 CheckLanguage(filename, clean_lines, line, file_extension, include_state,
3842 include_state = _IncludeState()
3857 include_state, function_state, nesting_state, error,
3861 CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)