This is an archive of the discontinued LLVM Phabricator instance.

[AST] Dump containsErrors bit for the Type.
ClosedPublic

Authored by hokein on Jun 16 2020, 12:08 AM.

Diff Detail

Event Timeline

hokein created this revision.Jun 16 2020, 12:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2020, 12:08 AM

Can we add a test at least for the text dump?

clang/lib/AST/TextNodeDumper.cpp
205

IIRC in the expr case we used a color, does that make sense here?

hokein updated this revision to Diff 271045.Jun 16 2020, 4:43 AM
hokein marked an inline comment as done.

add tests.

clang/lib/AST/TextNodeDumper.cpp
205

yeah, in the expr we use a color, but here I don't have a strong opinion -- the other dependence bits don't use color as well, so I'd keep consistent.

sammccall added inline comments.Jun 17 2020, 8:08 AM
clang/lib/AST/TextNodeDumper.cpp
205

IMO it's at least as important to be consistent in how "contains-errors" is displayed, than it is that it's displayed in the same way as other bits.

I think this bit is special enough to warrant a color, but happy without... in that case we should drop it from exprs.

hokein updated this revision to Diff 271733.Jun 18 2020, 8:31 AM

address comment: emit the error-bit with color.

sammccall accepted this revision.Jun 18 2020, 10:09 AM
This revision is now accepted and ready to land.Jun 18 2020, 10:09 AM
This revision was automatically updated to reflect the committed changes.
hokein marked an inline comment as done.