forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -167,6 +167,12 @@ bool QmlJSRefactoringFile::isCursorOn(AST::UiQualifiedId *ast) const
|
||||
return pos <= ast->identifierToken.end();
|
||||
}
|
||||
|
||||
bool QmlJSRefactoringFile::isCursorOn(AST::SourceLocation loc) const
|
||||
{
|
||||
const unsigned pos = cursor().position();
|
||||
return pos >= loc.begin() && pos <= loc.end();
|
||||
}
|
||||
|
||||
QmlJSRefactoringChangesData *QmlJSRefactoringFile::data() const
|
||||
{
|
||||
return static_cast<QmlJSRefactoringChangesData *>(m_data.data());
|
||||
|
||||
Reference in New Issue
Block a user