forked from qt-creator/qt-creator
QmlJS checks: Change suppression annotation to @disable-check.
Change-Id: I913cd757c4f8339a518c947569c5ba651153f1c1 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -1174,7 +1174,7 @@ void Check::scanCommentsForAnnotations()
|
||||
m_disabledMessageTypesByLine.clear();
|
||||
|
||||
// find all disable annotations
|
||||
const QRegExp disableCommentPattern(QLatin1String("@disable M(\\d+)"));
|
||||
const QRegExp disableCommentPattern(Message::suppressionPattern());
|
||||
foreach (const SourceLocation &commentLoc, _doc->engine()->comments()) {
|
||||
const QString &comment = _doc->source().mid(commentLoc.begin(), commentLoc.length);
|
||||
int lastOffset = -1;
|
||||
|
Reference in New Issue
Block a user