Clang: simplify column convertion calls

Pass QTextBlock directly into clangColumn call.

Change-Id: I3410a82ed9a84da66e7b430e2aefce64ec459db8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-02-01 13:27:50 +01:00
parent 4f20c0d4ed
commit eb1f85a971
4 changed files with 10 additions and 7 deletions

View File

@@ -27,6 +27,10 @@
#include <cpptools/projectpart.h>
QT_BEGIN_NAMESPACE
class QTextBlock;
QT_END_NAMESPACE
namespace CppTools {
class CppEditorDocumentHandle;
}
@@ -46,7 +50,7 @@ CppTools::ProjectPart::Ptr projectPartForFile(const QString &filePath);
CppTools::ProjectPart::Ptr projectPartForFileBasedOnProcessor(const QString &filePath);
bool isProjectPartLoaded(const CppTools::ProjectPart::Ptr projectPart);
QString projectPartIdForFile(const QString &filePath);
int clangColumn(const QString &lineText, int cppEditorColumn);
int clangColumn(const QTextBlock &lineText, int cppEditorColumn);
} // namespace Utils
} // namespace Clang