diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-10-19 14:27:40 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-10-19 15:09:35 +0200 |
commit | 0ed824762c5b405b9d77cfda2e0bae2f01a61b61 (patch) | |
tree | cff7f59105d743b54896af964df415e78543d030 /src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp | |
parent | cf156cd2eab5ed65b9b4e9f104b851d14f0c6219 (diff) | |
download | qt-creator-0ed824762c5b405b9d77cfda2e0bae2f01a61b61.tar.gz |
QmlJS checks: Suppression of static analysis messages.
* Use '// @disable M123' to suppress
* Add quick fix to add these comments
Change-Id: I499f5a6004148afbb346218c6fb01c9ca77b9f73
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp b/src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp index c92faca02e..dc7dfde82a 100644 --- a/src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp +++ b/src/plugins/qmljseditor/qmljssemanticinfoupdater.cpp @@ -148,9 +148,7 @@ SemanticInfo SemanticInfoUpdater::semanticInfo(const SemanticInfoUpdaterSource & if (doc->language() != QmlJS::Document::JsonLanguage) { QmlJS::Check checker(doc, semanticInfo.context); - foreach (const QmlJS::StaticAnalysis::Message &msg, checker()) { - semanticInfo.semanticMessages += msg.toDiagnosticMessage(); - } + semanticInfo.staticAnalysisMessages = checker(); } return semanticInfo; |