@@ -1510,18 +1510,18 @@ ClangImporter::create(ASTContext &ctx,
1510
1510
importer->Impl .objectAtIndexedSubscript
1511
1511
= clangContext.Selectors .getUnarySelector (
1512
1512
&clangContext.Idents .get (" objectAtIndexedSubscript" ));
1513
- clang::IdentifierInfo *setObjectAtIndexedSubscriptIdents[2 ] = {
1514
- &clangContext.Idents .get (" setObject" ),
1515
- &clangContext.Idents .get (" atIndexedSubscript" )
1513
+ const clang::IdentifierInfo *setObjectAtIndexedSubscriptIdents[2 ] = {
1514
+ &clangContext.Idents .get (" setObject" ),
1515
+ &clangContext.Idents .get (" atIndexedSubscript" ),
1516
1516
};
1517
1517
importer->Impl .setObjectAtIndexedSubscript
1518
1518
= clangContext.Selectors .getSelector (2 , setObjectAtIndexedSubscriptIdents);
1519
1519
importer->Impl .objectForKeyedSubscript
1520
1520
= clangContext.Selectors .getUnarySelector (
1521
1521
&clangContext.Idents .get (" objectForKeyedSubscript" ));
1522
- clang::IdentifierInfo *setObjectForKeyedSubscriptIdents[2 ] = {
1523
- &clangContext.Idents .get (" setObject" ),
1524
- &clangContext.Idents .get (" forKeyedSubscript" )
1522
+ const clang::IdentifierInfo *setObjectForKeyedSubscriptIdents[2 ] = {
1523
+ &clangContext.Idents .get (" setObject" ),
1524
+ &clangContext.Idents .get (" forKeyedSubscript" ),
1525
1525
};
1526
1526
importer->Impl .setObjectForKeyedSubscript
1527
1527
= clangContext.Selectors .getSelector (2 , setObjectForKeyedSubscriptIdents);
@@ -2882,7 +2882,7 @@ ClangImporter::Implementation::exportSelector(DeclName name,
2882
2882
2883
2883
clang::ASTContext &ctx = getClangASTContext ();
2884
2884
2885
- SmallVector<clang::IdentifierInfo *, 8 > pieces;
2885
+ SmallVector<const clang::IdentifierInfo *, 8 > pieces;
2886
2886
pieces.push_back (exportName (name.getBaseIdentifier ()).getAsIdentifierInfo ());
2887
2887
2888
2888
auto argNames = name.getArgumentNames ();
@@ -2901,7 +2901,7 @@ ClangImporter::Implementation::exportSelector(DeclName name,
2901
2901
2902
2902
clang::Selector
2903
2903
ClangImporter::Implementation::exportSelector (ObjCSelector selector) {
2904
- SmallVector<clang::IdentifierInfo *, 4 > pieces;
2904
+ SmallVector<const clang::IdentifierInfo *, 4 > pieces;
2905
2905
for (auto piece : selector.getSelectorPieces ())
2906
2906
pieces.push_back (exportName (piece).getAsIdentifierInfo ());
2907
2907
return getClangASTContext ().Selectors .getSelector (selector.getNumArgs (),
@@ -2917,7 +2917,7 @@ isPotentiallyConflictingSetter(const clang::ObjCProtocolDecl *proto,
2917
2917
if (sel.getNumArgs () != 1 )
2918
2918
return false ;
2919
2919
2920
- clang::IdentifierInfo *setterID = sel.getIdentifierInfoForSlot (0 );
2920
+ const clang::IdentifierInfo *setterID = sel.getIdentifierInfoForSlot (0 );
2921
2921
if (!setterID || !setterID->getName ().starts_with (" set" ))
2922
2922
return false ;
2923
2923
0 commit comments