mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ClangImporter] Add various const
`getSelector` now takes a `const clang::IdentifierInfo *` `ArrayRef`. Sprinkle a bunch of `const`s in.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user