jackhong12 added a comment.
I think we cannot identify `struct`, `union`, `class` or `enum` by the right
bracket. Clang-format will split the input into multiple lines. For instance
`struct Tmp {} *tmp;` will be separated as `struct Tmp {` and `} *tmp;`. In
annotating, we only handle the relation of tokens in a single line, so we
cannot know whether `}` belongs to `struct` or not.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127873/new/
https://reviews.llvm.org/D127873
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits