add code completion for delete and default specifier.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Sema/Sema.h | ||
---|---|---|
11999 | nit: "specifier" isn't an accurate term here. I don't know that there is one, and it seems better to name the method after the situation rather than the concrete completions it might offer. Maybe just CodeCompleteAfterFunctionEquals? | |
clang/lib/Sema/SemaCodeComplete.cpp | ||
6281 | I'm not sure offering default whether it's valid or not is an improvement over never offering it. I think the following checks are easy to implement based on the Declarator and "good enough":
In particular, we shouldn't offer =default for arbitrary methods (consider = 0 on a virtual method), and we shouldn't offer it for non-members (I think currently it will be offered outside class context) |
Hi, your git commit contains extra Phabricator tags. You can drop Reviewers: Subscribers: Tags: and the text Summary: from the git commit with the following script:
arcfilter () { arc amend git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F - }
Reviewed By: is considered important by some people. Please keep the tag. (--date=now is my personal preference (author dates are usually not useful. Using committer dates can make log almost monotonic in time))
https://reviews.llvm.org/D80978 contains a git pre-push hook to automate this.
Please don't revert to cause unnecessary churn. Just be mindful when committing for the next time..
nit: "specifier" isn't an accurate term here. I don't know that there is one, and it seems better to name the method after the situation rather than the concrete completions it might offer.
Maybe just CodeCompleteAfterFunctionEquals?