[clang] Reformat
Reformat some misindentation that is coincidentally close to a piece being worked on. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D122314
This commit is contained in:
parent
4d20781b69
commit
de867c6d6e
|
@ -549,22 +549,22 @@ void USRGenerator::VisitTagDecl(const TagDecl *D) {
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue