Token: assert that multicompare patterns don't begin with some %% command
This commit is contained in:
parent
5edf153602
commit
2f32965bdf
|
@ -603,6 +603,9 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
|
|||
return false;
|
||||
}
|
||||
|
||||
// debugging: assert that this is not part of a multicompare pattern..
|
||||
assert(*p != '|');
|
||||
|
||||
tok = tok->next();
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue