llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Prettier printing for variables

Open Xazax-hun opened this issue 6 years ago • 2 comments

Would be nice to condense (*a).f into a->f for diagnostics. It should work well for multiple dereferences. So:

(*(*a)).f => (*a)->f

Xazax-hun avatar Sep 10 '18 17:09 Xazax-hun

Another problem:

void f(const T& x) {
  int i;
  return &i; // Here we will say that the expected pset is *x, which is confusing. 
}

Xazax-hun avatar Sep 13 '18 19:09 Xazax-hun

Some improvements were made in https://github.com/mgehre/llvm-project/commit/082790623dde33297cac949e7ca032e2b0595a54

Xazax-hun avatar Aug 28 '19 22:08 Xazax-hun