Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
PP_Expression Class Reference
+ Inheritance diagram for PP_Expression:
+ Collaboration diagram for PP_Expression:

Public Member Functions

int value ()
 
int conditional_expression ()
 
int logical_OR_expression ()
 
int logical_AND_expression ()
 
int inclusive_OR_expression ()
 
int exclusive_OR_expression ()
 
int AND_expression ()
 
int equality_expression ()
 
int relational_expression ()
 
int shift_expression ()
 
int additive_expression ()
 
int multiplicative_expression ()
 
int unary_expression ()
 
bool unary_expression_lookup ()
 
int primary_expression ()
 
bool primary_expression_lookup ()
 
- Public Member Functions inherited from Parser
 Parser ()
 
bool hasNext () const
 
Token next ()
 
Token peek ()
 
bool test (Token)
 
void next (Token)
 
void next (Token, const char *msg)
 
void prev ()
 
Token lookup (int k=1)
 
const Symbolsymbol_lookup (int k=1)
 
Token token ()
 
QByteArray lexem ()
 
QByteArray unquotedLexem ()
 
const Symbolsymbol ()
 
const SymbolsymbolAt (qsizetype idx)
 
Q_NORETURN void error (const Symbol &symbol)
 
Q_NORETURN void error (const char *msg=nullptr)
 
void warning (const char *=nullptr)
 
void warning (const Symbol &sym, QByteArrayView msg)
 
void note (const char *=nullptr)
 
void defaultErrorMsg (const Symbol &sym)
 
void printMsg (QByteArrayView formatStringSuffix, QByteArrayView msg, const Symbol &sym)
 
 Parser (const QString &provider)
 
void addIncludeDirs (const QStringList &list)
 
QString resolveInclude (const QString &filename)
 
void addIncludesRecursive (const QString &filename, QStringList &includes)
 
QStringList findEnumValues (const QString &name, const QStringList &includes)
 
void parseParamReplace (const QString &data, qsizetype offset, const QString &name)
 
void parseInstrument (const QString &data, qsizetype offset)
 
void parsePoint (const QString &data, qsizetype offset)
 
void parsePrefix (const QString &data, qsizetype offset)
 
void parseMetadata (const QString &data, qsizetype offset, const QStringList &includes)
 
int lineNumber (qsizetype offset) const
 
void parse (QIODevice &input, const QString &name)
 
void write (QIODevice &input) const
 
bool isEmpty () const
 

Additional Inherited Members

- Public Attributes inherited from Parser
Symbols symbols
 
qsizetype index
 
bool displayWarnings
 
bool displayNotes
 
QList< IncludePathincludes
 
std::stack< QByteArray, QByteArrayListcurrentFilenames
 
QList< Functionm_functions
 
QList< Pointm_points
 
QList< Replacem_replaces
 
QList< QStringm_prefixes
 
QList< QStringm_metadata
 
QList< LineNumberm_offsets
 
QList< QStringm_includeDirs
 
QString m_provider
 

Detailed Description

Definition at line 726 of file preprocessor.cpp.

Member Function Documentation

◆ additive_expression()

int PP_Expression::additive_expression ( )

Definition at line 845 of file preprocessor.cpp.

References additive_expression(), multiplicative_expression(), Parser::next(), PP_MINUS, PP_PLUS, Parser::prev(), and value().

Referenced by additive_expression(), and shift_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AND_expression()

int PP_Expression::AND_expression ( )

Definition at line 791 of file preprocessor.cpp.

References AND_expression(), equality_expression(), PP_AND, Parser::test(), and value().

Referenced by AND_expression(), and exclusive_OR_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ conditional_expression()

int PP_Expression::conditional_expression ( )

Definition at line 748 of file preprocessor.cpp.

References conditional_expression(), logical_OR_expression(), PP_COLON, PP_QUESTION, Parser::test(), and value().

Referenced by conditional_expression(), primary_expression(), and value().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ equality_expression()

int PP_Expression::equality_expression ( )

Definition at line 799 of file preprocessor.cpp.

References equality_expression(), Parser::next(), PP_EQEQ, PP_NE, Parser::prev(), relational_expression(), and value().

Referenced by AND_expression(), and equality_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exclusive_OR_expression()

int PP_Expression::exclusive_OR_expression ( )

Definition at line 783 of file preprocessor.cpp.

References AND_expression(), exclusive_OR_expression(), PP_HAT, Parser::test(), and value().

Referenced by exclusive_OR_expression(), and inclusive_OR_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inclusive_OR_expression()

int PP_Expression::inclusive_OR_expression ( )

Definition at line 775 of file preprocessor.cpp.

References exclusive_OR_expression(), inclusive_OR_expression(), PP_OR, Parser::test(), and value().

Referenced by inclusive_OR_expression(), and logical_AND_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ logical_AND_expression()

int PP_Expression::logical_AND_expression ( )

Definition at line 767 of file preprocessor.cpp.

References inclusive_OR_expression(), logical_AND_expression(), PP_ANDAND, Parser::test(), and value().

Referenced by logical_AND_expression(), and logical_OR_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ logical_OR_expression()

int PP_Expression::logical_OR_expression ( )

Definition at line 759 of file preprocessor.cpp.

References logical_AND_expression(), logical_OR_expression(), PP_OROR, Parser::test(), and value().

Referenced by conditional_expression(), and logical_OR_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ multiplicative_expression()

int PP_Expression::multiplicative_expression ( )

Definition at line 859 of file preprocessor.cpp.

References multiplicative_expression(), Parser::next(), PP_PERCENT, PP_SLASH, PP_STAR, Parser::prev(), unary_expression(), and value().

Referenced by additive_expression(), and multiplicative_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ primary_expression()

int PP_Expression::primary_expression ( )

Definition at line 921 of file preprocessor.cpp.

References conditional_expression(), QByteArray::endsWith(), Parser::lexem(), Parser::next(), PP_LPAREN, PP_RPAREN, Parser::test(), and value().

Referenced by unary_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ primary_expression_lookup()

bool PP_Expression::primary_expression_lookup ( )

Definition at line 938 of file preprocessor.cpp.

References Parser::lookup(), PP_FLOATING_LITERAL, PP_IDENTIFIER, PP_INTEGER_LITERAL, and PP_LPAREN.

Referenced by unary_expression_lookup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ relational_expression()

int PP_Expression::relational_expression ( )

Definition at line 813 of file preprocessor.cpp.

References Parser::next(), PP_GE, PP_LANGLE, PP_LE, PP_RANGLE, Parser::prev(), relational_expression(), shift_expression(), and value().

Referenced by equality_expression(), and relational_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shift_expression()

int PP_Expression::shift_expression ( )

Definition at line 831 of file preprocessor.cpp.

References additive_expression(), Parser::next(), PP_GTGT, PP_LTLT, Parser::prev(), shift_expression(), and value().

Referenced by relational_expression(), and shift_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unary_expression()

int PP_Expression::unary_expression ( )

Definition at line 889 of file preprocessor.cpp.

References Parser::next(), PP_MINUS, PP_NOT, PP_PLUS, PP_TILDE, Parser::prev(), primary_expression(), and unary_expression().

Referenced by multiplicative_expression(), and unary_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unary_expression_lookup()

bool PP_Expression::unary_expression_lookup ( )

Definition at line 910 of file preprocessor.cpp.

References Parser::lookup(), PP_MINUS, PP_NOT, PP_PLUS, PP_TILDE, and primary_expression_lookup().

Referenced by value().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ value()

int PP_Expression::value ( )
inline

Definition at line 729 of file preprocessor.cpp.

References conditional_expression(), and unary_expression_lookup().

Referenced by additive_expression(), AND_expression(), conditional_expression(), equality_expression(), Preprocessor::evaluateCondition(), exclusive_OR_expression(), inclusive_OR_expression(), logical_AND_expression(), logical_OR_expression(), multiplicative_expression(), primary_expression(), relational_expression(), and shift_expression().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: