docs: 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