14 : _kind(
Error), _line(0)
59 : _blockDiagnosticMessages(
false)
70 return &(*_identifiers.insert(
s).first);
85 return &(*_numbers.insert(
s).first);
153 (_vectorTypes.intern(
VectorType(elementType, dimension)));
154 type->populateMembers(
this);
160 return _matrixTypes.intern(
MatrixType(elementType, columns, rows,
166 return _arrayTypes.intern(
ArrayType(elementType));
172 return _diagnosticMessages;
177 _diagnosticMessages.clear();
182 if (! _blockDiagnosticMessages)
183 _diagnosticMessages.append(
m);
206 return _kind ==
Error;
256 var->setQualifiers(qualifiers);
257 _symbols.append(
var);
263 bool previous = _blockDiagnosticMessages;
264 _blockDiagnosticMessages = block;
void setFileName(const QString &fileName)
void setMessage(const QString &message)
const UndefinedType * undefinedType()
std::unordered_set< QString > identifiers() const
Namespace * newNamespace()
std::unordered_set< QString > numbers() const
const UIntType * uintType()
Struct * newStruct(Scope *scope=nullptr)
const MatrixType * matrixType(const Type *elementType, int columns, int rows)
const BoolType * boolType()
bool blockDiagnosticMessages(bool block)
const QString * identifier(const QString &s)
void clearDiagnosticMessages()
const ArrayType * arrayType(const Type *elementType)
const VoidType * voidType()
const IntType * intType()
const SamplerType * samplerType(int kind)
void error(int line, const QString &message)
void addDiagnosticMessage(const DiagnosticMessage &m)
const VectorType * vectorType(const Type *elementType, int dimension)
const DoubleType * doubleType()
void warning(int line, const QString &message)
Variable * newVariable(Scope *scope, const QString &name, const Type *type, int qualifiers=0)
const QString * number(const QString &s)
QList< DiagnosticMessage > diagnosticMessages() const
Argument * newArgument(Function *function, const QString &name, const Type *type)
Block * newBlock(Scope *scope=nullptr)
const FloatType * floatType()
Function * newFunction(Scope *scope=nullptr)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
qDeleteAll(list.begin(), list.end())
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint GLsizei const GLchar * message