owenpan added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:2485-2486
if (Next->Next && Next->Next->is(tok::identifier) &&
- !(Next->MatchingParen->Next && Next->MatchingParen->Next->is(tok::semi)))
+ (!Next->MatchingParen->Next ||
+ Next->MatchingParen->Next->is(tok::l_brace)))
return true;
----------------
I was contemplating the above in https://reviews.llvm.org/D105964 and should
have used it instead. This is probably more conservative and accurate than
checking for an `l_brace` following the `r_paren`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107269/new/
https://reviews.llvm.org/D107269
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits