clang-tools 22.0.0git
JSONGenerator.cpp File Reference
#include "Generators.h"
#include "clang/Basic/Specifiers.h"
#include "llvm/Support/JSON.h"

Go to the source code of this file.

Classes

class  clang::doc::JSONGenerator

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::doc

Functions

static void clang::doc::serializeInfo (const ConstraintInfo &I, Object &Obj)
static void clang::doc::serializeInfo (const RecordInfo &I, Object &Obj, const std::optional< StringRef > &RepositoryUrl)
static void clang::doc::serializeReference (const Reference &Ref, Object &ReferenceObj)
template<typename Container, typename SerializationFunc>
static void clang::doc::serializeArray (const Container &Records, Object &Obj, const std::string &Key, SerializationFunc SerializeInfo)
static std::string clang::doc::infoTypeToString (InfoType IT)
static json::Object clang::doc::serializeLocation (const Location &Loc, const std::optional< StringRef > RepositoryUrl)
static void clang::doc::insertComment (Object &Description, json::Value &Comment, StringRef Key)
static json::Value clang::doc::extractTextComments (Object *ParagraphComment)
static json::Value clang::doc::extractVerbatimComments (json::Array VerbatimLines)
static Object clang::doc::serializeComment (const CommentInfo &I, Object &Description)
static void clang::doc::serializeCommonAttributes (const Info &I, json::Object &Obj, const std::optional< StringRef > RepositoryUrl)
static void clang::doc::serializeCommonChildren (const ScopeChildren &Children, json::Object &Obj, const std::optional< StringRef > RepositoryUrl)
static void clang::doc::serializeInfo (const ArrayRef< TemplateParamInfo > &Params, Object &Obj)
static void clang::doc::serializeInfo (const TemplateInfo &Template, Object &Obj)
static void clang::doc::serializeInfo (const ConceptInfo &I, Object &Obj, const std::optional< StringRef > &RepositoryUrl)
static void clang::doc::serializeInfo (const TypeInfo &I, Object &Obj)
static void clang::doc::serializeInfo (const FieldTypeInfo &I, Object &Obj)
static void clang::doc::serializeInfo (const FunctionInfo &F, json::Object &Obj, const std::optional< StringRef > RepositoryURL)
static void clang::doc::serializeInfo (const EnumValueInfo &I, Object &Obj)
static void clang::doc::serializeInfo (const EnumInfo &I, json::Object &Obj, const std::optional< StringRef > &RepositoryUrl)
static void clang::doc::serializeInfo (const TypedefInfo &I, json::Object &Obj, const std::optional< StringRef > &RepositoryUrl)
static void clang::doc::serializeInfo (const BaseRecordInfo &I, Object &Obj, const std::optional< StringRef > &RepositoryUrl)
static void clang::doc::serializeInfo (const FriendInfo &I, Object &Obj)
static void clang::doc::insertArray (Object &Obj, json::Value &Array, StringRef Key)
static void clang::doc::serializeInfo (const RecordInfo &I, json::Object &Obj, const std::optional< StringRef > &RepositoryUrl)
static void clang::doc::serializeInfo (const VarInfo &I, json::Object &Obj, const std::optional< StringRef > RepositoryUrl)
static void clang::doc::serializeInfo (const NamespaceInfo &I, json::Object &Obj, const std::optional< StringRef > RepositoryUrl)
static SmallString< 16 > clang::doc::determineFileName (Info *I, SmallString< 128 > &Path)
static GeneratorRegistry::Add< JSONGeneratorclang::doc::JSON (JSONGenerator::Format, "Generator for JSON output.")

Variables

static auto clang::doc::SerializeInfoLambda
static auto clang::doc::SerializeReferenceLambda