File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ findSwiftNameAttr(const clang::Decl *decl, ImportNameVersion version) {
643
643
}
644
644
645
645
if (auto enumDecl = dyn_cast<clang::EnumDecl>(decl)) {
646
- // Intentionally don't get the cannonical type here.
646
+ // Intentionally don't get the canonical type here.
647
647
if (auto typedefType = dyn_cast<clang::TypedefType>(enumDecl->getIntegerType ().getTypePtr ())) {
648
648
// If the typedef is available in Swift, the user will get ambiguity.
649
649
// It also means they may not have intended this API to be imported like this.
@@ -1781,7 +1781,7 @@ ImportedName NameImporter::importNameImpl(const clang::NamedDecl *D,
1781
1781
// If this enum inherits from a typedef we can compute the name from the
1782
1782
// typedef (even if it's an anonymous enum).
1783
1783
if (auto enumDecl = dyn_cast<clang::EnumDecl>(D)) {
1784
- // Intentionally don't get the cannonical type here.
1784
+ // Intentionally don't get the canonical type here.
1785
1785
if (auto typedefType = dyn_cast<clang::TypedefType>(enumDecl->getIntegerType ().getTypePtr ())) {
1786
1786
// If the typedef is available in Swift, the user will get ambiguity.
1787
1787
// It also means they may not have intended this API to be imported like this.
You can’t perform that action at this time.
0 commit comments