aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint/checkidentifiers.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-04-23 10:10:31 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-04-24 11:46:35 +0200
commitb5fa1411a0109c332ffc7c3dbe9145f7ecc2c9a7 (patch)
tree889b3e6b40e3b0ed6b2b538b5b18015eeba5304e /tools/qmllint/checkidentifiers.h
parentaf521a8df6caec41f626a4b3319601c20adff711 (diff)
qmllint: Show filename in addition to line and column
Fixes: QTBUG-83684 Change-Id: If15a9498ae223dccfbafe88b14453a4b180247d9 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmllint/checkidentifiers.h')
-rw-r--r--tools/qmllint/checkidentifiers.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/qmllint/checkidentifiers.h b/tools/qmllint/checkidentifiers.h
index 5d2236b7f9..28f8b24c09 100644
--- a/tools/qmllint/checkidentifiers.h
+++ b/tools/qmllint/checkidentifiers.h
@@ -37,8 +37,8 @@ class CheckIdentifiers
{
public:
CheckIdentifiers(ColorOutput *colorOut, const QString &code, const QHash<QString,
- ScopeTree::ConstPtr> &types) :
- m_colorOut(colorOut), m_code(code), m_types(types)
+ ScopeTree::ConstPtr> &types, const QString &fileName) :
+ m_colorOut(colorOut), m_code(code), m_types(types), m_fileName(fileName)
{}
bool operator ()(const QHash<QString, ScopeTree::ConstPtr> &qmlIDs,
@@ -52,6 +52,7 @@ private:
ColorOutput *m_colorOut = nullptr;
QString m_code;
QHash<QString, ScopeTree::ConstPtr> m_types;
+ QString m_fileName;
};
#endif // CHECKIDENTIFIERS_H