File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1836,8 +1836,8 @@ auto APINotesReader::lookupObjCClassID(StringRef name) -> Optional<ContextID> {
1836
1836
if (!classID)
1837
1837
return None;
1838
1838
1839
- // TODO: Can ObjC classes be declared in C++ namespaces? If so, we should pass
1840
- // the parent context and use it instead of -1 .
1839
+ // ObjC classes can't be declared in C++ namespaces, so use -1 as the global
1840
+ // context.
1841
1841
auto knownID = Impl.ObjCContextIDTable ->find (
1842
1842
{-1 , (uint8_t )ContextKind::ObjCClass, *classID});
1843
1843
if (knownID == Impl.ObjCContextIDTable ->end ())
@@ -1871,8 +1871,8 @@ auto APINotesReader::lookupObjCProtocolID(StringRef name)
1871
1871
if (!classID)
1872
1872
return None;
1873
1873
1874
- // TODO: Can ObjC classes be declared in C++ namespaces? If so, we should pass
1875
- // the parent context and use it instead of -1 .
1874
+ // ObjC classes can't be declared in C++ namespaces, so use -1 as the global
1875
+ // context.
1876
1876
auto knownID = Impl.ObjCContextIDTable ->find (
1877
1877
{-1 , (uint8_t )ContextKind::ObjCProtocol, *classID});
1878
1878
if (knownID == Impl.ObjCContextIDTable ->end ())
You can’t perform that action at this time.
0 commit comments