This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Fix forward declaration in JSON.h
ClosedPublic

Authored by serge-sans-paille on Jul 12 2022, 2:00 PM.

Details

Summary

As spotted in #55780 methods of json::Array require json::Value to be completely defined, so they can't be defined in-class. Fix that by defining them out of class.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 2:00 PM
serge-sans-paille requested review of this revision.Jul 12 2022, 2:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 2:00 PM

Extra definition moved.

Rebase on main branch. According to thread in https://github.com/llvm/llvm-project/issues/55780 this fixes the original bug.

This revision is now accepted and ready to land.Sep 5 2022, 5:52 AM