@@ -1151,7 +1151,7 @@ fillSymbolInfo(CursorSymbolInfo &Symbol, const DeclInfo &DInfo,
1151
1151
return llvm::Error::success ();
1152
1152
}
1153
1153
1154
- // If E is a literal, returns the declaration that should be reported by
1154
+ // If \p E is a literal, returns the declaration that should be reported by
1155
1155
// cursor info for that initializer.
1156
1156
static ValueDecl *getCursorInfoDeclForLiteral (Expr *E) {
1157
1157
if (auto *CollectionLit = dyn_cast<CollectionExpr>(E)) {
@@ -1163,7 +1163,7 @@ static ValueDecl *getCursorInfoDeclForLiteral(Expr *E) {
1163
1163
return nullptr ;
1164
1164
}
1165
1165
1166
- bool IsObjectLiteral = dyn_cast <ObjectLiteralExpr>(E);
1166
+ bool IsObjectLiteral = isa <ObjectLiteralExpr>(E);
1167
1167
if (!IsObjectLiteral && LitExpr->getInitializer ().getDecl ()) {
1168
1168
return LitExpr->getInitializer ().getDecl ();
1169
1169
}
@@ -1192,13 +1192,13 @@ static bool addCursorInfoForLiteral(
1192
1192
return false ;
1193
1193
}
1194
1194
1195
- ValueDecl *InitDecl = getCursorInfoDeclForLiteral (LitExpr);
1196
- if (!InitDecl ) {
1195
+ ValueDecl *Decl = getCursorInfoDeclForLiteral (LitExpr);
1196
+ if (!Decl ) {
1197
1197
return false ;
1198
1198
}
1199
1199
1200
1200
auto &Symbol = Data.Symbols .emplace_back ();
1201
- DeclInfo Info (InitDecl , nullptr , true , false , {}, CompInvoc);
1201
+ DeclInfo Info (Decl , nullptr , true , false , {}, CompInvoc);
1202
1202
auto Err = fillSymbolInfo (Symbol, Info, CursorLoc, false , Lang, CompInvoc,
1203
1203
PreviousSnaps, Data.Allocator );
1204
1204
0 commit comments