File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments