code: 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
docs: Returns true if it is a C++ source file.