Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Adding a link to the issue that this pertains to: https://github.com/clangd/clangd/issues/447
Comment Actions
This direction looks promising to me.
There is precedent for having a config option whose value is a list of qualified names (https://clangd.llvm.org/config.html#fullyqualifiednamespaces), we could have a similar setting for the user to specify custom smart pointer factory names like QSharedPointer::create.
clang/lib/Sema/SemaCodeComplete.cpp | ||
---|---|---|
6122 | If we generalize this to user-specified factory functions, getAsType() will need a null check here (in case the user mistakenly specified a function with a non-type template argument), and likewise below. (Maybe it doesn't hurt to have a null check even now, in case it can produce a null type in the presence of invalid code or something?) |