16llvm::Expected<std::unique_ptr<Generator>>
18 for (
const auto &
Generator : GeneratorRegistry::entries()) {
23 return createStringError(llvm::inconvertibleErrorCode(),
24 "can't find generator: " + Format);
31 case TagTypeKind::Class:
33 case TagTypeKind::Union:
35 case TagTypeKind::Interface:
37 case TagTypeKind::Struct:
39 case TagTypeKind::Enum:
42 llvm_unreachable(
"Unknown TagTypeKind");
46 return llvm::Error::success();
68 auto It = llvm::find(I->
Children, R.USR);
74 I->
Children.emplace_back(R.USR, R.Name, R.RefType, R.Path);
static void addInfoToIndex(Index &Idx, const doc::Info *Info)
virtual llvm::Error createResources(ClangDocContext &CDCtx)
std::string getTagType(TagTypeKind AS)
static int LLVM_ATTRIBUTE_UNUSED YAMLGeneratorAnchorDest
llvm::Expected< std::unique_ptr< Generator > > findGeneratorByName(llvm::StringRef Format)
static int LLVM_ATTRIBUTE_UNUSED MDGeneratorAnchorDest
static int LLVM_ATTRIBUTE_UNUSED HTMLGeneratorAnchorDest
volatile int HTMLGeneratorAnchorSource
volatile int YAMLGeneratorAnchorSource
volatile int MDGeneratorAnchorSource
llvm::Registry< Generator > GeneratorRegistry
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::vector< Index > Children
llvm::SmallString< 128 > Path
llvm::SmallString< 16 > extractName() const
llvm::SmallVector< Reference, 4 > Namespace