blob: 5fcaaf0169c0ae460d4c3f5088fd28940bd16487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "glslastvisitor.h"
QT_FORWARD_DECLARE_CLASS(QTextStream)
namespace GLSL {
class GLSL_EXPORT ASTDump: protected Visitor
{
public:
ASTDump(QTextStream &out);
void operator()(AST *ast);
protected:
bool preVisit(AST *) override;
void postVisit(AST *) override;
private:
QTextStream &out;
int _depth;
};
} // namespace GLSL
|