def is_source_file(filename):
    """Checks if the file is source file
    
    Args:
        filename (str): checked filename
    
    Returns:
        (bool): is file source file
    """
    
    return filename.endswith('.h') or filename.endswith('.hpp') \
        or filename.endswith('.c') or filename.endswith('.cpp')