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(
713
713
if (kind == FunctionSignatureKind::CxxInlineThunk)
714
714
ClangSyntaxPrinter (os).printGenericSignature (Signature);
715
715
}
716
- if (const auto *enumDecl = FD->getDeclContext ()->getSelfEnumDecl ())
717
- {
716
+ if (const auto *enumDecl = FD->getDeclContext ()->getSelfEnumDecl ()) {
718
717
// We cannot emit functions with the same name as an enum case yet, the resulting header
719
718
// does not compiler.
720
719
// FIXME: either do not emit cases as inline members, or rename the cases or the
721
720
// colliding functions.
722
721
for (const auto *enumElement : enumDecl->getAllElements ()) {
723
722
auto elementName = enumElement->getName ();
724
- if (!elementName.isSpecial () && elementName.getBaseIdentifier ().str () == name)
723
+ if (!elementName.isSpecial () && elementName.getBaseIdentifier ().is ( name) )
725
724
return ClangRepresentation::unsupported;
726
725
}
727
726
}
You can’t perform that action at this time.
0 commit comments