AST: rename printDeclUSRForModuleDoc to printDeclUSR. NFC

This commit is contained in:
Xi Ge
2019-10-07 16:29:52 -07:00
parent 5430ad50fa
commit dd33540231
12 changed files with 25 additions and 25 deletions

View File

@@ -2358,7 +2358,7 @@ Optional<CommentInfo> ModuleFile::getCommentForDecl(const Decl *D) const {
// Compute the USR.
llvm::SmallString<128> USRBuffer;
llvm::raw_svector_ostream OS(USRBuffer);
if (ide::printDeclUSRForModuleDoc(D, OS))
if (ide::printDeclUSR(D, OS))
return None;
return getCommentForDeclByUSR(USRBuffer.str());
@@ -2378,7 +2378,7 @@ Optional<BasicDeclLocs> ModuleFile::getBasicDeclLocsForDecl(const Decl *D) const
// Compute the USR.
llvm::SmallString<128> USRBuffer;
llvm::raw_svector_ostream OS(USRBuffer);
if (ide::printDeclUSRForModuleDoc(D, OS))
if (ide::printDeclUSR(D, OS))
return None;
auto It = DeclUSRsTable->find(OS.str());