hongtaihu wrote:
> > Now it only rejects `CXXConversionFunctionName`.
>
> That was exactly my question. If we always reject
> `CXXConversionFunctionName`, might we be discarding cases that shouldn't be
> discarded? I gave an example earlier with `CXXConversionFunctionName`
> (`W.operator Something`) where including a header would have fixed the error,
> but it seems with this patch we would discard such a case?
Good point. I added your example as a regression test:
auto V = W.operator::Something();
with `Something` indexed from `test.h`.
The test passes and verifies that clangd still offers
`#include "test.h"` for `Something`, so this case is not discarded by the
patch.
https://github.com/llvm/llvm-project/pull/212134
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits