llvm-project/clang-tools-extra/clang-doc
Julie Hockett b1f01e27ec [clang-doc] Add basic support for templates and typedef
In serialize::parseBases(...), when a base record is a template
specialization, the specialization was used as the parent. It should be
the base template so there is only one file generated for this record.
When the specialized template is implicitly declared the reference USR
corresponded to the GlobalNamespace's USR, this will now be the base
template's USR.

More information about templates will be added later.

In serialize::emiInfo(RecorDecl*, ...), typedef records were not handled
and the name was empty. This is now handled and a IsTypeDef attribute is
added to RecordInfo struct.

In serialize::emitInfo(CXXMethodDecl*, ...), template specialization is
handled like in serialize::parseBases(...).

Bitcode writer and reader are modified to handle the new attribute of
RecordInfo.

Submitted on behalf of Diego Astiazarán (diegoaat97@gmail.com)
Differential Revision: https://reviews.llvm.org/D63367

llvm-svn: 364222
2019-06-24 19:31:02 +00:00
..
tool [clang-doc] Build as clang_tool 2019-03-29 16:56:36 +00:00
BitcodeReader.cpp [clang-doc] Add basic support for templates and typedef 2019-06-24 19:31:02 +00:00
BitcodeReader.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BitcodeWriter.cpp [clang-doc] Add basic support for templates and typedef 2019-06-24 19:31:02 +00:00
BitcodeWriter.h [clang-doc] Add basic support for templates and typedef 2019-06-24 19:31:02 +00:00
CMakeLists.txt Reland "Implement a (simple) Markdown generator" 2018-09-11 15:56:55 +00:00
ClangDoc.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangDoc.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Generators.cpp Fix file headers. NFC 2019-03-01 09:52:53 +00:00
Generators.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MDGenerator.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Mapper.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Mapper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Representation.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Representation.h [clang-doc] Add basic support for templates and typedef 2019-06-24 19:31:02 +00:00
Serialize.cpp [clang-doc] Add basic support for templates and typedef 2019-06-24 19:31:02 +00:00
Serialize.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
YAMLGenerator.cpp Fix file headers. NFC 2019-03-01 09:52:53 +00:00