[clang-doc] Fix typedef/using output.
authorBrett Wilson <brettw@gmail.com>
Mon, 24 Oct 2022 20:48:55 +0000 (13:48 -0700)
committerBrett Wilson <brettw@gmail.com>
Tue, 25 Oct 2022 20:47:24 +0000 (13:47 -0700)
commit7231c9966e523a6fa20aa63b9a9245aff49cf881
tree9c52baac41534579092f8fd06d0112c951784bcf
parent39917b5e0174e0e4206df31da0e32b984c96c404
[clang-doc] Fix typedef/using output.

Provides an initializer for the TypedefInfo.IsUsing member. Previously
this member was uninitialized and would produce random output.

Adds the Description (code comments) to the bitcode reader/writer.
Previously the typedef/using descriptions were lost during the bitcode
round-trip. Adds a test for this.

Differential Revision: https://reviews.llvm.org/D136638
clang-tools-extra/clang-doc/BitcodeReader.cpp
clang-tools-extra/clang-doc/BitcodeWriter.cpp
clang-tools-extra/clang-doc/Representation.h
clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp