Cppcheck
|
#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) |
|
static |
Definition at line 53 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Container::access_arrayLike, CppcheckLibraryData::Container::accessFunctions, CppcheckLibraryData::Container::endPattern, CppcheckLibraryData::Container::id, CppcheckLibraryData::Container::inherits, CppcheckLibraryData::Container::itEndPattern, CppcheckLibraryData::Container::RangeItemRecordType::name, CppcheckLibraryData::Container::Function::name, CppcheckLibraryData::Container::opLessAllowed, CppcheckLibraryData::Container::otherFunctions, CppcheckLibraryData::Container::rangeItemRecordTypeList, CppcheckLibraryData::Container::size_templateParameter, CppcheckLibraryData::Container::sizeFunctions, CppcheckLibraryData::Container::startPattern, CppcheckLibraryData::Container::string, CppcheckLibraryData::Container::templateParameter, CppcheckLibraryData::Container::RangeItemRecordType::templateParameter, CppcheckLibraryData::Container::type, and unhandledElement().
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 108 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Define::name, and CppcheckLibraryData::Define::value.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 456 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Entrypoint::name.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 203 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Function::comments, CppcheckLibraryData::Function::False, loadFunctionArg(), CppcheckLibraryData::Function::True, and unhandledElement().
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 157 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Function::Arg::ANY, CppcheckLibraryData::Function::Arg::MinSize::arg, CppcheckLibraryData::Function::Arg::MinSize::arg2, CppcheckLibraryData::Function::Arg::Iterator::container, CppcheckLibraryData::Function::Arg::defaultValue, CppcheckLibraryData::Function::Arg::formatstr, CppcheckLibraryData::Function::Arg::iterator, CppcheckLibraryData::Function::Arg::minsizes, CppcheckLibraryData::Function::Arg::notbool, CppcheckLibraryData::Function::Arg::notnull, CppcheckLibraryData::Function::Arg::notuninit, CppcheckLibraryData::Function::Arg::nr, CppcheckLibraryData::Function::Arg::strz, CppcheckLibraryData::Function::Arg::MinSize::type, CppcheckLibraryData::Function::Arg::Iterator::type, unhandledElement(), CppcheckLibraryData::Function::Arg::valid, and CppcheckLibraryData::Function::Arg::VARIADIC.
Referenced by loadFunction().
|
static |
Definition at line 364 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Markup::afterCode, CppcheckLibraryData::Markup::CodeBlocks::blocks, CppcheckLibraryData::Markup::codeBlocks, CppcheckLibraryData::Markup::CodeBlocks::end, CppcheckLibraryData::Markup::exporter, CppcheckLibraryData::Markup::ext, CppcheckLibraryData::Markup::importer, CppcheckLibraryData::Markup::keywords, mandatoryAttibuteMissing(), CppcheckLibraryData::Markup::CodeBlocks::offset, CppcheckLibraryData::Markup::Exporter::prefix, CppcheckLibraryData::Markup::Exporter::prefixList, CppcheckLibraryData::Markup::reportErrors, CppcheckLibraryData::Markup::CodeBlocks::start, CppcheckLibraryData::Markup::Exporter::suffixList, and unhandledElement().
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 261 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::MemoryResource::alloc, CppcheckLibraryData::MemoryResource::Alloc::arg, CppcheckLibraryData::MemoryResource::Dealloc::arg, CppcheckLibraryData::MemoryResource::Alloc::bufferSize, CppcheckLibraryData::MemoryResource::dealloc, CppcheckLibraryData::MemoryResource::Alloc::init, CppcheckLibraryData::MemoryResource::Alloc::isRealloc, CppcheckLibraryData::MemoryResource::Alloc::name, CppcheckLibraryData::MemoryResource::Dealloc::name, CppcheckLibraryData::MemoryResource::Alloc::reallocArg, CppcheckLibraryData::MemoryResource::type, unhandledElement(), and CppcheckLibraryData::MemoryResource::use.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 314 of file cppchecklibrarydata.cpp.
References contains(), CppcheckLibraryData::PlatformType::name, CppcheckLibraryData::PlatformType::platforms, CppcheckLibraryData::PlatformType::types, unhandledElement(), and CppcheckLibraryData::PlatformType::value.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 301 of file cppchecklibrarydata.cpp.
References mandatoryAttibuteMissing(), CppcheckLibraryData::PodType::name, CppcheckLibraryData::PodType::sign, CppcheckLibraryData::PodType::size, and CppcheckLibraryData::PodType::stdtype.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 337 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Reflection::Call::arg, CppcheckLibraryData::Reflection::calls, mandatoryAttibuteMissing(), CppcheckLibraryData::Reflection::Call::name, and unhandledElement().
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 121 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::SmartPointer::name, unhandledElement(), and CppcheckLibraryData::SmartPointer::unique.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 140 of file cppchecklibrarydata.cpp.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 116 of file cppchecklibrarydata.cpp.
Referenced by CppcheckLibraryData::open().
|
static |
Definition at line 45 of file cppchecklibrarydata.cpp.
Referenced by loadMarkup(), loadPodType(), and loadReflection().
|
static |
Definition at line 40 of file cppchecklibrarydata.cpp.
Referenced by loadContainer(), loadFunction(), loadFunctionArg(), loadMarkup(), loadMemoryResource(), loadPlatformType(), loadReflection(), loadSmartPointer(), and CppcheckLibraryData::open().
|
static |
Definition at line 558 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Container::access_arrayLike, CppcheckLibraryData::Container::accessFunctions, CppcheckLibraryData::Container::endPattern, CppcheckLibraryData::Container::id, CppcheckLibraryData::Container::inherits, CppcheckLibraryData::Container::itEndPattern, CppcheckLibraryData::Container::opLessAllowed, CppcheckLibraryData::Container::otherFunctions, CppcheckLibraryData::Container::rangeItemRecordTypeList, CppcheckLibraryData::Container::size_templateParameter, CppcheckLibraryData::Container::sizeFunctions, CppcheckLibraryData::Container::startPattern, CppcheckLibraryData::Container::string, CppcheckLibraryData::Container::templateParameter, CppcheckLibraryData::Container::type, writeContainerFunctions(), and writeContainerRangeItemRecords().
Referenced by CppcheckLibraryData::toString().
|
static |
Definition at line 521 of file cppchecklibrarydata.cpp.
Referenced by writeContainer().
|
static |
Definition at line 544 of file cppchecklibrarydata.cpp.
Referenced by writeContainer().
|
static |
Definition at line 588 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Function::Arg::ANY, CppcheckLibraryData::Function::Arg::MinSize::arg, CppcheckLibraryData::Function::Arg::MinSize::arg2, bool_to_string(), CppcheckLibraryData::Function::True, CppcheckLibraryData::Function::Arg::MinSize::type, CppcheckLibraryData::Function::Unknown, and CppcheckLibraryData::Function::Arg::VARIADIC.
Referenced by CppcheckLibraryData::toString().
|
static |
Definition at line 801 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Markup::afterCode, CppcheckLibraryData::Markup::CodeBlocks::blocks, CppcheckLibraryData::Markup::codeBlocks, CppcheckLibraryData::Markup::CodeBlocks::end, CppcheckLibraryData::Markup::exporter, CppcheckLibraryData::Markup::ext, CppcheckLibraryData::Markup::importer, CppcheckLibraryData::Markup::keywords, CppcheckLibraryData::Markup::CodeBlocks::offset, CppcheckLibraryData::Markup::Exporter::prefix, CppcheckLibraryData::Markup::Exporter::prefixList, CppcheckLibraryData::Markup::reportErrors, CppcheckLibraryData::Markup::CodeBlocks::start, and CppcheckLibraryData::Markup::Exporter::suffixList.
Referenced by CppcheckLibraryData::toString().
|
static |
Definition at line 715 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::MemoryResource::alloc, CppcheckLibraryData::MemoryResource::Alloc::arg, CppcheckLibraryData::MemoryResource::Dealloc::arg, bool_to_string(), CppcheckLibraryData::MemoryResource::Alloc::bufferSize, CppcheckLibraryData::MemoryResource::dealloc, CppcheckLibraryData::MemoryResource::Alloc::init, CppcheckLibraryData::MemoryResource::Alloc::isRealloc, CppcheckLibraryData::MemoryResource::Alloc::name, CppcheckLibraryData::MemoryResource::Dealloc::name, CppcheckLibraryData::MemoryResource::Alloc::reallocArg, CppcheckLibraryData::MemoryResource::type, and CppcheckLibraryData::MemoryResource::use.
Referenced by CppcheckLibraryData::toString().
|
static |
Definition at line 770 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::PlatformType::name, CppcheckLibraryData::PlatformType::platforms, CppcheckLibraryData::PlatformType::types, and CppcheckLibraryData::PlatformType::value.
Referenced by CppcheckLibraryData::toString().
|
static |
Definition at line 789 of file cppchecklibrarydata.cpp.
References CppcheckLibraryData::Reflection::Call::arg, CppcheckLibraryData::Reflection::calls, and CppcheckLibraryData::Reflection::Call::name.
Referenced by CppcheckLibraryData::toString().
|
static |
Definition at line 753 of file cppchecklibrarydata.cpp.
Referenced by CppcheckLibraryData::toString().