#include "editor.hpp"#include "custom_style.hpp"#include <QAbstractItemView>#include <QAction>#include <QApplication>#include <QCheckBox>#include <QClipboard>#include <QColor>#include <QCompleter>#include <QDoubleSpinBox>#include <QFile>#include <QFileDialog>#include <QFont>#include <QHBoxLayout>#include <QInputDialog>#include <QKeyEvent>#include <QLabel>#include <QMenuBar>#include <QMessageBox>#include <QMimeData>#include <QMouseEvent>#include <QPainter>#include <QPalette>#include <QPlainTextEdit>#include <QPushButton>#include <QRegularExpression>#include <QSaveFile>#include <QScrollArea>#include <QScrollBar>#include <QSettings>#include <QSignalBlocker>#include <QSizePolicy>#include <QSlider>#include <QSplitter>#include <QStatusBar>#include <QStringListModel>#include <QSyntaxHighlighter>#include <QTextBlock>#include <QTextCharFormat>#include <QTextCursor>#include <QTextStream>#include <QTimer>#include <QVBoxLayout>#include <algorithm>Go to the source code of this file.
Classes | |
| struct | anonymous_namespace{editor.cpp}::LoopRange |
Namespaces | |
| namespace | anonymous_namespace{editor.cpp} |
Functions | |
| static QColor | currentLineBackground (const QPalette &palette) |
| static QColor | diagnosticColor (ShaderDiagnosticSeverity severity) |
| int | anonymous_namespace{editor.cpp}::find_matching_glsl_delimiter (const QString &source, int opening, QChar open, QChar close) |
| QString | inject_safety_counters (const QString &glsl_source) |
| Add bounded iteration guards and preserve original GLSL diagnostic lines. | |
| bool | anonymous_namespace{editor.cpp}::is_identifier_character (QChar character) |
| static bool | isOpenBracket (QChar ch) |
| static QChar | matchingBracket (QChar ch) |
| int | anonymous_namespace{editor.cpp}::skip_glsl_trivia (const QString &source, int position) |
Variables | |
| constexpr int | anonymous_namespace{editor.cpp}::LOOP_SAFETY_LIMIT = 10000 |
| const QString | anonymous_namespace{editor.cpp}::LOOP_SAFETY_MARKER = QStringLiteral("ACMX_LOOP_GUARD") |
|
static |
Definition at line 176 of file editor.cpp.
References currentLineBackground().
Referenced by currentLineBackground(), and CustomTextEdit::matchBrackets().
|
static |
Definition at line 186 of file editor.cpp.
References diagnosticColor(), Error, Note, and Warning.
Referenced by diagnosticColor(), CustomTextEdit::lineNumberAreaPaintEvent(), and CustomTextEdit::matchBrackets().
| QString inject_safety_counters | ( | const QString & | glsl_source | ) |
Add bounded iteration guards and preserve original GLSL diagnostic lines.
Definition at line 107 of file editor.cpp.
References anonymous_namespace{editor.cpp}::find_matching_glsl_delimiter(), inject_safety_counters(), anonymous_namespace{editor.cpp}::is_identifier_character(), anonymous_namespace{editor.cpp}::LOOP_SAFETY_LIMIT, anonymous_namespace{editor.cpp}::LOOP_SAFETY_MARKER, and anonymous_namespace{editor.cpp}::skip_glsl_trivia().
Referenced by inject_safety_counters(), TextEditor::requestPreview(), and MainWindow::startNextAcmxvkLiveCompile().
|
static |
Definition at line 364 of file editor.cpp.
References isOpenBracket().
Referenced by isOpenBracket(), CustomTextEdit::keyPressEvent(), and CustomTextEdit::matchBrackets().
|
static |
Definition at line 348 of file editor.cpp.
References matchingBracket().
Referenced by CustomTextEdit::keyPressEvent(), CustomTextEdit::matchBrackets(), and matchingBracket().