Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <tokenizer.h>
Public Member Functions | |
Tokenizer (const Location &loc, QByteArray in) | |
Tokenizer (const Location &loc, QFile &file) | |
~Tokenizer () | |
int | getToken () |
void | setParsingFnOrMacro (bool macro) |
const Location & | location () const |
QString | previousLexeme () const |
QString | lexeme () const |
QString | version () const |
int | parenDepth () const |
int | bracketDepth () const |
Static Public Member Functions | |
static void | initialize () |
static void | terminate () |
The heap allocated variables are freed here. | |
static bool | isTrue (const QString &condition) |
Protected Attributes | |
QByteArray | m_in {} |
int | m_pos {} |
Definition at line 79 of file tokenizer.h.
Tokenizer::Tokenizer | ( | const Location & | loc, |
QByteArray | in ) |
Definition at line 127 of file tokenizer.cpp.
References m_pos.
Tokenizer::~Tokenizer | ( | ) |
Definition at line 134 of file tokenizer.cpp.
|
inlinenodiscard |
Definition at line 95 of file tokenizer.h.
Referenced by QmlSignatureParser::matchTypeAndName().
int Tokenizer::getToken | ( | ) |
Definition at line 140 of file tokenizer.cpp.
References ignoredTokensAndDirectives, kwordHashTable, KwordHashTableSize, Tok_Ampersand, Tok_Aster, Tok_At, Tok_Caret, Tok_Colon, Tok_Comma, Tok_Comment, Tok_Doc, Tok_Ellipsis, Tok_Eoi, Tok_Equal, Tok_FirstKeyword, Tok_Gulbrandsen, Tok_Ident, Tok_LeftAngle, Tok_LeftBrace, Tok_LeftBracket, Tok_LeftParen, Tok_LeftParenAster, Tok_Number, Tok_RightAngle, Tok_RightBrace, Tok_RightBracket, Tok_RightParen, Tok_Semicolon, Tok_SomeOperator, Tok_String, Tok_Tilde, and Tok_typename.
Referenced by QmlSignatureParser::readToken().
|
static |
Definition at line 482 of file tokenizer.cpp.
References Location::Location(), kwordHashTable, sourceDecoder, Tok_FirstKeyword, and Tok_LastKeyword.
Referenced by processQdocconfFile().
|
static |
Definition at line 723 of file tokenizer.cpp.
References definedX, defines, and falsehoods.
|
nodiscard |
Definition at line 778 of file tokenizer.cpp.
Referenced by QmlSignatureParser::lexeme().
|
inlinenodiscard |
Definition at line 90 of file tokenizer.h.
|
inlinenodiscard |
Definition at line 94 of file tokenizer.h.
Referenced by QmlSignatureParser::matchParameter().
|
nodiscard |
Definition at line 783 of file tokenizer.cpp.
Referenced by QmlSignatureParser::previousLexeme().
|
inline |
Definition at line 88 of file tokenizer.h.
Referenced by QmlSignatureParser::QmlSignatureParser().
|
static |
The heap allocated variables are freed here.
The keyword hash table is not cleared here, but it is cleared in the initialize() function, before any keywords are inserted.
Definition at line 543 of file tokenizer.cpp.
References comment, definedX, defines, falsehoods, ignoredTokensAndDirectives, and versionX.
Referenced by processQdocconfFile().
|
inlinenodiscard |
Definition at line 93 of file tokenizer.h.
|
protected |
Definition at line 173 of file tokenizer.h.
|
protected |
Definition at line 174 of file tokenizer.h.
Referenced by Tokenizer().