[PATCH] D118598: [C++20][Modules][7/8] Find the primary interface name for a module.

Chuanqi Xu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 17 01:35:38 PST 2022


ChuanqiXu added a comment.

My implementation is

  StringRef getPrimaryModuleName() const {
      if (Check Kind)
        return Name;
      return StringRef(Name).split('-').first;
    }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118598/new/

https://reviews.llvm.org/D118598



More information about the cfe-commits mailing list