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
cpp.cpp File Reference

(49a442e6a73608b80d96bccab6753db805600b0f)

#include "cpp.h"
#include <translator.h>
#include "metastrings.h"
#include <QtCore/QBitArray>
#include <QtCore/QTextStream>
#include <QtCore/QRegularExpression>
#include <iostream>
Include dependency graph for cpp.cpp:

Go to the source code of this file.

Classes

class  VisitRecorder
class  CppParser
struct  QualifyOneData

Functions

size_t qHash (const HashString &str)
QDebug operator<< (QDebug debug, const HashString &s)
size_t qHash (const HashStringList &list)
QDebug operator<< (QDebug debug, const HashStringList &lst)
static bool isStringLiteralPrefix (const QStringView s)
static bool isRawStringLiteralPrefix (QStringView s)
size_t qHash (const CppParserState &s, size_t seed)
size_t qHash (const ResultsCacheKey &key, size_t seed)
static bool isHeader (const QString &name)
void loadCPP (Translator &translator, const QStringList &filenames, ConversionData &cd)

Variables

static int nextFileId
static const QString strQ_OBJECT = u"Q_OBJECT"_s
static const QString strclass = u"class"_s
static const QString strdecltype = u"decltype"_s
static const QString strenum = u"enum"_s
static const QString strfinal = u"final"_s
static const QString strfriend = u"friend"_s
static const QString strnamespace = u"namespace"_s
static const QString strnullptr = u"nullptr"_s
static const QString strQ_NULLPTR = u"Q_NULLPTR"_s
static const QString strNULL = u"NULL"_s
static const QString stroperator = u"operator"_s
static const QString strreturn = u"return"_s
static const QString strstruct = u"struct"_s
static const QString strusing = u"using"_s
static const QString strprivate = u"private"_s
static const QString strprotected = u"protected"_s
static const QString strpublic = u"public"_s
static const QString strslots = u"slots"_s
static const QString strsignals = u"signals"_s
static const QString strQ_SLOTS = u"Q_SLOTS"_s
static const QString strQ_SIGNALS = u"Q_SIGNALS"_s
static const QString strQApplication = u"QApplication"_s
static const QString strQCoreApplication = u"QCoreApplication"_s
static const QString strUnicodeUTF8 = u"UnicodeUTF8"_s
static const QString strDefaultCodec = u"DefaultCodec"_s
static const QString strCodecForTr = u"CodecForTr"_s
static const QString strLatin1 = u"Latin1"_s

Function Documentation

◆ isHeader()

bool isHeader ( const QString & name)
static

Definition at line 1321 of file cpp.cpp.

◆ isRawStringLiteralPrefix()

bool isRawStringLiteralPrefix ( QStringView s)
static

Definition at line 370 of file cpp.cpp.

◆ isStringLiteralPrefix()

bool isStringLiteralPrefix ( const QStringView s)
static

Definition at line 362 of file cpp.cpp.

◆ loadCPP()

void loadCPP ( Translator & translator,
const QStringList & filenames,
ConversionData & cd )

Definition at line 2322 of file cpp.cpp.

◆ operator<<() [1/2]

QDebug operator<< ( QDebug debug,
const HashString & s )

Definition at line 29 of file cpp.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug debug,
const HashStringList & lst )

Definition at line 47 of file cpp.cpp.

◆ qHash() [1/4]

size_t qHash ( const CppParserState & s,
size_t seed )

Definition at line 1217 of file cpp.cpp.

◆ qHash() [2/4]

size_t qHash ( const HashString & str)

Definition at line 22 of file cpp.cpp.

◆ qHash() [3/4]

size_t qHash ( const HashStringList & list)

Definition at line 34 of file cpp.cpp.

◆ qHash() [4/4]

size_t qHash ( const ResultsCacheKey & key,
size_t seed )

Definition at line 1227 of file cpp.cpp.

Variable Documentation

◆ nextFileId

int nextFileId
static

Definition at line 52 of file cpp.cpp.

Referenced by CppParser::recordResults().

◆ strclass

const QString strclass = u"class"_s
static

Definition at line 380 of file cpp.cpp.

◆ strCodecForTr

const QString strCodecForTr = u"CodecForTr"_s
static

Definition at line 1443 of file cpp.cpp.

◆ strdecltype

const QString strdecltype = u"decltype"_s
static

Definition at line 381 of file cpp.cpp.

◆ strDefaultCodec

const QString strDefaultCodec = u"DefaultCodec"_s
static

Definition at line 1442 of file cpp.cpp.

◆ strenum

const QString strenum = u"enum"_s
static

Definition at line 382 of file cpp.cpp.

◆ strfinal

const QString strfinal = u"final"_s
static

Definition at line 383 of file cpp.cpp.

◆ strfriend

const QString strfriend = u"friend"_s
static

Definition at line 384 of file cpp.cpp.

◆ strLatin1

const QString strLatin1 = u"Latin1"_s
static

Definition at line 1444 of file cpp.cpp.

◆ strnamespace

const QString strnamespace = u"namespace"_s
static

Definition at line 385 of file cpp.cpp.

◆ strNULL

const QString strNULL = u"NULL"_s
static

Definition at line 388 of file cpp.cpp.

◆ strnullptr

const QString strnullptr = u"nullptr"_s
static

Definition at line 386 of file cpp.cpp.

◆ stroperator

const QString stroperator = u"operator"_s
static

Definition at line 389 of file cpp.cpp.

◆ strprivate

const QString strprivate = u"private"_s
static

Definition at line 393 of file cpp.cpp.

◆ strprotected

const QString strprotected = u"protected"_s
static

Definition at line 394 of file cpp.cpp.

◆ strpublic

const QString strpublic = u"public"_s
static

Definition at line 395 of file cpp.cpp.

◆ strQ_NULLPTR

const QString strQ_NULLPTR = u"Q_NULLPTR"_s
static

Definition at line 387 of file cpp.cpp.

◆ strQ_OBJECT

const QString strQ_OBJECT = u"Q_OBJECT"_s
static

Definition at line 379 of file cpp.cpp.

◆ strQ_SIGNALS

const QString strQ_SIGNALS = u"Q_SIGNALS"_s
static

Definition at line 399 of file cpp.cpp.

◆ strQ_SLOTS

const QString strQ_SLOTS = u"Q_SLOTS"_s
static

Definition at line 398 of file cpp.cpp.

◆ strQApplication

const QString strQApplication = u"QApplication"_s
static

Definition at line 1439 of file cpp.cpp.

◆ strQCoreApplication

const QString strQCoreApplication = u"QCoreApplication"_s
static

Definition at line 1440 of file cpp.cpp.

◆ strreturn

const QString strreturn = u"return"_s
static

Definition at line 390 of file cpp.cpp.

◆ strsignals

const QString strsignals = u"signals"_s
static

Definition at line 397 of file cpp.cpp.

◆ strslots

const QString strslots = u"slots"_s
static

Definition at line 396 of file cpp.cpp.

◆ strstruct

const QString strstruct = u"struct"_s
static

Definition at line 391 of file cpp.cpp.

◆ strUnicodeUTF8

const QString strUnicodeUTF8 = u"UnicodeUTF8"_s
static

Definition at line 1441 of file cpp.cpp.

◆ strusing

const QString strusing = u"using"_s
static

Definition at line 392 of file cpp.cpp.