[PATCH] D140010: [clang][ExtractAPI] Fix naming of typedef'd anonymous enums

Zixu Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 14 10:30:57 PST 2022


zixuw added inline comments.


================
Comment at: clang/lib/ExtractAPI/ExtractAPIVisitor.cpp:174-175
+  StringRef Name = Decl->getName();
   if (Name.empty())
     Name = getTypedefName(Decl);
+  if (Name.empty()) {
----------------
Aren't these two lines supposed to do this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140010



More information about the cfe-commits mailing list