forked from qt-creator/qt-creator
Standardize on int for line and column values
Recently tons of warnings show up for presumably "problematic" singned <-> unsigned and size conversions. The Qt side uses 'int', and that's the biggest 'integration surface' for us, so instead of establishing some internal boundary between signed and unsigned areas, push that boundary out of creator core code, and use 'int' everywhere. Because it reduces friction further, also do it in libcplusplus. Change-Id: I84f3b79852c8029713e7ea6f133ffb9ef7030a70 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -40,7 +40,7 @@ using namespace CPlusPlus;
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void Client::passedMacroDefinitionCheck(unsigned offset, unsigned line, const Macro ¯o)
|
||||
\fn void Client::passedMacroDefinitionCheck(int offset, int line, const Macro ¯o)
|
||||
|
||||
Called when the preprocessor checks whether a macro is defined or not and the
|
||||
result is positive.
|
||||
@@ -49,7 +49,7 @@ using namespace CPlusPlus;
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void Client::failedMacroDefinitionCheck(unsigned offset, const ByteArrayRef &name)
|
||||
\fn void Client::failedMacroDefinitionCheck(int offset, const ByteArrayRef &name)
|
||||
|
||||
Called when the preprocessor checks whether a macro is defined or not and the
|
||||
result is negative.
|
||||
@@ -58,8 +58,8 @@ using namespace CPlusPlus;
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void Client::startExpandingMacro(unsigned offset,
|
||||
unsigned line,
|
||||
\fn void Client::startExpandingMacro(int offset,
|
||||
int line,
|
||||
const Macro ¯o,
|
||||
const QVector<MacroArgumentReference> &actuals
|
||||
= QVector<MacroArgumentReference>())
|
||||
|
||||
Reference in New Issue
Block a user