Fixes https://github.com/llvm/llvm-project/issues/57418
The token * below should be annotated as UnaryOperator.
delete[] *ptr;
Differential D132911
[clang-format] Fix annotating when deleting array of pointers jackhong12 on Aug 29 2022, 11:15 PM. Authored by
Details Fixes https://github.com/llvm/llvm-project/issues/57418 The token * below should be annotated as UnaryOperator. delete[] *ptr;
Diff Detail
Event Timeline
Comment Actions In this case, I think it's dereferencing a pointer instead of multiplying two numbers.
Comment Actions Please mark comments as done, when the discussion has ended.
|
I don't know if this is nice. I think I would prefer PrevToken->getPreviousNonComment() and subsequently PrevToken->getPreviousNonComment()->getPreviousNonComment().