[ClangImporter] Add various const

`getSelector` now takes a `const clang::IdentifierInfo *` `ArrayRef`.
Sprinkle a bunch of `const`s in.
This commit is contained in:
Ben Barham
2024-06-05 21:30:30 -07:00
parent 701800fbeb
commit 226ba82525
4 changed files with 12 additions and 12 deletions

View File

@@ -1351,7 +1351,7 @@ getClangDeclarationName(const clang::NamedDecl *ND, NameTranslatingInfo &Info) {
return clang::DeclarationName();
ArrayRef<StringRef> Args = llvm::ArrayRef(Info.ArgNames);
std::vector<clang::IdentifierInfo *> Pieces;
std::vector<const clang::IdentifierInfo *> Pieces;
for (unsigned i = 0; i < NumPieces; ++i) {
if (i >= Info.ArgNames.size() || Info.ArgNames[i].empty()) {
Pieces.push_back(OrigSel.getIdentifierInfoForSlot(i));