QmlJS checks: Change suppression annotation to @disable-check.

Change-Id: I913cd757c4f8339a518c947569c5ba651153f1c1
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Christian Kamm
2011-10-28 12:27:10 +02:00
parent 4537e1b834
commit 5ac449a708
3 changed files with 12 additions and 2 deletions

View File

@@ -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;