For this case, the argument of decltype is the provider.
This fixes the sample in https://github.com/llvm/llvm-project/issues/59916#issuecomment-1377214667
Paths
| Differential D141608
[include-cleaner] Don't consider the underlying type of Decltype MemberProvider as a use Needs ReviewPublic Authored by hokein on Jan 12 2023, 6:04 AM.
Details
Summary For this case, the argument of decltype is the provider. This fixes the sample in https://github.com/llvm/llvm-project/issues/59916#issuecomment-1377214667
Diff Detail
Event TimelineComment Actions I am a little skeptical about this one. I think it's somewhat an obscure pattern, and probably warrants a use of the type when it can be deduced and the user code is accessing members (relying on the type more than an opaque manner). So what about waiting on this patch until we encounter examples in real world that require such a treatment? Comment Actions
Sure, sounds good.
Revision Contents
Diff 488628 clang-tools-extra/include-cleaner/lib/WalkAST.cpp
clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
|