'Reset section checking for preprocessor directive.
Args:
directive: preprocessor directive (e.g. "if", "else").'

def ResetSection(self, directive):

    self._section = self._INITIAL_SECTION
    self._last_header = ''
    if (directive in ('if', 'ifdef', 'ifndef')):
        self.include_list.append([])
    elif (directive in ('else', 'elif')):
        self.include_list[(-1)] = []
