Cppcheck
Functions
cppchecklibrarydata.cpp File Reference
#include "cppchecklibrarydata.h"
#include "utils.h"
#include <stdexcept>
#include <string>
#include <QObject>
#include <QVariant>
#include <QXmlStreamAttributes>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QtGlobal>

Go to the source code of this file.

Functions

static std::string unhandledElement (const QXmlStreamReader &xmlReader)
 
static std::string mandatoryAttibuteMissing (const QXmlStreamReader &xmlReader, const QString &attributeName)
 
static CppcheckLibraryData::Container loadContainer (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::Define loadDefine (const QXmlStreamReader &xmlReader)
 
static QString loadUndefine (const QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::SmartPointer loadSmartPointer (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::TypeChecks loadTypeChecks (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::Function::Arg loadFunctionArg (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::Function loadFunction (QXmlStreamReader &xmlReader, const QString &comments)
 
static CppcheckLibraryData::MemoryResource loadMemoryResource (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::PodType loadPodType (const QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::PlatformType loadPlatformType (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::Reflection loadReflection (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::Markup loadMarkup (QXmlStreamReader &xmlReader)
 
static CppcheckLibraryData::Entrypoint loadEntrypoint (const QXmlStreamReader &xmlReader)
 
static void writeContainerFunctions (QXmlStreamWriter &xmlWriter, const QString &name, int extra, const QList< CppcheckLibraryData::Container::Function > &functions)
 
static void writeContainerRangeItemRecords (QXmlStreamWriter &xmlWriter, const QList< CppcheckLibraryData::Container::RangeItemRecordType > &rangeItemRecords)
 
static void writeContainer (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Container &container)
 
static void writeFunction (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Function &function)
 
static void writeMemoryResource (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::MemoryResource &mr)
 
static void writeTypeChecks (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::TypeChecks &typeChecks)
 
static void writePlatformType (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::PlatformType &pt)
 
static void writeReflection (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Reflection &refl)
 
static void writeMarkup (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Markup &mup)
 

Function Documentation

◆ loadContainer()

static CppcheckLibraryData::Container loadContainer ( QXmlStreamReader &  xmlReader)
static

◆ loadDefine()

static CppcheckLibraryData::Define loadDefine ( const QXmlStreamReader &  xmlReader)
static

◆ loadEntrypoint()

static CppcheckLibraryData::Entrypoint loadEntrypoint ( const QXmlStreamReader &  xmlReader)
static

Definition at line 456 of file cppchecklibrarydata.cpp.

References CppcheckLibraryData::Entrypoint::name.

Referenced by CppcheckLibraryData::open().

◆ loadFunction()

static CppcheckLibraryData::Function loadFunction ( QXmlStreamReader &  xmlReader,
const QString &  comments 
)
static

◆ loadFunctionArg()

static CppcheckLibraryData::Function::Arg loadFunctionArg ( QXmlStreamReader &  xmlReader)
static

◆ loadMarkup()

static CppcheckLibraryData::Markup loadMarkup ( QXmlStreamReader &  xmlReader)
static

◆ loadMemoryResource()

static CppcheckLibraryData::MemoryResource loadMemoryResource ( QXmlStreamReader &  xmlReader)
static

◆ loadPlatformType()

static CppcheckLibraryData::PlatformType loadPlatformType ( QXmlStreamReader &  xmlReader)
static

◆ loadPodType()

static CppcheckLibraryData::PodType loadPodType ( const QXmlStreamReader &  xmlReader)
static

◆ loadReflection()

static CppcheckLibraryData::Reflection loadReflection ( QXmlStreamReader &  xmlReader)
static

◆ loadSmartPointer()

static CppcheckLibraryData::SmartPointer loadSmartPointer ( QXmlStreamReader &  xmlReader)
static

◆ loadTypeChecks()

static CppcheckLibraryData::TypeChecks loadTypeChecks ( QXmlStreamReader &  xmlReader)
static

Definition at line 140 of file cppchecklibrarydata.cpp.

Referenced by CppcheckLibraryData::open().

◆ loadUndefine()

static QString loadUndefine ( const QXmlStreamReader &  xmlReader)
static

Definition at line 116 of file cppchecklibrarydata.cpp.

Referenced by CppcheckLibraryData::open().

◆ mandatoryAttibuteMissing()

static std::string mandatoryAttibuteMissing ( const QXmlStreamReader &  xmlReader,
const QString &  attributeName 
)
static

Definition at line 45 of file cppchecklibrarydata.cpp.

Referenced by loadMarkup(), loadPodType(), and loadReflection().

◆ unhandledElement()

static std::string unhandledElement ( const QXmlStreamReader &  xmlReader)
static

◆ writeContainer()

static void writeContainer ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::Container container 
)
static

◆ writeContainerFunctions()

static void writeContainerFunctions ( QXmlStreamWriter &  xmlWriter,
const QString &  name,
int  extra,
const QList< CppcheckLibraryData::Container::Function > &  functions 
)
static

Definition at line 521 of file cppchecklibrarydata.cpp.

Referenced by writeContainer().

◆ writeContainerRangeItemRecords()

static void writeContainerRangeItemRecords ( QXmlStreamWriter &  xmlWriter,
const QList< CppcheckLibraryData::Container::RangeItemRecordType > &  rangeItemRecords 
)
static

Definition at line 544 of file cppchecklibrarydata.cpp.

Referenced by writeContainer().

◆ writeFunction()

static void writeFunction ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::Function function 
)
static

◆ writeMarkup()

static void writeMarkup ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::Markup mup 
)
static

◆ writeMemoryResource()

static void writeMemoryResource ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::MemoryResource mr 
)
static

◆ writePlatformType()

static void writePlatformType ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::PlatformType pt 
)
static

◆ writeReflection()

static void writeReflection ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::Reflection refl 
)
static

◆ writeTypeChecks()

static void writeTypeChecks ( QXmlStreamWriter &  xmlWriter,
const CppcheckLibraryData::TypeChecks typeChecks 
)
static

Definition at line 753 of file cppchecklibrarydata.cpp.

Referenced by CppcheckLibraryData::toString().