[clang] [clang][ExtractAPI] combine typedef records if the underlying type's name is underscored (PR #125964)

2025-02-09 Thread Pete Lawrence via cfe-commits
https://github.com/PortalPete edited https://github.com/llvm/llvm-project/pull/125964 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] combine typedef records if the underlying type's name is underscored (PR #125964)

2025-02-06 Thread Pete Lawrence via cfe-commits
https://github.com/PortalPete edited https://github.com/llvm/llvm-project/pull/125964 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] combine typedef records if the underlying type's name is underscored (PR #125964)

2025-02-06 Thread Pete Lawrence via cfe-commits
https://github.com/PortalPete edited https://github.com/llvm/llvm-project/pull/125964 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] combine typedef records if the underlying type's name is underscored (PR #125964)

2025-02-06 Thread Pete Lawrence via cfe-commits
https://github.com/PortalPete edited https://github.com/llvm/llvm-project/pull/125964 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] combine typedef records if the underlying type's name is underscored (PR #125964)

2025-02-06 Thread Pete Lawrence via cfe-commits
@@ -1146,11 +1146,29 @@ bool ExtractAPIVisitorBase::VisitTypedefNameDecl( StringRef Name = Decl->getName(); + auto nameMatches = [&Name](TagDecl *TagDecl) { +StringRef TagName = TagDecl->getName(); + +if (TagName == Name) + return true; + +// Also check w