HazardyKnusperkeks added inline comments.

================
Comment at: clang/lib/Format/FormatToken.h:379
+  void setFinalizedType(TokenType T) {
+    Type = T;
+    TypeIsFinalized = true;
----------------
curdeius wrote:
> Maybe we should assert here and in `setType` that: 
> `assert(!TypeIsFinalized);`?
In `setType` we could. Here we would have the same problem I fixed in D120512.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120511/new/

https://reviews.llvm.org/D120511

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to