def is_source_file(args, filepath):
    """Returns true if it is a C++ source file."""
    if args.extension:
        return os.path.splitext(filepath)[1] in args.extension
    else:
        return os.path.splitext(filepath)[1] in _CPP_EXTENSIONS
def is_source_file ( args , filepath ) : if args . extension : return os . path . splitext ( filepath ) [ 1 ] in args . extension else : return os . path . splitext ( filepath ) [ 1 ] in _CPP_EXTENSIONS
Returns true if it is a C++ source file.