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:
		| @@ -377,7 +377,7 @@ void PointerDeclarationFormatter::checkAndRewrite(DeclaratorAST *declarator, | ||||
|     CHECK_R(symbol, "No symbol"); | ||||
|  | ||||
|     // Check for expanded tokens | ||||
|     for (unsigned token = tokenRange.start; token <= tokenRange.end; ++token) | ||||
|     for (int token = tokenRange.start; token <= tokenRange.end; ++token) | ||||
|         CHECK_R(!tokenAt(token).expanded(), "Token is expanded"); | ||||
|  | ||||
|     Utils::ChangeSet::Range range(m_cppRefactoringFile->startOf(tokenRange.start), | ||||
| @@ -455,7 +455,7 @@ void PointerDeclarationFormatter::printCandidate(AST *ast) | ||||
| { | ||||
| #if DEBUG_OUTPUT | ||||
|     QString tokens; | ||||
|     for (unsigned token = ast->firstToken(); token < ast->lastToken(); token++) | ||||
|     for (int token = ast->firstToken(); token < ast->lastToken(); token++) | ||||
|         tokens += QString::fromLatin1(tokenAt(token).spell()) + QLatin1Char(' '); | ||||
|  | ||||
| #  ifdef __GNUC__ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user