aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlformat/commentastvisitor.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-01-17 14:28:09 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2020-01-30 08:24:40 +0100
commite080f48f905be597b1a645f1641b2b06553df6a2 (patch)
treeeef0b5d503cf94ed217eab5008dff076e8833113 /tools/qmlformat/commentastvisitor.h
parent78a69fa05e3b2af6ed640692d81e2b1c355fe525 (diff)
qmlformat: Support even more language features
Adds support (among other things) for: - Pragmas - Type annotations - get / set properties - Some previously unsupported escape sequences (\b,\v...) - Calling methods on numeric literals Also now checks whether the dumped code is still parsable. Change-Id: Ia142a7c0b3e608115e79c1d98a62b682dce4eec9 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmlformat/commentastvisitor.h')
-rw-r--r--tools/qmlformat/commentastvisitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlformat/commentastvisitor.h b/tools/qmlformat/commentastvisitor.h
index 369784a5ba..c756c4f820 100644
--- a/tools/qmlformat/commentastvisitor.h
+++ b/tools/qmlformat/commentastvisitor.h
@@ -108,6 +108,7 @@ public:
void endVisit(StatementList *node) override;
bool visit(UiImport *node) override;
+ bool visit(UiPragma *node) override;
bool visit(UiPublicMember *node) override;
bool visit(FunctionDeclaration *node) override;
private: