[clang-tools-extra] [clangd] Don't show inlay hints for __builtin_dump_struct (PR #71366)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 25 22:10:16 PST 2023
================
@@ -1724,6 +1724,33 @@ TEST(InlayHints, RestrictRange) {
ElementsAre(labelIs(": int"), labelIs(": char")));
}
+TEST(ParameterHints, PseudoObjectExpr) {
+ Annotations Code(R"cpp(
+ struct S {
+ __declspec(property(get=GetX, put=PutX)) int x[];
+ int GetX(int y, int z) { return 42 + y; }
+ void PutX(int y) { x = $one[[y]]; } // FIXME: Undesired `x = y: y` for this ill-formed expression.
----------------
HighCommander4 wrote:
I'm not sure what other bad cases there might be, but excluding cases where the syntactic form is a `BinaryOperator` to avoid this case sounds fine to me.
https://github.com/llvm/llvm-project/pull/71366
More information about the cfe-commits
mailing list