This revision was automatically updated to reflect the committed changes. Closed by commit rGde867c6d6ed8: [clang] Reformat (authored by urnathan). Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122314/new/ https://reviews.llvm.org/D122314 Files: clang/lib/Index/USRGeneration.cpp Index: clang/lib/Index/USRGeneration.cpp =================================================================== --- clang/lib/Index/USRGeneration.cpp +++ clang/lib/Index/USRGeneration.cpp @@ -549,22 +549,22 @@ if (const TypedefNameDecl *TD = D->getTypedefNameForAnonDecl()) { Buf[off] = 'A'; Out << '@' << *TD; - } - else { - if (D->isEmbeddedInDeclarator() && !D->isFreeStanding()) { - printLoc(Out, D->getLocation(), Context->getSourceManager(), true); } else { - Buf[off] = 'a'; - if (auto *ED = dyn_cast<EnumDecl>(D)) { - // Distinguish USRs of anonymous enums by using their first enumerator. - auto enum_range = ED->enumerators(); - if (enum_range.begin() != enum_range.end()) { - Out << '@' << **enum_range.begin(); + if (D->isEmbeddedInDeclarator() && !D->isFreeStanding()) { + printLoc(Out, D->getLocation(), Context->getSourceManager(), true); + } else { + Buf[off] = 'a'; + if (auto *ED = dyn_cast<EnumDecl>(D)) { + // Distinguish USRs of anonymous enums by using their first + // enumerator. + auto enum_range = ED->enumerators(); + if (enum_range.begin() != enum_range.end()) { + Out << '@' << **enum_range.begin(); + } } } } } - } // For a class template specialization, mangle the template arguments. if (const ClassTemplateSpecializationDecl *Spec
Index: clang/lib/Index/USRGeneration.cpp =================================================================== --- clang/lib/Index/USRGeneration.cpp +++ clang/lib/Index/USRGeneration.cpp @@ -549,22 +549,22 @@ if (const TypedefNameDecl *TD = D->getTypedefNameForAnonDecl()) { Buf[off] = 'A'; Out << '@' << *TD; - } - else { - if (D->isEmbeddedInDeclarator() && !D->isFreeStanding()) { - printLoc(Out, D->getLocation(), Context->getSourceManager(), true); } else { - Buf[off] = 'a'; - if (auto *ED = dyn_cast<EnumDecl>(D)) { - // Distinguish USRs of anonymous enums by using their first enumerator. - auto enum_range = ED->enumerators(); - if (enum_range.begin() != enum_range.end()) { - Out << '@' << **enum_range.begin(); + if (D->isEmbeddedInDeclarator() && !D->isFreeStanding()) { + printLoc(Out, D->getLocation(), Context->getSourceManager(), true); + } else { + Buf[off] = 'a'; + if (auto *ED = dyn_cast<EnumDecl>(D)) { + // Distinguish USRs of anonymous enums by using their first + // enumerator. + auto enum_range = ED->enumerators(); + if (enum_range.begin() != enum_range.end()) { + Out << '@' << **enum_range.begin(); + } } } } } - } // For a class template specialization, mangle the template arguments. if (const ClassTemplateSpecializationDecl *Spec
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits