curdeius added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:981
consumeToken();
+ if (CurrentToken->is(tok::comma) &&
+ CurrentToken->Previous->isNot(tok::kw_operator))
----------------
Shouldn't you check `CurrentToken` for not being null after a call to
`consumeToken`?? It may happen if `operator` is at the end of input (even if
it's a degenerated case).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80933/new/
https://reviews.llvm.org/D80933
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits