balazske added a comment.

Really I still not understand why the previous `BugType` dependent `NoteTag` 
functions were bad design (except that it could make the code difficult to 
understand). If we would have the BugType available in the NoteTag, we could 
make the decision about what to display and no "or"s are needed in the message. 
We do not need a "Stream either reaches end-of-file, or fails and has its file 
position indicator left indeterminate and the error flag set." message if the 
information is available about what the exact problem was (from the BugType) 
and we can build a "Stream reaches end-of-file." if the bug was end-of-file 
related, and so on. (Really instead of the bug type other information could be 
used that is passed from the bug report to the note tag, but there is no way 
for this to do?) Otherwise just the user has to find this out the same thing by 
looking at later functions and notes. So I want to wait for the opinion of 
another reviewer(s) before proceeding.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106262

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

Reply via email to