astyle formatting

This commit is contained in:
Daniel Marjamäki 2011-07-15 19:02:16 +02:00
parent 7f2d62cbde
commit d78d8660ab
2 changed files with 3 additions and 3 deletions

View File

@ -623,9 +623,9 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
// [.. => search for a one-character token..
else if (p[0] == '[' && chrInFirstWord(p, ']'))
{
if(tok->_str.length() != 1)
if (tok->_str.length() != 1)
return false;
const char *temp = p + 1;
bool chrFound = false;
int count = 0;

View File

@ -145,7 +145,7 @@ private:
givenACodeSampleToTokenize varLogOrVar("abc||def");
ASSERT_EQUALS(true, Token::Match(varLogOrVar.tokens(), "%var% || %var%"));
}
void matchSingleChar()
{
givenACodeSampleToTokenize singleChar("a");