diff --git a/clang-tools-extra/clang-doc/Representation.h b/clang-tools-extra/clang-doc/Representation.h index b0b34fc6f08dd..1d5c4dcaeaf37 100644 --- a/clang-tools-extra/clang-doc/Representation.h +++ b/clang-tools-extra/clang-doc/Representation.h @@ -415,7 +415,13 @@ struct TypedefInfo : public SymbolInfo { TypeInfo Underlying; - // Inidicates if this is a new C++ "using"-style typedef: + // Underlying type declaration + SmallString<16> TypeDeclaration; + + /// Comment description for the typedef. + std::vector Description; + + // Indicates if this is a new C++ "using"-style typedef: // using MyVector = std::vector // False means it's a C-style typedef: // typedef std::vector MyVector; @@ -458,7 +464,8 @@ struct EnumValueInfo { // constant. This will be empty for implicit enumeration values. SmallString<16> ValueExpr; - std::vector Description; /// Comment description of this field. + /// Comment description of this field. + std::vector Description; }; // TODO: Expand to allow for documenting templating.