def __init__()

in cpplint.py [0:0]


    def __init__(self, name, class_or_struct, clean_lines, linenum):
        _BlockInfo.__init__(self, linenum, False)
        self.name = name
        self.is_derived = False
        self.check_namespace_indentation = True
        if class_or_struct == 'struct':
            self.access = 'public'
            self.is_struct = True
        else:
            self.access = 'private'
            self.is_struct = False

        # Remember initial indentation level for this class.  Using raw_lines here
        # instead of elided to account for leading comments.
        self.class_indent = GetIndentLevel(clean_lines.raw_lines[linenum])

        # Try to find the end of the class.  This will be confused by things like:
        #   class A {
        #   } *x = { ...
        #
        # But it's still good enough for CheckSectionSpacing.
        self.last_line = 0
        depth = 0
        for i in range(linenum, clean_lines.NumLines()):
            line = clean_lines.elided[i]
            depth += line.count('{') - line.count('}')
            if not depth:
                self.last_line = i
                break