[PATCH] D50375: [clangd] Share getSymbolID implementation.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 7 01:57:19 PDT 2018
hokein added inline comments.
================
Comment at: clangd/CodeComplete.cpp:399
case CodeCompletionResult::RK_Pattern: {
- llvm::SmallString<128> USR;
- if (/*Ignore=*/clang::index::generateUSRForDecl(R.Declaration, USR))
- return None;
- return SymbolID(USR);
+ return clang::clangd::getSymbolID(R.Declaration);
}
----------------
ioeric wrote:
> No need for namespace qualifiers?
We need the qualifiers to disambiguate the function name, because this function name is also `getSymbolID`.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50375
More information about the cfe-commits
mailing list