This patch is to fix https://github.com/llvm/llvm-project/issues/59785.
related patches: https://reviews.llvm.org/D86581 and https://reviews.llvm.org/D100778.
I think the condition added in D100778 is enough to judge shifts within conditions, the condition added in D86581 is unnecessary and will cause template opener/closer parsed as binary operator, so I simply remove the condition added in D86581.
I was wondering this is actually saying....
I think its saying... 2 tokens are next to each other ">>" its not so much formatting but ensuring the existing formatting is maintained, is that what you understand?
Whilst this works it won't correct the case where the whitespace is wrong
i.e. I don't think
will be corrected to be
I'm a little wary of rules that use the existing whitespace, but I tend to agree that it might be ok without the extra check.
It would be good to capture this as an annotator test (I like the verifyformat one you put in) but the annotator tests we can assert that its actually a templatecloser and binary operatror