wpiformat/wpiformat/includeorder.py
def rebuild_include(name_match, group_number):
        """Adds appropriate brackets around include name and "#include" before
        that based on group number.

        Keyword arguments:
        name_match -- include name's regex Match object
        group_number -- include classification index

        Returns include name with approriate brackets and "#include" prefix.
        """
        if 1 <= group_number <= 3:
            output = "#include <" + name_match.group("name") + ">" + \
                name_match.group("postfix")
        else:
            output = "#include \"" + name_match.group("name") + "\"" + \
                name_match.group("postfix")

        if name_match.group("comment"):
            return name_match.group("comment") + output
        else:
            return output
Adds appropriate brackets around include name and "#include" before
        that based on group number.

        Keyword arguments:
        name_match -- include name's regex Match object
        group_number -- include classification index

        Returns include name with approriate brackets and "#include" prefix.
        
Adds appropriate brackets around include name and "#include" before
that based on group number.

Keyword arguments:
name_match -- include name's regex Match object
group_number -- include classification index

Returns include name with approriate brackets and "#include" prefix.
Adds appropriate brackets around include name and " #include " before that based on group number . Keyword arguments : name_match -- include name ' s regex Match object group_number -- include classification index Returns include name with approriate brackets and " #include " prefix .
def rebuild_include(name_match, group_number):
        if 1 <= group_number <= 3:
            output = "#include <" + name_match.group("name") + ">" + \
                name_match.group("postfix")
        else:
            output = "#include \"" + name_match.group("name") + "\"" + \
                name_match.group("postfix")
        if name_match.group("comment"):
            return name_match.group("comment") + output
        else:
            return output
def rebuild_include ( name_match , group_number ) : if 1 <= group_number <= 3 : output = "#include <" + name_match . group ( "name" ) + ">" + name_match . group ( "postfix" ) else : output = "#include \"" + name_match . group ( "name" ) + "\"" + name_match . group ( "postfix" ) if name_match . group ( "comment" ) : return name_match . group ( "comment" ) + output else : return output
Adds appropriate brackets around include name and "#include" before
that based on group number.
Adds appropriate brackets around include name and " #include " before that based on group number .
"""Adds appropriate brackets around include name and "#include" before
        that based on group number.

        Keyword arguments:
        name_match -- include name's regex Match object
        group_number -- include classification index

        Returns include name with approriate brackets and "#include" prefix.
        """
name_match
group_number