astyle formatting
This commit is contained in:
parent
7f2d62cbde
commit
d78d8660ab
|
@ -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;
|
||||
|
|
|
@ -145,7 +145,7 @@ private:
|
|||
givenACodeSampleToTokenize varLogOrVar("abc||def");
|
||||
ASSERT_EQUALS(true, Token::Match(varLogOrVar.tokens(), "%var% || %var%"));
|
||||
}
|
||||
|
||||
|
||||
void matchSingleChar()
|
||||
{
|
||||
givenACodeSampleToTokenize singleChar("a");
|
||||
|
|
Loading…
Reference in New Issue