Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlpreviewdiff.cpp File Reference

(db60bda5f3d2be6895f2e17b0625465d39a29099)

#include "qqmlpreviewdiff_p.h"
#include <private/qv4staticvalue_p.h>
#include <QtCore/qmap.h>
#include <QtCore/qscopedvaluerollback.h>
#include <QtCore/qset.h>
#include <cstring>
Include dependency graph for qqmlpreviewdiff.cpp:

Go to the source code of this file.

Classes

struct  QV4::CompiledData::LocationExtractor< T, L >
struct  QV4::CompiledData::LocationExtractor< T, std::enable_if_t< std::is_same_v< decltype(T::location), Location > > >
struct  QV4::CompiledData::LocationExtractor< Binding, void >
struct  QV4::CompiledData::LocationExtractor< Alias, void >
struct  QV4::CompiledData::LocationExtractor< Object, void >
struct  QV4::CompiledData::IndexedElements< AccessorFn >
struct  QV4::CompiledData::UnitDiffer

Namespaces

namespace  QV4
namespace  QV4::CompiledData

Macros

#define COMPARISON_TRAITS(Element)
#define COMPARISON_TRAITS_WITH_LOCATION(Element)

Typedefs

using QV4::CompiledData::Constant = quint64_le
using QV4::CompiledData::StringData = QString

Enumerations

enum  QV4::CompiledData::Severity : quint8 {
  QV4::CompiledData::Replace , QV4::CompiledData::Rebuild , QV4::CompiledData::AddObject , QV4::CompiledData::RemoveBinding ,
  QV4::CompiledData::ChangeBinding , QV4::CompiledData::AddBinding , QV4::CompiledData::RemoveObject , QV4::CompiledData::Ignore ,
  QV4::CompiledData::Replace , QV4::CompiledData::Rebuild , QV4::CompiledData::AddObject , QV4::CompiledData::RemoveBinding ,
  QV4::CompiledData::ChangeBinding , QV4::CompiledData::AddBinding , QV4::CompiledData::RemoveObject , QV4::CompiledData::Ignore
}
enum  QV4::CompiledData::Severity : quint8 {
  QV4::CompiledData::Replace , QV4::CompiledData::Rebuild , QV4::CompiledData::AddObject , QV4::CompiledData::RemoveBinding ,
  QV4::CompiledData::ChangeBinding , QV4::CompiledData::AddBinding , QV4::CompiledData::RemoveObject , QV4::CompiledData::Ignore ,
  QV4::CompiledData::Replace , QV4::CompiledData::Rebuild , QV4::CompiledData::AddObject , QV4::CompiledData::RemoveBinding ,
  QV4::CompiledData::ChangeBinding , QV4::CompiledData::AddBinding , QV4::CompiledData::RemoveObject , QV4::CompiledData::Ignore
}

Functions

template<typename Data>
Data QV4::CompiledData::extractData (const Data &data)
static EnumHunk QV4::CompiledData::extractData (const Enum &e)
static SignalHunk QV4::CompiledData::extractData (const Signal &s)
static FunctionHunk QV4::CompiledData::extractData (const Function &func)
static ObjectHunk QV4::CompiledData::extractData (const Object &obj)
static UnitHunk QV4::CompiledData::extractData (const Unit &unit)
static ClassHunk QV4::CompiledData::extractData (const Class &cls)
static TemplateObjectHunk QV4::CompiledData::extractData (const TemplateObject &to)
static JsClassHunk QV4::CompiledData::extractData (const JSClass &jsClass)
static BlockHunk QV4::CompiledData::extractData (const Block &block)
template<typename AccessorFn>
 QV4::CompiledData::IndexedElements (AccessorFn, quint32) -> IndexedElements< AccessorFn >
static Severity QV4::CompiledData::classifyChange (const Change &change)
static void QV4::CompiledData::sortChanges (QSpan< Change > changes)
CompilationUnitDiff QV4::CompiledData::diffCompilationUnits (const Unit *oldUnit, const Unit *newUnit)

Variables

 QT_BEGIN_NAMESPACE

Macro Definition Documentation

◆ COMPARISON_TRAITS

#define COMPARISON_TRAITS ( Element)
Value:
template <> \
struct ComparisonTraits<Element> \
{ \
static constexpr ChangeType Changed = ChangeType::Element ## Changed; \
static constexpr ChangeType LocationChanged = ChangeType::None; \
static constexpr ChangeType Removed = ChangeType::Element ## Removed; \
static constexpr ChangeType Added = ChangeType::Element ## Added; \
};
static constexpr const QLatin1String Changed("Changed")
QWidget Element
Definition main.cpp:7

Definition at line 199 of file qqmlpreviewdiff.cpp.

◆ COMPARISON_TRAITS_WITH_LOCATION

#define COMPARISON_TRAITS_WITH_LOCATION ( Element)
Value:
template <> \
struct ComparisonTraits<Element> \
{ \
static constexpr ChangeType Changed = ChangeType::Element ## Changed; \
static constexpr ChangeType LocationChanged = ChangeType::Element ## LocationChanged; \
static constexpr ChangeType Removed = ChangeType::Element ## Removed; \
static constexpr ChangeType Added = ChangeType::Element ## Added; \
};

Definition at line 210 of file qqmlpreviewdiff.cpp.

Variable Documentation

◆ QT_BEGIN_NAMESPACE

QT_BEGIN_NAMESPACE
related

Definition at line 22 of file qqmlpreviewdiff.cpp.