forked from qt-creator/qt-creator
QmlJS checks: Warn about extra message suppressions.
Reviewed-by: Fawzi Mohamed Change-Id: I4038cd863ba80c1719417cd03b755b047f7d8b5e Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
@@ -119,6 +119,9 @@ private:
|
||||
void addMessage(StaticAnalysis::Type type, const AST::SourceLocation &location,
|
||||
const QString &arg1 = QString(), const QString &arg2 = QString());
|
||||
|
||||
void scanCommentsForAnnotations();
|
||||
void warnAboutUnnecessarySuppressions();
|
||||
|
||||
AST::Node *parent(int distance = 0);
|
||||
|
||||
Document::Ptr _doc;
|
||||
@@ -135,6 +138,16 @@ private:
|
||||
QStack<StringSet> m_idStack;
|
||||
QStack<StringSet> m_propertyStack;
|
||||
|
||||
class MessageTypeAndSuppression
|
||||
{
|
||||
public:
|
||||
AST::SourceLocation suppressionSource;
|
||||
StaticAnalysis::Type type;
|
||||
bool wasSuppressed;
|
||||
};
|
||||
|
||||
QHash< int, QList<MessageTypeAndSuppression> > m_disabledMessageTypesByLine;
|
||||
|
||||
bool _importsOk;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user