[PATCH] D151586: [clang][modules] NFCI: Extract optionality out of `Module::{Header,DirectoryName}`

Ben Langmuir via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 26 14:10:48 PDT 2023


benlangmuir accepted this revision.
benlangmuir added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Basic/Module.cpp:486
 
-  if (Header H = getWrittenUmbrellaHeader()) {
+  if (auto H = getWrittenUmbrellaHeader()) {
     OS.indent(Indent + 2);
----------------
These are on the edge, but I think I would lean towards spelling the typename here since it's not obvious from the name of the API what exactly it would be


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151586



More information about the cfe-commits mailing list