This is an archive of the discontinued LLVM Phabricator instance.

[AST] Ensure that an empty json file is generated if compile errors
ClosedPublic

Authored by steveire on Mar 17 2021, 4:30 PM.

Diff Detail

Event Timeline

steveire requested review of this revision.Mar 17 2021, 4:30 PM
steveire created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2021, 4:30 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Are there any tests that ensure something is always outputted?

steveire added a comment.EditedMar 18 2021, 12:32 PM

Are there any tests that ensure something is always outputted?

The test verifies that the generated c++ either gives no introspection data or introspection data which the test expects.

Thats the best we can do currently because there are lots of cases where we don't know whether dummy data of valid data will be generated.

njames93 accepted this revision.Mar 20 2021, 9:57 AM
This revision is now accepted and ready to land.Mar 20 2021, 9:57 AM