forked from qt-creator/qt-creator
Clang: Fix compiler warnings
MSVC64 reported implicit size_t to int/unsigned conversion. Change-Id: I253626dd25f9f3eb67b8fffb26006b619e826034 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
3b7d550a7c
commit
bd91d938c4
@@ -25,6 +25,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "fulltokeninfo.h"
|
||||
#include "sourcerange.h"
|
||||
#include "tokenprocessoriterator.h"
|
||||
#include "tokeninfocontainer.h"
|
||||
@@ -61,7 +62,7 @@ public:
|
||||
}
|
||||
~TokenProcessor()
|
||||
{
|
||||
clang_disposeTokens(cxTranslationUnit, cxTokens, cxCursors.size());
|
||||
clang_disposeTokens(cxTranslationUnit, cxTokens, unsigned(cxCursors.size()));
|
||||
}
|
||||
|
||||
bool isEmpty() const
|
||||
@@ -117,7 +118,7 @@ private:
|
||||
QVector<TC> toTokens() const
|
||||
{
|
||||
QVector<TC> tokens;
|
||||
tokens.reserve(size());
|
||||
tokens.reserve(int(size()));
|
||||
|
||||
const auto isValidTokenInfo = [](const T &tokenInfo) {
|
||||
return !tokenInfo.hasInvalidMainType()
|
||||
|
||||
Reference in New Issue
Block a user