Skip to content

Commit 064a7dd

Browse files
author
Gabor Horvath
committed
Address review comments.
1 parent 53861a4 commit 064a7dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/PrintAsClang/PrintClangFunction.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,15 +713,14 @@ ClangRepresentation DeclAndTypeClangFunctionPrinter::printFunctionSignature(
713713
if (kind == FunctionSignatureKind::CxxInlineThunk)
714714
ClangSyntaxPrinter(os).printGenericSignature(Signature);
715715
}
716-
if (const auto *enumDecl = FD->getDeclContext()->getSelfEnumDecl())
717-
{
716+
if (const auto *enumDecl = FD->getDeclContext()->getSelfEnumDecl()) {
718717
// We cannot emit functions with the same name as an enum case yet, the resulting header
719718
// does not compiler.
720719
// FIXME: either do not emit cases as inline members, or rename the cases or the
721720
// colliding functions.
722721
for (const auto *enumElement : enumDecl->getAllElements()) {
723722
auto elementName = enumElement->getName();
724-
if (!elementName.isSpecial() && elementName.getBaseIdentifier().str() == name)
723+
if (!elementName.isSpecial() && elementName.getBaseIdentifier().is(name))
725724
return ClangRepresentation::unsupported;
726725
}
727726
}

0 commit comments

Comments
 (0)