clang-tools 23.0.0git
JSONGenerator.cpp File Reference
#include "Generators.h"
#include "clang/Basic/Specifiers.h"
#include "llvm/ADT/ArrayRef.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

Typedefs

typedef std::function< void(const Reference &, Object &)> clang::doc::ReferenceFunc

Functions

template<typename Container, typename SerializationFunc>
static void clang::doc::serializeArray (const Container &Records, Object &Obj, const StringRef Key, SerializationFunc SerializeInfo, const StringRef EndKey="End", function_ref< void(Object &)> UpdateJson=[](Object &Obj) {})
static constexpr unsigned clang::doc::getMaxParamWrapLimit ()
static void clang::doc::insertNonEmpty (StringRef Key, StringRef Value, Object &Obj)
static std::string clang::doc::infoTypeToString (InfoType IT)
static void clang::doc::insertComment (Object &Description, json::Value &Comment, StringRef Key)
 Insert comments into a key in the Description object.
static json::Value clang::doc::extractTextComments (Object *ParagraphComment)
 Takes the nested "Children" array from a comment Object.
static json::Value clang::doc::extractVerbatimComments (json::Array VerbatimLines)
static Object clang::doc::serializeComment (const CommentInfo &I, Object &Description)
static void clang::doc::serializeDescription (llvm::ArrayRef< CommentInfo > Description, json::Object &Obj, StringRef Key="")
static void clang::doc::insertArray (Object &Obj, json::Value &Array, StringRef Key)
static OwningVec< Indexclang::doc::preprocessCDCtxIndex (Index CDCtxIndex)
static void clang::doc::serializeContexts (Info *I, StringMap< OwnedPtr< Info > > &Infos)
static GeneratorRegistry::Add< JSONGeneratorclang::doc::JSON (JSONGenerator::Format, "Generator for JSON output.")