const NamedDecl *lookupSiblingWithName(const ASTContext &Ctx,
const NamedDecl &RenamedDecl,
llvm::StringRef Name) {
+ trace::Span Tracer("LookupSiblingWithName");
const auto &II = Ctx.Idents.get(Name);
DeclarationName LookupName(&II);
DeclContextLookupResult LookupResult;
// Return details if the rename would produce a conflict.
llvm::Optional<InvalidName> checkName(const NamedDecl &RenameDecl,
llvm::StringRef NewName) {
+ trace::Span Tracer("CheckName");
auto &ASTCtx = RenameDecl.getASTContext();
if (isKeyword(NewName, ASTCtx.getLangOpts()))
return InvalidName{InvalidName::Keywords, NewName.str()};