Clang: Helper function to get token IconType

Change-Id: I9de562102eded9391ab0d6b895b8d812e259efd6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-02-09 13:51:39 +01:00
parent 9a3dff8934
commit 524d3ea28b
3 changed files with 117 additions and 0 deletions

View File

@@ -25,6 +25,8 @@
#pragma once
#include <cplusplus/Icons.h>
#include <cpptools/projectpart.h>
QT_BEGIN_NAMESPACE
@@ -35,6 +37,8 @@ namespace CppTools {
class CppEditorDocumentHandle;
}
namespace ClangBackEnd { class TokenInfoContainer; }
namespace ClangCodeModel {
namespace Utils {
@@ -52,5 +56,7 @@ bool isProjectPartLoaded(const CppTools::ProjectPart::Ptr projectPart);
QString projectPartIdForFile(const QString &filePath);
int clangColumn(const QTextBlock &lineText, int cppEditorColumn);
CPlusPlus::Icons::IconType iconTypeForToken(const ClangBackEnd::TokenInfoContainer &token);
} // namespace Utils
} // namespace Clang