parameters: (self)
return_statement: return result
docstring: Return the sorted list of all indices that pass the
          self.should_format predicate.
docstring_summary: Return the sorted list of all indices that pass the
          self.should_format predicate.
docstring_tokens: Return the sorted list of all indices that pass the self . should_format predicate .
function: def get_format_indices(self):
          """Return the sorted list of all indices that pass the
          self.should_format predicate.
          """
          result = []
          clang_format_on = True
          for index, line in enumerate(self._working_lines):
              # Ignore lines between clang-format directive comments, and also
              # ignore the lines with the directive comments themselves.
              if '// clang-format off' in line:
                  clang_format_on = False
                  continue
              if '/* clang-format off' in line:
                  clang_format_on = False
                  continue
              elif '// clang-format on' in line:
                  clang_format_on = True
                  continue
              elif '/* clang-format on' in line:
                  clang_format_on = True
                  continue
              if self.should_format(clang_format_on, index, line):
                  result.append(index)
          return result
function_tokens: def get_format_indices ( self ) : result = [ ] clang_format_on = True for index , line in enumerate ( self . _working_lines ) : # Ignore lines between clang-format directive comments, and also # ignore the lines with the directive comments themselves. if '// clang-format off' in line : clang_format_on = False continue if '/* clang-format off' in line : clang_format_on = False continue elif '// clang-format on' in line : clang_format_on = True continue elif '/* clang-format on' in line : clang_format_on = True continue if self . should_format ( clang_format_on , index , line ) : result . append ( index ) return result