fixed pre/post increment warings, found during selfcheck
This commit is contained in:
parent
aacb94c427
commit
d2a1d3f14a
|
@ -218,7 +218,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
|
||||||
char prev = ' '; // hack to make it skip spaces between # and the directive
|
char prev = ' '; // hack to make it skip spaces between # and the directive
|
||||||
code << "#";
|
code << "#";
|
||||||
std::string::const_iterator i = line.begin();
|
std::string::const_iterator i = line.begin();
|
||||||
i++;
|
++i;
|
||||||
|
|
||||||
// need space.. #if( => #if (
|
// need space.. #if( => #if (
|
||||||
bool needSpace = true;
|
bool needSpace = true;
|
||||||
|
@ -247,7 +247,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
|
||||||
// skip double whitespace between arguments
|
// skip double whitespace between arguments
|
||||||
if (escapeStatus == ESC_NONE && prev == ' ' && *i == ' ')
|
if (escapeStatus == ESC_NONE && prev == ' ' && *i == ' ')
|
||||||
{
|
{
|
||||||
i++;
|
++i;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Convert #if( to "#if ("
|
// Convert #if( to "#if ("
|
||||||
|
@ -272,7 +272,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
|
||||||
{
|
{
|
||||||
prev = *i;
|
prev = *i;
|
||||||
}
|
}
|
||||||
i++;
|
++i;
|
||||||
}
|
}
|
||||||
if (escapeStatus != ESC_NONE)
|
if (escapeStatus != ESC_NONE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue