forked from qt-creator/qt-creator
Clang: Fix unit-tests build for MSVC 2015
Change-Id: If81ad5d8ea704a2714d3088024d701202e9854f2 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -37,8 +37,6 @@
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
using uint = unsigned int;
|
||||
|
||||
template<class T>
|
||||
class TokenProcessor
|
||||
{
|
||||
@@ -54,7 +52,7 @@ public:
|
||||
TokenProcessor(CXTranslationUnit cxTranslationUnit, const SourceRange &range)
|
||||
: cxTranslationUnit(cxTranslationUnit)
|
||||
{
|
||||
uint cxTokensCount = 0;
|
||||
unsigned cxTokensCount = 0;
|
||||
clang_tokenize(cxTranslationUnit, range, &cxTokens, &cxTokensCount);
|
||||
cxCursors.resize(cxTokensCount);
|
||||
clang_annotateTokens(cxTranslationUnit, cxTokens, cxTokensCount, cxCursors.data());
|
||||
@@ -72,7 +70,7 @@ public:
|
||||
{
|
||||
return cxTokens == nullptr;
|
||||
}
|
||||
uint size() const
|
||||
size_t size() const
|
||||
{
|
||||
return cxCursors.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user